From 23b9c22398ddab7ef3c58b3f18866afed658c273 Mon Sep 17 00:00:00 2001 From: Seth House Date: Fri, 16 May 2014 11:03:35 -0600 Subject: [PATCH] Moved conf file watch statement into the if-statement --- postgres/init.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/init.sls b/postgres/init.sls index d4872c7..e6a2db4 100644 --- a/postgres/init.sls +++ b/postgres/init.sls @@ -8,8 +8,6 @@ postgresql: - running - enable: true - name: {{ postgres.service }} - - watch: - - file: {{ postgres.pg_hba }} - require: - pkg: {{ postgres.pkg }} @@ -24,6 +22,8 @@ pg_hba.conf: - mode: 644 - require: - pkg: {{ postgres.pkg }} + - watch_in: + - service: postgresql {% endif %} {% if 'db' in pillar['postgres'] %}