From a799214c345ee350051f18509cddd0ae77e70aa4 Mon Sep 17 00:00:00 2001 From: N Date: Tue, 10 Sep 2019 12:24:00 +0100 Subject: [PATCH] docs(pillar.example): update examples for freebsd --- pillar.example | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pillar.example b/pillar.example index a4c037fc..f2cd8363 100644 --- a/pillar.example +++ b/pillar.example @@ -32,7 +32,9 @@ postgres: # flags: -w -s -m fast # sysrc: true pkgs_extra: + {%- if grains.os_family not in ('FreeBSD',) %} - postgresql-contrib + {%- endif %} - postgresql-plpython # CLUSTER @@ -91,7 +93,7 @@ postgres: config_backup: ".backup@{{ salt['status.time']('%y-%m-%d_%H:%M:%S') }}" {%- endif %} - {%- if grains['init'] == 'unknown' %} + {%- if 'init' in grains and grains['init'] == 'unknown' %} # If Salt is unable to detect init system running in the scope of state run, # probably we are trying to bake a container/VM image with PostgreSQL.