Restart keepalived on script changes
Make sure keepalived service is restarted when changing
notify or check scripts
Change-Id: Ibbf19f76ef4c734e87e294c06f37240be79614b9
diff --git a/keepalived/cluster.sls b/keepalived/cluster.sls
index 63bab46..734b70b 100644
--- a/keepalived/cluster.sls
+++ b/keepalived/cluster.sls
@@ -34,7 +34,7 @@
notify_action: {{ instance.notify_action }}
- require:
- pkg: keepalived_packages
- - require_in:
+ - watch_in:
- service: keepalived_service
{%- endif %}
@@ -54,7 +54,7 @@
- template: jinja
- defaults:
script: {{ script|yaml }}
- - require_in:
+ - watch_in:
- service: keepalived_service
{% endfor %}