Skip to content

Commit 61e346f

Browse files
fix(os): fixes for freebsd/archlinux
1 parent 93f47b3 commit 61e346f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

file_roots/install/salt.sls

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
base:
22
'*':
3-
{%- if grains.os_family not in ('MacOS', 'Arch') %}
4-
- salt.pkgrepo
5-
{%- endif %}
6-
- salt.minion
7-
- salt.formulas
3+
- salt

pillar_roots/saltstack-formulas/postgres.sls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ postgres:
66
# Set False to use distro packaged postgresql.
77
# Set True to use upstream postgresql.org repo for YUM/APT/ZYPP
88
use_upstream_repo: False
9+
{%- if grains.os_family not in ('FreeBSD',) %}
910
pkgs_extra:
1011
- postgresql-contrib
12+
{%- endif %}
1113

1214
#following is used by 'remove' states.
1315
upstream:
@@ -67,7 +69,7 @@ postgres:
6769
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
6870
{%- endif %}
6971

70-
{%- if grains['init'] == 'unknown' %}
72+
{%- if 'init' in grains and grains['init'] == 'unknown' %}
7173

7274
# If Salt is unable to detect init system running in the scope of state run,
7375
# probably we are trying to bake a container/VM image with PostgreSQL.

0 commit comments

Comments
 (0)