Improve vagrant reliablility, fix race condition with openvswitch and docker

This commit is contained in:
derekwaynecarr
2015-02-21 13:31:50 -05:00
parent 86a0193f51
commit 87a41b0934
6 changed files with 34 additions and 12 deletions

View File

@@ -72,7 +72,3 @@ kubelet:
- file: /etc/init.d/kubelet
{% endif %}
- file: /var/lib/kubelet/kubernetes_auth
{% if grains.network_mode is defined and grains.network_mode == 'openvswitch' %}
- sls: sdn
{% endif %}

View File

@@ -1,15 +1,8 @@
{% if grains.network_mode is defined and grains.network_mode == 'openvswitch' %}
openvswitch:
pkg:
- installed
service.running:
- enable: True
sdn:
cmd.wait:
- name: /kubernetes-vagrant/network_closure.sh
- watch:
- pkg: docker-io
- pkg: openvswitch
- sls: docker
{% endif %}

View File

@@ -37,7 +37,9 @@ base:
- monit
- nginx
- kube-client-tools
{% if grains['cloud'] is defined and grains['cloud'] != 'vagrant' %}
- logrotate
{% endif %}
- kube-addons
{% if grains['cloud'] is defined and grains['cloud'] == 'azure' %}
- openvpn