realms-wiki/srv/salt/postgres/init.sls
Matthew Scragg 02b6b7d592 stuff
2013-12-02 17:50:19 -06:00

19 lines
316 B
Plaintext

postgresql:
pkg.installed:
- name: postgresql-9.3
libpq-dev:
pkg.installed
createdb:
cmd.run:
- name: createdb -T template1 realms
- user: postgres
- require:
- pkg.installed: postgresql-9.3
initdb:
cmd.run:
- name: psql realms < /srv/salt/postgres/init.sql
- user: postgres