Always create nova class
This commit removes the defined statement that was used for conditionally creating the nova class in openstack::nova::compute. This usage of ! defined introduced ordering issues that would make it extremely difficult to understand how nova would be configured.
This commit is contained in:
@@ -69,17 +69,14 @@ class openstack::nova::compute (
|
|||||||
$glance_connection = $glance_api_servers
|
$glance_connection = $glance_api_servers
|
||||||
$rabbit_connection = $rabbit_host
|
$rabbit_connection = $rabbit_host
|
||||||
|
|
||||||
# Configure Nova
|
class { 'nova':
|
||||||
if ! defined( Class[nova] ) {
|
sql_connection => $sql_connection,
|
||||||
class { 'nova':
|
rabbit_userid => $rabbit_user,
|
||||||
sql_connection => $final_sql_connection,
|
rabbit_password => $rabbit_password,
|
||||||
rabbit_userid => $rabbit_user,
|
image_service => 'nova.image.glance.GlanceImageService',
|
||||||
rabbit_password => $rabbit_password,
|
glance_api_servers => $glance_api_servers,
|
||||||
image_service => 'nova.image.glance.GlanceImageService',
|
verbose => $verbose,
|
||||||
glance_api_servers => $glance_connection,
|
rabbit_host => $rabbit_host,
|
||||||
verbose => $verbose,
|
|
||||||
rabbit_host => $rabbit_connection,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install / configure nova-compute
|
# Install / configure nova-compute
|
||||||
|
Reference in New Issue
Block a user