Add conditional dependency
Add a conditional dependency that glance::registry should be configured only after its database is created. This code only needs to be created on active nodes.
This commit is contained in:
@@ -93,8 +93,10 @@ class openstack::controller (
|
|||||||
|
|
||||||
####### DATABASE SETUP ######
|
####### DATABASE SETUP ######
|
||||||
# set up mysql server
|
# set up mysql server
|
||||||
case $db_type {
|
if ($db_type == 'mysql') {
|
||||||
'mysql': {
|
if ($enabled) {
|
||||||
|
Class['glance::db::mysql'] -> Class['glance::registry']
|
||||||
|
}
|
||||||
class { 'openstack::db::mysql':
|
class { 'openstack::db::mysql':
|
||||||
mysql_root_password => $mysql_root_password,
|
mysql_root_password => $mysql_root_password,
|
||||||
mysql_bind_address => $mysql_bind_address,
|
mysql_bind_address => $mysql_bind_address,
|
||||||
@@ -109,7 +111,7 @@ class openstack::controller (
|
|||||||
nova_db_password => $nova_db_password,
|
nova_db_password => $nova_db_password,
|
||||||
nova_db_dbname => $nova_db_dbname,
|
nova_db_dbname => $nova_db_dbname,
|
||||||
allowed_hosts => $allowed_hosts,
|
allowed_hosts => $allowed_hosts,
|
||||||
}
|
enabled => $enabled,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user