mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 17:50:27 +00:00
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:
parent
c213b30d4c
commit
cce4cbf992
1 changed files with 9 additions and 7 deletions
|
@ -147,13 +147,6 @@ postgresql-conf:
|
||||||
|
|
||||||
{%- endif %}
|
{%- 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') %}
|
{%- set pg_hba_path = salt['file.join'](postgres.conf_dir, 'pg_hba.conf') %}
|
||||||
|
|
||||||
postgresql-pg_hba:
|
postgresql-pg_hba:
|
||||||
|
@ -180,6 +173,15 @@ postgresql-pg_hba:
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
- require:
|
- require:
|
||||||
- file: postgresql-config-dir
|
- 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') %}
|
{%- set pg_ident_path = salt['file.join'](postgres.conf_dir, 'pg_ident.conf') %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue