Add explicit flag to use openvswitch

pull/6/head
derekwaynecarr 2014-09-08 13:15:40 -04:00
parent c2072336d0
commit f42fcef620
4 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{% if grains['os_family'] == 'RedHat' %}
{% if grains.network_mode is defined and grains.network_mode == 'openvswitch' %}
openvswitch:
pkg:

View File

@ -37,6 +37,7 @@ cat <<EOF >/etc/salt/minion.d/grains.conf
grains:
node_ip: $MASTER_IP
master_ip: $MASTER_IP
network_mode: openvswitch
etcd_servers: $MASTER_IP
cloud_provider: vagrant
roles:

View File

@ -44,6 +44,7 @@ echo "master: $MASTER_NAME" > /etc/salt/minion.d/master.conf
# Our minions will have a pool role to distinguish them from the master.
cat <<EOF >/etc/salt/minion.d/grains.conf
grains:
network_mode: openvswitch
node_ip: $MINION_IP
etcd_servers: $MASTER_IP
roles:

View File

@ -59,6 +59,7 @@ hostnamef | (Optional) The full host name of the machine, i.e. hostname -f
master_ip | (Optional) The IP address that the apiserver will bind against
node_ip | (Optional) The IP address to use to address this node
minion_ip | (Optional) Mapped to the kubelet hostname_override, K8S TODO - change this name
network_mode | (Optional) Networking model to use among nodes: *openvswitch*
roles | (Required) 1. **kubernetes-master** means this machine is the master in the kubernetes cluster. 2. **kubernetes-pool** means this machine is a kubernetes-minion. Depending on the role, the Salt scripts will provision different resources on the machine.
These keys may be leveraged by the Salt sls files to branch behavior.