realms-wiki/srv/salt/postgres/init.sls

19 lines
316 B
Plaintext
Raw Normal View History

2013-12-03 00:23:43 +02:00
postgresql:
pkg.installed:
- name: postgresql-9.3
2013-12-03 01:50:19 +02:00
libpq-dev:
pkg.installed
2013-12-03 00:23:43 +02:00
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