add ip per pod across vagrant minions

This commit is contained in:
Rajat Chopra
2014-08-07 13:02:52 -07:00
parent c92b7d5bb7
commit 2dd57898d4
8 changed files with 182 additions and 4 deletions

View File

@@ -4,6 +4,9 @@
{% set environment_file = '/etc/default/docker' %}
{% endif %}
bridge-utils:
pkg.installed
{% if grains['os_family'] != 'RedHat' %}
docker-repo:
@@ -25,9 +28,6 @@ net.ipv4.ip_forward:
sysctl.present:
- value: 1
bridge-utils:
pkg.installed
cbr0:
container_bridge.ensure:
- cidr: {{ grains['cbr-cidr'] }}

View File

@@ -0,0 +1,16 @@
{% if grains['os_family'] == 'RedHat' %}
openvswitch:
pkg:
- installed
service.running:
- enable: True
sdn:
cmd.wait:
- name: /vagrant/network_closure.sh
- watch:
- pkg: docker-io
- pkg: openvswitch
{% endif %}

View File

@@ -12,6 +12,8 @@ base:
- nsinit
{% if grains['cloud'] is defined and grains['cloud'] == 'azure' %}
- openvpn-client
{% else %}
- sdn
{% endif %}
'roles:kubernetes-master':