File tree 2 files changed +4
-6
lines changed
pillar_roots/saltstack-formulas 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
base:
2
2
' *' :
3
- {%- if grains.os_family not in (' MacOS' , ' Arch' ) %}
4
- - salt.pkgrepo
5
- {%- endif %}
6
- - salt.minion
7
- - salt.formulas
3
+ - salt
Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ postgres:
6
6
# Set False to use distro packaged postgresql.
7
7
# Set True to use upstream postgresql.org repo for YUM/APT/ZYPP
8
8
use_upstream_repo: False
9
+ {%- if grains.os_family not in (' FreeBSD' ,) %}
9
10
pkgs_extra:
10
11
- postgresql-contrib
12
+ {%- endif %}
11
13
12
14
# following is used by 'remove' states.
13
15
upstream:
@@ -67,7 +69,7 @@ postgres:
67
69
config_backup: " .backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
68
70
{%- endif %}
69
71
70
- {%- if grains[' init' ] == ' unknown' %}
72
+ {%- if ' init ' in grains and grains[' init' ] == ' unknown' %}
71
73
72
74
# If Salt is unable to detect init system running in the scope of state run,
73
75
# probably we are trying to bake a container/VM image with PostgreSQL.
You can’t perform that action at this time.
0 commit comments