mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00
Ensure service starts after cluster created
This commit is contained in:
parent
c3a32eb0aa
commit
67d6b8a545
1 changed files with 5 additions and 3 deletions
|
@ -85,6 +85,8 @@ postgresql-cluster-prepared:
|
||||||
- require:
|
- require:
|
||||||
- pkg: postgresql-server
|
- pkg: postgresql-server
|
||||||
- file: postgresql-cluster-prepared
|
- file: postgresql-cluster-prepared
|
||||||
|
- watch_in:
|
||||||
|
- module: postgresql-service-restart
|
||||||
|
|
||||||
postgresql-config-dir:
|
postgresql-config-dir:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
@ -140,15 +142,15 @@ postgresql-conf:
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- module: postgresql-service-restart
|
- module: postgresql-service-restart
|
||||||
|
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
# Restart the service where reloading is not sufficient
|
# Restart the service where reloading is not sufficient
|
||||||
# Currently only when changes are made to `postgresql.conf`
|
# Currently when the cluster is created or changes made to `postgresql.conf`
|
||||||
postgresql-service-restart:
|
postgresql-service-restart:
|
||||||
module.wait:
|
module.wait:
|
||||||
- name: service.restart
|
- name: service.restart
|
||||||
- m_name: {{ postgres.service }}
|
- m_name: {{ postgres.service }}
|
||||||
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
{%- 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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue