mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-17 10:10:28 +00:00
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:
parent
f48a727564
commit
3a1fc35a13
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@ TEMPLATE-service-running-service-running:
|
|||
service.running:
|
||||
- name: {{ TEMPLATE.service.name }}
|
||||
- enable: True
|
||||
- require:
|
||||
- watch:
|
||||
- sls: {{ sls_config_file }}
|
||||
|
|
Loading…
Add table
Reference in a new issue