From f1e8a37300d5250efa39e1e99743471ac145ad7f Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Sun, 19 Aug 2012 00:44:23 -0700 Subject: [PATCH] Support passive mysql servers Adds code to support passive mysql instances. --- manifests/db/mysql.pp | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/manifests/db/mysql.pp b/manifests/db/mysql.pp index 69b1e09..368b968 100644 --- a/manifests/db/mysql.pp +++ b/manifests/db/mysql.pp @@ -17,8 +17,6 @@ # nova_db_password => 'changeme', # allowed_hosts => ['127.0.0.1', '10.0.0.%'], # } - - class openstack::db::mysql ( # Required MySQL # passwords @@ -56,27 +54,29 @@ class openstack::db::mysql ( class { 'mysql::server::account_security': } } - # Create the Keystone db - class { 'keystone::db::mysql': - user => $keystone_db_user, - password => $keystone_db_password, - dbname => $keystone_db_dbname, - allowed_hosts => $allowed_hosts, - } + if ($enabled) { + # Create the Keystone db + class { 'keystone::db::mysql': + user => $keystone_db_user, + password => $keystone_db_password, + dbname => $keystone_db_dbname, + allowed_hosts => $allowed_hosts, + } - # Create the Glance db - class { 'glance::db::mysql': - user => $glance_db_user, - password => $glance_db_password, - dbname => $glance_db_dbname, - allowed_hosts => $allowed_hosts, - } + # Create the Glance db + class { 'glance::db::mysql': + user => $glance_db_user, + password => $glance_db_password, + dbname => $glance_db_dbname, + allowed_hosts => $allowed_hosts, + } - # Create the Nova db - class { 'nova::db::mysql': - user => $nova_db_user, - password => $nova_db_password, - dbname => $nova_db_dbname, - allowed_hosts => $allowed_hosts, + # Create the Nova db + class { 'nova::db::mysql': + user => $nova_db_user, + password => $nova_db_password, + dbname => $nova_db_dbname, + allowed_hosts => $allowed_hosts, + } } }