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:
Dan Bode
2012-08-19 00:47:21 -07:00
parent 67a317b82b
commit f6085946b9

View File

@@ -93,8 +93,10 @@ class openstack::controller (
####### DATABASE SETUP ######
# set up mysql server
case $db_type {
'mysql': {
if ($db_type == 'mysql') {
if ($enabled) {
Class['glance::db::mysql'] -> Class['glance::registry']
}
class { 'openstack::db::mysql':
mysql_root_password => $mysql_root_password,
mysql_bind_address => $mysql_bind_address,
@@ -109,7 +111,7 @@ class openstack::controller (
nova_db_password => $nova_db_password,
nova_db_dbname => $nova_db_dbname,
allowed_hosts => $allowed_hosts,
}
enabled => $enabled,
}
}