Convert use of glance_host + glance_port to combined glance_api_servers

This commit is contained in:
Adam Gandelman 2011-06-22 11:54:05 -07:00
parent 5bca5c6837
commit 7d76ab05d3
10 changed files with 21 additions and 37 deletions

View File

@ -22,8 +22,7 @@ class nova::all(
$available_ips = '256',
$image_service = 'nova.image.glance.GlanceImageService',
$glance_host = 'localhost',
$glance_port = '9292',
$glance_api_servers = 'localhost:9292',
$admin_user = 'novaadmin',
$project_name = 'nova',
@ -49,8 +48,7 @@ class nova::all(
verbose => $verbose,
sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
image_service => $image_service,
glance_host => $glance_host,
glance_port => $glance_port,
glance_api_servers => $glance_api_servers,
rabbit_host => $rabbit_host,
rabbit_port => $rabbit_port,
rabbit_userid => $rabbit_userid,

View File

@ -5,8 +5,7 @@ class nova(
$image_service = 'nova.image.local.LocalImageService',
# these glance params should be optional
# this should probably just be configured as a glance client
$glance_host = 'localhost',
$glance_port = '9292',
$glance_api_servers = 'localhost:9292',
$allow_admin_api = false,
$rabbit_host = 'localhost',
$rabbit_password='guest',
@ -102,8 +101,7 @@ class nova(
if $image_service == 'nova.image.glance.GlanceImageService' {
nova_config {
'glance_host': value => $glance_host;
'glance_port': value => $glance_port; # default is 9292
'glance_api_servers': value => $glance_api_servers;
}
}

View File

@ -14,8 +14,7 @@ class nova::rackspace::all(
$flat_network_bridge = 'xenbr0',
$flat_network_bridge_ip = '10.0.0.1',
$flat_network_bridge_netmask = '255.255.255.0',
$glance_host = 'localhost',
$glance_port = '9292',
$glance_api_servers = 'localhost:9292',
$allow_admin_api = 'true',
$rabbit_host = undef,
$rabbit_port = undef,
@ -69,8 +68,7 @@ class nova::rackspace::all(
verbose => $verbose,
sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
image_service => $image_service,
glance_host => $glance_host,
glance_port => $glance_port,
glance_api_servers => $glance_api_servers,
allow_admin_api => $allow_admin_api,
rabbit_host => $rabbit_host,
rabbit_password => $rabbit_password,

View File

@ -20,8 +20,7 @@ class nova::ubuntu::all(
$available_ips = '256',
$image_service = undef,
$glance_host = 'localhost',
$glance_port = '9292',
$glance_api_servers = 'localhost:9292',
$admin_user = 'novaadmin',
$project_name = 'nova',
@ -47,8 +46,7 @@ class nova::ubuntu::all(
verbose => $verbose,
sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
image_service => $image_service,
glance_host => $glance_host,
glance_port => $glance_port,
glance_api_servers => $glance_api_servers,
rabbit_host => $rabbit_host,
rabbit_port => $rabbit_port,
rabbit_userid => $rabbit_userid,

View File

@ -12,8 +12,8 @@ class nova::ubuntu::cc (
$flat_network_bridge_netmask = '255.255.255.0',
$image_service = 'nova.image.local.LocalImageService',
$glance_host,
$glance_port = '9292',
$glance_api_servers = 'localhost:9292',
$nova_network = '11.0.0.0',
$available_ips = '256',
@ -37,12 +37,11 @@ class nova::ubuntu::cc (
}
class { "nova":
logdir => $logdir,
verbose => $verbose,
sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
image_service => $image_service,
glance_host => $glance_host,
glance_port => $glance_port,
logdir => $logdir,
verbose => $verbose,
sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
image_service => $image_service,
glance_api_servers => $glance_api_servers,
}
class { "nova::api": enabled => true }

View File

@ -6,9 +6,7 @@ class nova::ubuntu::compute (
# default to local image service.
$image_service = undef,
$glance_host = undef,
$glance_port = '9292',
$glance_api_servers = undef,
$flat_network_bridge,
$flat_network_bridge_ip,
$flat_network_bridge_netmask,
@ -30,8 +28,7 @@ class nova::ubuntu::compute (
rabbit_userid => $rabbit_userid,
rabbit_virtual_host => $rabbit_virtual_host,
sql_connection => "mysql://${db_user}:${db_password}@${db_host}/${db_name}",
glance_host => $glance_host,
glance_port => $glance_port,
glance_api_servers => $glance_api_servers,
}
# TODO For now lets worry about FlatManager, then FlatDHCP, etc.

View File

@ -16,8 +16,7 @@ class { 'nova::all':
image_service => 'nova.image.glance.GlanceImageService',
glance_host => 'localhost',
glance_port => '9292',
glance_api_servers => 'localhost:9292',
libvirt_type => 'qemu',
}

View File

@ -10,8 +10,7 @@ resources { 'nova_config':
class { 'nova::rackspace::all':
image_service => 'nova.image.glance.GlanceImageService',
glance_host => $ipaddress,
glance_port => '9292',
glance_api_servers => "${ipaddress}:9292",
allow_admin_api => 'true',
host => $hostname,
xenapi_connection_url => 'https://<XenServer_IP>',

View File

@ -17,8 +17,7 @@ class { 'nova::ubuntu::cc':
available_ips => '256',
image_service => 'nova.image.glance.GlanceImageService',
glance_host => $ipaddress,
glance_api_servers => "${ipaddress}:9292",
db_password => 'password',
db_allowed_hosts => ['somehost', '10.0.0.2', '10.0.0.3', '10.0.0.5'],

View File

@ -12,8 +12,7 @@ class { 'nova::ubuntu::compute':
db_password => 'password',
image_service => 'nova.image.glance.GlanceImageService',
glance_host => '10.0.0.4',
glance_api_servers => '10.0.0.4:9292',
flat_network_bridge => 'br100',
flat_network_bridge_ip => '11.0.0.2',