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: