From 142046d38633529710151cc471b9f29938cb0cd4 Mon Sep 17 00:00:00 2001 From: Florian Haas Date: Mon, 8 Jul 2013 20:41:04 +0000 Subject: [PATCH] Add NIC variables --- manifests/init.pp | 3 +++ manifests/params.pp | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 72eb901..4f1d4e0 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -43,6 +43,9 @@ class kickstack ( $quantum_tenant_network_type = $kickstack::params::quantum_tenant_network_type, $quantum_network_vlan_ranges = $kickstack::params::quantum_network_vlan_ranges, $quantum_tunnel_id_ranges = $kickstack::params::quantum_tunnel_id_ranges, + $nic_management = $kickstack::params::nic_management, + $nic_data = $kickstack::params::nic_data, + $nic_external = $kickstack::params::nic_external ) inherits kickstack::params { include exportfact diff --git a/manifests/params.pp b/manifests/params.pp index 9e25123..84da2ce 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -114,4 +114,17 @@ class kickstack::params { # The tunnel ID ranges to use with the Quantum ovs plugin, when in gre mode $quantum_tunnel_id_ranges = pick(getvar("::${variable_prefix}quantum_tunnel_id_ranges"),"1:1000") + + # The interface over which to run your nodes' management network traffic. + # Normally, this would be your primary network interface. + $nic_management = pick(getvar("::${variable_prefix}nic_management"),"eth0") + + # The interface over which to run your tenant guest traffic. + # This would be a secondary interface, present on your network node and compute nodes. + $nic_data = pick(getvar("::${variable_prefix}nic_data"),"eth1") + + # The interface you use to connect to the public network. + # This interface would only be present on your network nodes, and possibly also + # on your API nodes if you wish to expose the API services publicly. + $nic_external = pick(getvar("::${variable_prefix}nic_external"),"eth2") }