mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
Make formula relative to actual directory by using 'tpldir'
This commit is contained in:
parent
3d8d8486ed
commit
dd526f1de2
10 changed files with 14 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
{%- from "postgres/map.jinja" import postgres with context -%}
|
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres with context -%}
|
||||||
|
|
||||||
{%- set pkgs = [] %}
|
{%- set pkgs = [] %}
|
||||||
{%- for pkg in (postgres.pkg_client, postgres.pkg_libpq_dev) %}
|
{%- for pkg in (postgres.pkg_client, postgres.pkg_libpq_dev) %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% from "postgres/map.jinja" import postgres with context %}
|
{% from tpldir + "/map.jinja" import postgres with context %}
|
||||||
|
|
||||||
{% if grains.os not in ('Windows', 'MacOS',) %}
|
{% if grains.os not in ('Windows', 'MacOS',) %}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ postgresql-{{ bin }}-altinstall:
|
||||||
postgres_maxfiles_limits_conf:
|
postgres_maxfiles_limits_conf:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /Library/LaunchDaemons/limit.maxfiles.plist
|
- name: /Library/LaunchDaemons/limit.maxfiles.plist
|
||||||
- source: salt://postgres/templates/limit.maxfiles.plist
|
- source: salt://{{ tpldir }}/templates/limit.maxfiles.plist
|
||||||
- context:
|
- context:
|
||||||
soft_limit: {{ postgres.limits.soft or postgres.limits.hard }}
|
soft_limit: {{ postgres.limits.soft or postgres.limits.hard }}
|
||||||
hard_limit: {{ postgres.limits.hard or postgres.limits.soft }}
|
hard_limit: {{ postgres.limits.hard or postgres.limits.soft }}
|
||||||
|
@ -62,7 +62,7 @@ postgres-desktop-shortcut-clean:
|
||||||
postgres-desktop-shortcut-add:
|
postgres-desktop-shortcut-add:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: /tmp/mac_shortcut.sh
|
- name: /tmp/mac_shortcut.sh
|
||||||
- source: salt://postgres/templates/mac_shortcut.sh
|
- source: salt://{{ tpldir }}/templates/mac_shortcut.sh
|
||||||
- mode: 755
|
- mode: 755
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% from "postgres/map.jinja" import postgres with context %}
|
{% from tpldir + "/map.jinja" import postgres with context %}
|
||||||
|
|
||||||
postgresql-dead:
|
postgresql-dead:
|
||||||
service.dead:
|
service.dead:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% from "postgres/map.jinja" import postgres with context %}
|
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres with context -%}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
{% if postgres.use_upstream_repo == 'postgresapp' %}
|
{% if postgres.use_upstream_repo == 'postgresapp' %}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% from "postgres/map.jinja" import postgres as pg with context %}
|
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres as pg with context -%}
|
||||||
|
|
||||||
# Cleanup first
|
# Cleanup first
|
||||||
pg-remove-prev-archive:
|
pg-remove-prev-archive:
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{%- from "postgres/map.jinja" import postgres with context -%}
|
{%- from tpldir + "/map.jinja" import postgres with context -%}
|
||||||
{%- from "postgres/macros.jinja" import format_state with context -%}
|
{%- from tpldir + "/macros.jinja" import format_state with context -%}
|
||||||
|
|
||||||
{%- if salt['postgres.user_create']|default(none) is not callable %}
|
{%- if salt['postgres.user_create']|default(none) is not callable %}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% from "postgres/map.jinja" import postgres with context %}
|
{% from tpldir + "/map.jinja" import postgres with context %}
|
||||||
|
|
||||||
postgresql-python:
|
postgresql-python:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{%- from "postgres/map.jinja" import postgres with context -%}
|
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres with context -%}
|
||||||
|
|
||||||
# This state is used to launch PostgreSQL with ``pg_ctl`` command and enable it
|
# This state is used to launch PostgreSQL with ``pg_ctl`` command and enable it
|
||||||
# on "boot" during an image (Docker, Virtual Appliance, AMI) preparation
|
# on "boot" during an image (Docker, Virtual Appliance, AMI) preparation
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{%- from "postgres/map.jinja" import postgres with context %}
|
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres with context -%}
|
||||||
|
|
||||||
{%- set includes = [] %}
|
{%- set includes = [] %}
|
||||||
{%- if postgres.bake_image %}
|
{%- if postgres.bake_image %}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{%- from "postgres/map.jinja" import postgres with context -%}
|
{%- from tpldir + "/map.jinja" import postgres with context -%}
|
||||||
{%- from "postgres/macros.jinja" import format_kwargs with context -%}
|
{%- from tpldir + "/macros.jinja" import format_kwargs with context -%}
|
||||||
|
|
||||||
{%- if 'pkg_repo' in postgres -%}
|
{%- if 'pkg_repo' in postgres -%}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue