Split conf/data directories, support

This commit is contained in:
N
2018-06-18 23:46:29 +01:00
parent 501b0b678a
commit 764863fc8e
6 changed files with 44 additions and 35 deletions

View File

@@ -12,10 +12,10 @@ include:
postgresql-start:
cmd.run:
- name: pg_ctl -D {{ postgres.conf_dir }} -l logfile start
- name: pg_ctl -D {{ postgres.data_dir }} -l logfile start
- runas: {{ postgres.user }}
- unless:
- ps -p $(head -n 1 {{ postgres.conf_dir }}/postmaster.pid) 2>/dev/null
- ps -p $(head -n 1 {{ postgres.data_dir }}/postmaster.pid) 2>/dev/null
- require:
- file: postgresql-pg_hba