From 1b13c573641fd5ab2355faa3ecb89ad7ce1a76d3 Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Fri, 22 Apr 2016 16:00:49 +0200 Subject: Add aodh and gnocchi to schema profiles Change-Id: Ifb0cc7769ef99e4c7142c8f955f0ca721d61e9b5 --- manifests/profile/pacemaker/database/schemas.pp | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'manifests/profile/pacemaker') diff --git a/manifests/profile/pacemaker/database/schemas.pp b/manifests/profile/pacemaker/database/schemas.pp index b301bab..489e75b 100644 --- a/manifests/profile/pacemaker/database/schemas.pp +++ b/manifests/profile/pacemaker/database/schemas.pp @@ -27,20 +27,30 @@ # or 'mongodb' # Defaults to hiera('ceilometer_backend') # +# [*gnocchi_indexer_backend*] +# (Optional) Type of backend used as Gnocchi indexer +# Defaults to hiera('gnocchi_indexer_backend') +# # [*pacemaker_master*] # (Optional) The hostname of the pacemaker master in this cluster # Defaults to hiera('bootstrap_nodeid') # class tripleo::profile::pacemaker::database::schemas ( - $step = hiera('step'), - $ceilometer_backend = hiera('ceilometer_backend'), - $pacemaker_master = hiera('bootstrap_nodeid') + $step = hiera('step'), + $ceilometer_backend = hiera('ceilometer_backend'), + $gnocchi_indexer_backend = hiera('gnocchi_indexer_backend'), + $pacemaker_master = hiera('bootstrap_nodeid') ) { if downcase($pacemaker_master) == $::hostname and $step >= 2 { include ::tripleo::profile::base::database::schemas if downcase($ceilometer_backend) == 'mysql' { Exec['galera-ready'] -> Class['::ceilometer::db::mysql'] + Exec['galera-ready'] -> Class['::aodh::db::mysql'] + } + + if downcase($gnocchi_indexer_backend) == 'mysql' { + Exec['galera-ready'] -> Class['::gnocchi::db::mysql'] } Exec['galera-ready'] -> Class['::cinder::db::mysql'] -- cgit 1.2.3-korg