gvasalt/states/postgresql-server/init.sls
Jan Dittberner 2833b78c8a Implement salt states for gva webinterface
- setup listener and pg_hba.conf for PostgreSQL server
- add state code for gva
- add macros for nginx and uwsgi with Python 3 support
- add pillar data for gva
2020-03-07 18:26:52 +01:00

31 lines
614 B
Plaintext

locales-all:
pkg.installed
postgresql:
pkg:
- installed
service.running:
- require:
- pkg: postgresql
/etc/postgresql/11/main/conf.d/custom.conf:
file.managed:
- user: postgres
- group: postgres
- source: salt://postgresql-server/custom.conf
- template: jinja
- mode: 0644
- require:
- pkg: postgresql
- watch_in:
- service: postgresql
/etc/postgresql/11/main/pg_hba.conf:
file.append:
- source: salt://postgresql-server/pg_hba_line.conf
- template: jinja
- require:
- pkg: postgresql
- watch_in:
- service: postgresql