Skip to content

Instantly share code, notes, and snippets.

Created July 29, 2013 21:18
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 anonymous/0ea02142e24ace6d0f6c to your computer and use it in GitHub Desktop.
Save anonymous/0ea02142e24ace6d0f6c to your computer and use it in GitHub Desktop.
postgresql-9.1:
service:
- enabled
- require:
- pkg: postgresql91-server
- watch:
- cmd: pgsql_initdb
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
Errors:
[root@archon ~]# salt 'centos6-tester' state.sls postgres
centos6-tester:
Data failed to compile:
----------
The state "pgsql_initdb" in sls postgres is not formed as a list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment