Fix service state when override are used
Service.running now uses correct require pkg id if haproxy.lookup.package is used Service.dead now uses correct name when haproxy.lookup.service is used
This commit is contained in:
parent
1cbdd4cb79
commit
dafe8fd6a5
1 changed files with 2 additions and 2 deletions
|
@ -7,13 +7,13 @@ haproxy.service:
|
||||||
- enable: True
|
- enable: True
|
||||||
- reload: True
|
- reload: True
|
||||||
- require:
|
- require:
|
||||||
- pkg: haproxy
|
- pkg: haproxy.install
|
||||||
{% if salt['grains.get']('os_family') == 'Debian' %}
|
{% if salt['grains.get']('os_family') == 'Debian' %}
|
||||||
- file: haproxy.service
|
- file: haproxy.service
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
service.dead:
|
service.dead:
|
||||||
- name: haproxy
|
- name: {{ haproxy.service }}
|
||||||
- enable: False
|
- enable: False
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if salt['grains.get']('os_family') == 'Debian' %}
|
{% if salt['grains.get']('os_family') == 'Debian' %}
|
||||||
|
|
Loading…
Reference in a new issue