Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion postgres/client/init.sls
Original file line number Diff line number Diff line change
@@ -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 = [] %}
{%- for pkg in (postgres.pkg_client, postgres.pkg_libpq_dev) %}
Expand Down
6 changes: 3 additions & 3 deletions postgres/dev.sls
Original file line number Diff line number Diff line change
@@ -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',) %}

Expand Down Expand Up @@ -44,7 +44,7 @@ postgresql-{{ bin }}-altinstall:
postgres_maxfiles_limits_conf:
file.managed:
- name: /Library/LaunchDaemons/limit.maxfiles.plist
- source: salt://postgres/templates/limit.maxfiles.plist
- source: salt://{{ tpldir }}/templates/limit.maxfiles.plist
- context:
soft_limit: {{ postgres.limits.soft or postgres.limits.hard }}
hard_limit: {{ postgres.limits.hard or postgres.limits.soft }}
Expand All @@ -62,7 +62,7 @@ postgres-desktop-shortcut-clean:
postgres-desktop-shortcut-add:
file.managed:
- name: /tmp/mac_shortcut.sh
- source: salt://postgres/templates/mac_shortcut.sh
- source: salt://{{ tpldir }}/templates/mac_shortcut.sh
- mode: 755
- template: jinja
- context:
Expand Down
2 changes: 1 addition & 1 deletion postgres/dropped.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "postgres/map.jinja" import postgres with context %}
{% from tpldir + "/map.jinja" import postgres with context %}

postgresql-dead:
service.dead:
Expand Down
2 changes: 1 addition & 1 deletion postgres/macos/init.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "postgres/map.jinja" import postgres with context %}
{%- from salt.file.dirname(tpldir) ~ "/map.jinja" import postgres with context -%}

include:
{% if postgres.use_upstream_repo == 'postgresapp' %}
Expand Down
2 changes: 1 addition & 1 deletion postgres/macos/postgresapp.sls
Original file line number Diff line number Diff line change
@@ -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
pg-remove-prev-archive:
Expand Down
4 changes: 2 additions & 2 deletions postgres/manage.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- from "postgres/map.jinja" import postgres with context -%}
{%- from "postgres/macros.jinja" import format_state with context -%}
{%- from tpldir + "/map.jinja" import postgres with context -%}
{%- from tpldir + "/macros.jinja" import format_state with context -%}

{%- if salt['postgres.user_create']|default(none) is not callable %}

Expand Down
2 changes: 1 addition & 1 deletion postgres/python.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% from "postgres/map.jinja" import postgres with context %}
{% from tpldir + "/map.jinja" import postgres with context %}

postgresql-python:
pkg.installed:
Expand Down
2 changes: 1 addition & 1 deletion postgres/server/image.sls
Original file line number Diff line number Diff line change
@@ -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
# on "boot" during an image (Docker, Virtual Appliance, AMI) preparation
Expand Down
2 changes: 1 addition & 1 deletion postgres/server/init.sls
Original file line number Diff line number Diff line change
@@ -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 = [] %}
{%- if postgres.bake_image %}
Expand Down
4 changes: 2 additions & 2 deletions postgres/upstream.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{%- from "postgres/map.jinja" import postgres with context -%}
{%- from "postgres/macros.jinja" import format_kwargs with context -%}
{%- from tpldir + "/map.jinja" import postgres with context -%}
{%- from tpldir + "/macros.jinja" import format_kwargs with context -%}

{%- if 'pkg_repo' in postgres -%}

Expand Down