-
-
Save anonymous/ac498f7abbea36ac0f06 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pgsql-initdb: | |
cmd.run: | |
- name: /sbin/service postgresql-9.1 initdb | |
- onlyif: /usr/bin/test ! -e /var/lib/pgsql/9.1/data/PG_VERSION | |
- require: | |
- pkg: postgresql91-server | |
postgresql-conf: | |
file.managed: | |
- name: /var/lib/pgsql/9.1/data/postgresql.conf | |
{% if grains['env'] == 'dev' or grains['env'] == 'integ' %} | |
- source: salt://postgres/dev-postgresql.conf | |
{% elif grains['env'] == 'prod' %} | |
- source: salt://postgres/prod-postgresql.conf | |
{% endif %} | |
- require: | |
- pkg: postgresql91-server | |
- cmd: pgsql-initdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment