fix(running.sls): use watch not require to ensure service restart

* Service isn't restarted if the config file changes
* Made aware of this in the `keepalived-formula`, which was updated to
  this `template-formula` structure
  - https://github.com/saltstack-formulas/keepalived-formula/issues/37
  - https://github.com/saltstack-formulas/keepalived-formula/pull/41
* May need to reconsider: should we really be watching the whole `sls`
  rather than explictly watching each state?
This commit is contained in:
Imran Iqbal 2020-04-07 14:13:43 +01:00
parent f48a727564
commit 3a1fc35a13
No known key found for this signature in database
GPG key ID: 6D8629439D2B7819

View file

@ -13,5 +13,5 @@ TEMPLATE-service-running-service-running:
service.running:
- name: {{ TEMPLATE.service.name }}
- enable: True
- require:
- watch:
- sls: {{ sls_config_file }}