Skip to content

Commit a799214

Browse files
docs(pillar.example): update examples for freebsd
1 parent 6e0245a commit a799214

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pillar.example

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ postgres:
3232
# flags: -w -s -m fast
3333
# sysrc: true
3434
pkgs_extra:
35+
{%- if grains.os_family not in ('FreeBSD',) %}
3536
- postgresql-contrib
37+
{%- endif %}
3638
- postgresql-plpython
3739

3840
# CLUSTER
@@ -91,7 +93,7 @@ postgres:
9193
config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}"
9294
{%- endif %}
9395

94-
{%- if grains['init'] == 'unknown' %}
96+
{%- if 'init' in grains and grains['init'] == 'unknown' %}
9597

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

0 commit comments

Comments
 (0)