fix(service): service restart handling with watch requisite
Previously, the state for the keepalived service included the enable attribute. This would prevent the watch requisite to restart the service if the service was already running but not enabled. For reference, https://docs.saltproject.io/en/latest/ref/states/requisites.html#watch Split service handling in service.enabled and service.running.
This commit is contained in:
parent
032afac441
commit
1ae8918f1e
@ -12,6 +12,9 @@ include:
|
|||||||
keepalived-service-running-service-running:
|
keepalived-service-running-service-running:
|
||||||
service.running:
|
service.running:
|
||||||
- name: {{ keepalived.service.name }}
|
- name: {{ keepalived.service.name }}
|
||||||
- enable: True
|
|
||||||
- watch:
|
- watch:
|
||||||
- sls: {{ sls_config_file }}
|
- sls: {{ sls_config_file }}
|
||||||
|
|
||||||
|
keepalived-service-running-service-enabled:
|
||||||
|
service.enabled:
|
||||||
|
- name: {{ keepalived.service.name }}
|
||||||
|
Loading…
Reference in New Issue
Block a user