Skip to content

Instantly share code, notes, and snippets.

@lordcirth
Created July 26, 2019 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lordcirth/aeb81cb65d2d8a071ac5d06a8f04ba03 to your computer and use it in GitHub Desktop.
Save lordcirth/aeb81cb65d2d8a071ac5d06a8f04ba03 to your computer and use it in GitHub Desktop.
onlyif
#Auth settings
postgres_pg_hba:
file.managed:
# TODO pillar
- name: '/etc/postgresql/12/test3/pg_hba.conf'
- source: 'salt://{{ tpldir }}/pg_hba.conf.jinja'
- mode: 0640
- onlyif:
- 'stat /etc/postgresql/12/test3/'
- template: jinja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment