Skip to content

Commit

Permalink
Fix pillar.get for MacOS user/group early lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jun 21, 2018
1 parent 9ce9891 commit 944a077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres/repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ cluster_name: {{ salt['pillar.get']('postgres:cluster:name', defaults.postgres.c

#Early lookup for system user on MacOS
{% if grains.os == 'MacOS' %}
{% set sysuser = salt['pillar.get']('postgres.user', salt['cmd.run']("stat -f '%Su' /dev/console")) %}
{% set sysgroup = salt['pillar.get']('postgres.group', salt['cmd.run']("stat -f '%Sg' /dev/console")) %}
{% set sysuser = salt['pillar.get']('postgres:user', salt['cmd.run']("stat -f '%Su' /dev/console")) %}
{% set sysgroup = salt['pillar.get']('postgres:group', salt['cmd.run']("stat -f '%Sg' /dev/console")) %}
user: {{ sysuser }}
group: {{ sysgroup }}
{% endif %}
Expand Down

0 comments on commit 944a077

Please sign in to comment.