Salt: Add service block for kube-proxy for systemd

We have the workaround for Salt's problems here, but we should still express
our intent.
pull/6/head
Justin Santa Barbara 2015-07-03 10:26:21 -04:00
parent 60d822435b
commit a5b3c73ac4
1 changed files with 6 additions and 2 deletions

View File

@ -53,16 +53,20 @@ kube-proxy:
- group: root
- mode: 755
{% endif %}
kube-proxy-service:
service.running:
- name: kube-proxy
- enable: True
- watch:
- file: {{ environment_file }}
{% if pillar.get('is_systemd') %}
- file: {{ pillar.get('systemd_system_path') }}/kube-proxy.service
{% else %}
- file: /etc/init.d/kube-proxy
- file: /var/lib/kube-proxy/kubeconfig
{% endif %}
- file: /var/lib/kube-proxy/kubeconfig
/var/lib/kube-proxy/kubeconfig:
file.managed: