From 3f33680f9066272b6d42f42f2efe9f3fc696024f Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Tue, 30 Oct 2012 00:47:19 -0700 Subject: [PATCH 1/3] set multi_host when network is nova --- manifests/site.pp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manifests/site.pp b/manifests/site.pp index 6f98e2b..a75da27 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -45,6 +45,7 @@ $network_type = 'quantum' #$network_type = 'nova' if $network_type == 'nova' { $use_quantum = false + $multi_host = true } else { $use_quamtum = true } @@ -55,6 +56,7 @@ $floating_network_range = '172.16.0.128/25' $auto_assign_floating_ip = false #### end shared variables ################# + #### controller/compute mode settings #### $openstack_controller = '172.16.0.3' #### controller/compute mode settings #### @@ -108,7 +110,7 @@ node /openstack-controller/ { fixed_range => $fixed_network_range, floating_range => $floating_network_range, create_networks => true, - multi_host => true, + multi_host => $multi_host, db_host => '127.0.0.1', db_type => 'mysql', mysql_account_security => true, @@ -182,7 +184,7 @@ node /compute/ { sql_connection => "mysql://nova:${nova_db_password}@${openstack_controller}/nova", cinder_sql_connection => "mysql://cinder:${cinder_db_password}@${openstack_controller}/cinder", quantum_sql_connection => "mysql://quantum:${quantum_db_password}@${openstack_controller}/quantum?charset=utf8", - multi_host => true, + multi_host => $multi_host, nova_user_password => $nova_user_password, quantum_user_password => $quantum_user_password, rabbit_password => $rabbit_password, From a7bbfeebe5baff50e40ff37264ba86d64b391178 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Tue, 30 Oct 2012 00:48:03 -0700 Subject: [PATCH 2/3] fix nova-network support for controllers and computes --- manifests/site.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/site.pp b/manifests/site.pp index a75da27..0256e60 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -102,8 +102,7 @@ node /openstack-controller/ { quantum => $use_quantum, quantum_db_password => $quantum_db_password, quantum_user_password => $quantum_user_password, - # Required Horizon - + # horizon secret_key => $secret_key, # need to sort out networking... network_manager => 'nova.network.manager.FlatDHCPManager', @@ -126,7 +125,7 @@ node /openstack-controller/ { cache_server_port => '11211', swift => false, horizon_app_links => undef, - # Genera + # General verbose => $verbose, purge_nova_config => false, } @@ -185,12 +184,14 @@ node /compute/ { cinder_sql_connection => "mysql://cinder:${cinder_db_password}@${openstack_controller}/cinder", quantum_sql_connection => "mysql://quantum:${quantum_db_password}@${openstack_controller}/quantum?charset=utf8", multi_host => $multi_host, + fixed_range => $fixed_network_range, nova_user_password => $nova_user_password, + quantum => $use_quantum, + quantum_host => $openstack_controller, quantum_user_password => $quantum_user_password, rabbit_password => $rabbit_password, glance_api_servers => ["${openstack_controller}:9292"], rabbit_host => $openstack_controller, - quantum_host => $openstack_controller, keystone_host => $openstack_controller, vncproxy_host => $openstack_controller, vnc_enabled => true, From 3e65601cb39e7e236ac89217a5b0868bdf4f636f Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Tue, 30 Oct 2012 00:48:30 -0700 Subject: [PATCH 3/3] remove deprecated comments clean out old comments --- manifests/site.pp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/manifests/site.pp b/manifests/site.pp index 0256e60..60100fb 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -162,17 +162,6 @@ node /compute/ { } ~> Service['libvirt'] } - # External lookups. - # $rabbit_connection_hash = collect_rabbit_connection('ipaddress_eth1', 'architecture=amd64') - # $nova_db_addr = collect_nova_db_connection('ipaddress_eth1', 'architecture=amd64') - # $vnc_proxy_addr = unique(query_nodes('Class[nova::vncproxy]', 'ipaddress_eth1')) - # $glance_api_addr = unique(query_nodes('Class[glance::api]', 'ipaddress_eth1')) - - # - # This is just for testing. It creates a loopback interface - # that can be mounted by cinder. In real deployments, you should - # partition your physical disks to have volume groups. - # class { 'cinder::setup_test_volume': } -> Service<||> class { 'openstack::compute':