summaryrefslogtreecommitdiffstats
path: root/common/puppet-opnfv/manifests/compute.pp
diff options
context:
space:
mode:
Diffstat (limited to 'common/puppet-opnfv/manifests/compute.pp')
-rw-r--r--common/puppet-opnfv/manifests/compute.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/common/puppet-opnfv/manifests/compute.pp b/common/puppet-opnfv/manifests/compute.pp
index 7bba609..0b81757 100644
--- a/common/puppet-opnfv/manifests/compute.pp
+++ b/common/puppet-opnfv/manifests/compute.pp
@@ -28,8 +28,6 @@ class opnfv::compute {
}
##Common Parameters
- if $ovs_tunnel_if == '' { fail('ovs_tunnel_if is empty') }
-
if !$rbd_secret_uuid { $rbd_secret_uuid = '3b519746-4021-4f72-957e-5b9d991723be' }
if !$private_subnet { fail('private_subnet is empty')}
if !$ceph_public_network { $ceph_public_network = $private_subnet }
@@ -54,6 +52,7 @@ class opnfv::compute {
##HA Global params
if $ha_flag {
+ if $private_network == '' { fail('private_network is empty') }
if !$keystone_private_vip { fail('keystone_private_vip is empty') }
if !$glance_private_vip { fail('glance_private_vip is empty') }
if !$nova_private_vip { fail('nova_private_vip is empty') }
@@ -73,8 +72,13 @@ class opnfv::compute {
if !$ceph_mon_initial_members { $ceph_mon_initial_members = $controllers_hostnames_array }
if !$ceph_mon_host { $ceph_mon_host = $controllers_ip_array }
if !$neutron_private_vip { fail('neutron_private_vip is empty') }
+
+ ##Find private interface
+ $ovs_tunnel_if = get_nic_from_network("$private_network")
+
} else {
##non HA params
+ if $ovs_tunnel_if == '' { fail('ovs_tunnel_if is empty') }
if !$private_ip { fail('private_ip is empty') }
$keystone_private_vip = $private_ip
$glance_private_vip = $private_ip