Skip to content
Snippets Groups Projects
Commit dafe8fd6 authored by Mathieu Masse's avatar Mathieu Masse
Browse files

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
parent 1cbdd4cb
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,13 @@ haproxy.service:
- enable: True
- reload: True
- require:
- pkg: haproxy
- pkg: haproxy.install
{% if salt['grains.get']('os_family') == 'Debian' %}
- file: haproxy.service
{% endif %}
{% else %}
service.dead:
- name: haproxy
- name: {{ haproxy.service }}
- enable: False
{% endif %}
{% if salt['grains.get']('os_family') == 'Debian' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment