diff options
author | Dan Prince <dprince@redhat.com> | 2017-06-26 10:35:25 -0400 |
---|---|---|
committer | Dan Prince <dprince@redhat.com> | 2017-06-26 10:35:25 -0400 |
commit | 5097c9d6d12231a6adcfc627e67901050e6e0ae2 (patch) | |
tree | bfd78083213ca7b77b76c44bd16ae335c4b5b6d1 /manifests | |
parent | 0aad4142bea287265c22ea252c4adeff5ff69721 (diff) |
MySQL: configure ::zaqar::db::mysql selectively
Adds the ability to create an empty MySQL database for Zaqar
if zaqar is enabled and settings for the mysql backend are
also available in hiera. This should allow Zaqar's database to
get created when needed, but skipped if MongoDB is used
instead (per overcloud defaults).
Change-Id: I3598e39c0a3cdf80b96e728d9aa8a7e6505e0690
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/profile/base/database/mysql.pp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/profile/base/database/mysql.pp b/manifests/profile/base/database/mysql.pp index 8eb6079..b71b476 100644 --- a/manifests/profile/base/database/mysql.pp +++ b/manifests/profile/base/database/mysql.pp @@ -217,6 +217,10 @@ class tripleo::profile::base::database::mysql ( if hiera('ec2_api_enabled', false) { include ::ec2api::db::mysql } + if hiera('zaqar_enabled', false) and hiera('zaqar::db::mysql::user', '') == 'zaqar' { + # NOTE: by default zaqar uses mongodb + include ::zaqar::db::mysql + } } } |