We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e0245a commit a799214Copy full SHA for a799214
pillar.example
@@ -32,7 +32,9 @@ postgres:
32
# flags: -w -s -m fast
33
# sysrc: true
34
pkgs_extra:
35
+ {%- if grains.os_family not in ('FreeBSD',) %}
36
- postgresql-contrib
37
+ {%- endif %}
38
- postgresql-plpython
39
40
# CLUSTER
@@ -91,7 +93,7 @@ postgres:
91
93
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
92
94
{%- endif %}
95
- {%- if grains['init'] == 'unknown' %}
96
+ {%- if 'init' in grains and grains['init'] == 'unknown' %}
97
98
# If Salt is unable to detect init system running in the scope of state run,
99
# probably we are trying to bake a container/VM image with PostgreSQL.
0 commit comments