From 09cb75f3dc97d02d83b60584a60d5595af23f96e Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Wed, 20 Jan 2016 11:23:51 -0500 Subject: [PATCH] Salt: force service provider to systemd if systemd The version of Salt we're running doesn't do a good job of detecting systemd. Inspired by https://github.com/saltstack/salt/issues/13926, I added a provider-force to the services. With this change, salt-call -l debug state.highstate succeeds, even for repeated invocations. The issue was (probably) benign, but definitely caused noised (e.g. #11297) --- init.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.sls b/init.sls index 1abb4d2cf9..4a11d4d856 100644 --- a/init.sls +++ b/init.sls @@ -235,3 +235,7 @@ kube-addons: {% else %} - file: /etc/init.d/kube-addons {% endif %} +{% if pillar.get('is_systemd') %} + - provider: + - service: systemd +{%- endif %}