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)
This commit is contained in:
Justin Santa Barbara 2016-01-20 11:23:51 -05:00
parent a5d2c1b0fb
commit cdd4caf4df
2 changed files with 8 additions and 0 deletions

View File

@ -212,3 +212,7 @@ kube-addons:
{% else %}
- file: /etc/init.d/kube-addons
{% endif %}
{% if pillar.get('is_systemd') %}
- provider:
- service: systemd
{%- endif %}

View File

@ -79,3 +79,7 @@ kubelet:
{% endif %}
- file: {{ environment_file }}
- file: /var/lib/kubelet/kubeconfig
{% if pillar.get('is_systemd') %}
- provider:
- service: systemd
{%- endif %}