Moved conf file watch statement into the if-statement
This commit is contained in:
@@ -8,8 +8,6 @@ postgresql:
|
|||||||
- running
|
- running
|
||||||
- enable: true
|
- enable: true
|
||||||
- name: {{ postgres.service }}
|
- name: {{ postgres.service }}
|
||||||
- watch:
|
|
||||||
- file: {{ postgres.pg_hba }}
|
|
||||||
- require:
|
- require:
|
||||||
- pkg: {{ postgres.pkg }}
|
- pkg: {{ postgres.pkg }}
|
||||||
|
|
||||||
@@ -24,6 +22,8 @@ pg_hba.conf:
|
|||||||
- mode: 644
|
- mode: 644
|
||||||
- require:
|
- require:
|
||||||
- pkg: {{ postgres.pkg }}
|
- pkg: {{ postgres.pkg }}
|
||||||
|
- watch_in:
|
||||||
|
- service: postgresql
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if 'db' in pillar['postgres'] %}
|
{% if 'db' in pillar['postgres'] %}
|
||||||
|
|||||||
Reference in New Issue
Block a user