From cc79a1651712ce80383be5818b852f197b17d71c Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Fri, 24 Jun 2011 14:36:31 -0700 Subject: [PATCH] updated all to work with other changes. - it was missing several variables. --- manifests/all.pp | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/manifests/all.pp b/manifests/all.pp index 23480c716..bb1a5d935 100644 --- a/manifests/all.pp +++ b/manifests/all.pp @@ -12,7 +12,7 @@ class nova::all( $rabbit_virtual_host = undef, $rabbit_host = undef, - $libvirt_config = undef, + $libvirt_type = 'kvm', $flat_network_bridge = 'br100', $flat_network_bridge_ip = '11.0.0.1', @@ -23,6 +23,8 @@ class nova::all( $image_service = 'nova.image.glance.GlanceImageService', $glance_api_servers = 'localhost:9292', + $glance_host = 'localhost', + $glance_port = '9292', $admin_user = 'novaadmin', $project_name = 'nova', @@ -31,17 +33,11 @@ class nova::all( ) { - # work around hostname bug, LP #653405 - host { $hostname: - ip => $ipaddress, - host_aliases => $fqdn, - } class { 'nova::rabbitmq': port => $rabbit_port, userid => $rabbit_userid, password => $rabbit_password, virtual_host => $rabbit_virtual_host, - require => Host[$hostname], } class { "nova": @@ -49,6 +45,8 @@ class nova::all( sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}", image_service => $image_service, glance_api_servers => $glance_api_servers, + glance_host => $glance_host, + glance_port => $glance_port, rabbit_host => $rabbit_host, rabbit_port => $rabbit_port, rabbit_userid => $rabbit_userid, @@ -60,15 +58,21 @@ class nova::all( class { "nova::compute": api_server => $ipaddress, - libvirt_config => $libvirt_config, enabled => true, } + class { 'nova::compute::libvirt': + libvirt_type => $libvirt_type, + flat_network_bridge => $flat_network_bridge, + flat_network_bridge_ip => $flat_network_bridge_ip, + flat_network_bridge_netmask => $flat_network_bridge_netmask, + } class { "nova::network::flat": enabled => true, flat_network_bridge => $flat_network_bridge, flat_network_bridge_ip => $flat_network_bridge_ip, flat_network_bridge_netmask => $flat_network_bridge_netmask, + configure_bridge => false, } class { "nova::objectstore": enabled => true }