Skip to content

Commit dafe8fd

Browse files
committed
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
1 parent 1cbdd4c commit dafe8fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

haproxy/service.sls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ haproxy.service:
77
- enable: True
88
- reload: True
99
- require:
10-
- pkg: haproxy
10+
- pkg: haproxy.install
1111
{% if salt['grains.get']('os_family') == 'Debian' %}
1212
- file: haproxy.service
1313
{% endif %}
1414
{% else %}
1515
service.dead:
16-
- name: haproxy
16+
- name: {{ haproxy.service }}
1717
- enable: False
1818
{% endif %}
1919
{% if salt['grains.get']('os_family') == 'Debian' %}

0 commit comments

Comments
 (0)