Merge pull request #72 from mymasse/feature/fix_override

Fix service state when override are used
This commit is contained in:
Niels Abspoel 2018-03-23 09:22:22 +01:00 committed by GitHub
commit 654fedfeab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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' %}