From c365a308424424d453ee85db0f7263e74100675a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Thu, 8 Oct 2015 23:34:57 +0300 Subject: [PATCH] Watch init file --- consul/init.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consul/init.sls b/consul/init.sls index 0e1a72a..e97404b 100644 --- a/consul/init.sls +++ b/consul/init.sls @@ -54,6 +54,10 @@ consul_init_script: - name: /etc/init.d/consul - mode: 0755 {% endif %} + {% if consul.service != False %} + - watch_in: + - service: consul + {% endif %} consul_config_dir: file.directory: