From dafe8fd6a5514b80913f93a033442f4918cb70b4 Mon Sep 17 00:00:00 2001 From: Mathieu Masse Date: Thu, 22 Mar 2018 20:43:25 -0400 Subject: [PATCH] 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 --- haproxy/service.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/haproxy/service.sls b/haproxy/service.sls index 6883315..240d919 100644 --- a/haproxy/service.sls +++ b/haproxy/service.sls @@ -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' %}