Skip to content
Snippets Groups Projects
Commit 81644fe4 authored by Alessandro Costantini's avatar Alessandro Costantini
Browse files

Compute node - second vip and internal variable for second vip

parent a14f470d
No related branches found
No related tags found
2 merge requests!23Dev,!17Dev osvip2
......@@ -5,12 +5,22 @@ class iaas::profile::nova::compute (
$cinder_secret = hiera('iaas::profile::cinder::secret', undef),
$region = hiera('iaas::region', undef),
$endpoint = hiera('iaas::role::endpoint::main_address', undef),
#VIP1
$endpoint_main = hiera('iaas::main_address', undef),
#VIP2
$endpoint_admin = hiera('iaas::admin_address', undef),
$libvirt_type = hiera('iaas::profile::nova::compute::libvirt_type', 'kvm'),
) {
include iaas::profile::nova::common
if $endpoint_admin == '' {
$real_endpoint_admin = $endpoint_main
}else{
$real_endpoint_admin = $endpoint_admin
}
package { 'sysfsutils': }
sysctl::value { "net.ipv4.ip_forward": value => "1" }
......@@ -24,7 +34,7 @@ class iaas::profile::nova::compute (
enabled => true,
vnc_enabled => true,
vncserver_proxyclient_address => $::facts["ipaddress_${admin_interface}"],
vncproxy_host => $endpoint,
vncproxy_host => $endpointi_main,
vnc_keymap => 'en-us',
}
......@@ -37,10 +47,6 @@ class iaas::profile::nova::compute (
migration_support => true,
}
#notify {"debug message secret: $cinder_secret key: $cinder_key":
# loglevel => alert,
# }
class {'nova::compute::rbd':
libvirt_rbd_user => 'cinder',
libvirt_images_rbd_pool => 'vms',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment