Fix #236: Reload postgres service after ACL changes in pg_hba.conf

* https://github.com/saltstack-formulas/postgres-formula/pull/216/commits/ef87358
This commit is contained in:
Rob Ruana 2019-01-16 04:39:30 +00:00 committed by Imran Iqbal
parent c213b30d4c
commit cce4cbf992

View file

@ -147,13 +147,6 @@ postgresql-conf:
{%- endif %}
# Restart the service where reloading is not sufficient
# Currently when the cluster is created or changes made to `postgresql.conf`
postgresql-service-restart:
module.wait:
- name: service.restart
- m_name: {{ postgres.service }}
{%- set pg_hba_path = salt['file.join'](postgres.conf_dir, 'pg_hba.conf') %}
postgresql-pg_hba:
@ -180,6 +173,15 @@ postgresql-pg_hba:
{%- endif %}
- require:
- file: postgresql-config-dir
- watch_in:
- module: postgresql-service-restart
# Restart the service where reloading is not sufficient
# Currently when the cluster is created or changes made to `postgresql.conf`
postgresql-service-restart:
module.wait:
- name: service.restart
- m_name: {{ postgres.service }}
{%- set pg_ident_path = salt['file.join'](postgres.conf_dir, 'pg_ident.conf') %}