aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2016-04-22 16:00:49 +0200
committerGiulio Fidente <gfidente@redhat.com>2016-04-22 16:00:49 +0200
commit1b13c573641fd5ab2355faa3ecb89ad7ce1a76d3 (patch)
tree9c3f875142ed24573c0ce4231a356244e5677483 /manifests
parentf6e4f0f35ecd4f3a25a9ab3314fa10eb3b7b2f7d (diff)
Add aodh and gnocchi to schema profiles
Change-Id: Ifb0cc7769ef99e4c7142c8f955f0ca721d61e9b5
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/base/database/schemas.pp51
-rw-r--r--manifests/profile/pacemaker/database/schemas.pp16
2 files changed, 51 insertions, 16 deletions
diff --git a/manifests/profile/base/database/schemas.pp b/manifests/profile/base/database/schemas.pp
index 93fb2bb..472a0f4 100644
--- a/manifests/profile/base/database/schemas.pp
+++ b/manifests/profile/base/database/schemas.pp
@@ -23,9 +23,14 @@
# Defaults to hiera('step')
#
# [*ceilometer_backend*]
-# (Optional) Name of the backend for ceilometer storage
+# (Optional) The backend used by ceilometer, usually either 'mysql'
+# or 'mongodb'
# Defaults to hiera('ceilometer_backend')
#
+# [*enable_aodh*]
+# (Optional) Whether to create schemas for Aodh
+# Defaults to true
+#
# [*enable_ceilometer*]
# (Optional) Whether to create schemas for Ceilometer
# Defaults to true
@@ -46,6 +51,10 @@
# (Optional) Whether to create schemas for Glance
# Defaults to true
#
+# [*enable_gnocchi*]
+# (Optional) Whether to create schemas for Gnocchi
+# Defaults to true
+#
# [*enable_nova*]
# (Optional) Whether to create schemas for Nova
# Defaults to true
@@ -58,21 +67,37 @@
# (Optional) Whether to create schemas for Sahara
# Defaults to true
#
+# [*gnocchi_indexer_backend*]
+# (Optional) Type of backend used as Gnocchi indexer
+# Defaults to hiera('gnocchi_indexer_backend')
+#
class tripleo::profile::base::database::schemas (
- $step = hiera('step'),
- $ceilometer_backend = hiera('ceilometer_backend'),
- $enable_ceilometer = true,
- $enable_cinder = true,
- $enable_heat = true,
- $enable_keystone = true,
- $enable_glance = true,
- $enable_nova = true,
- $enable_neutron = true,
- $enable_sahara = true
+ $step = hiera('step'),
+ $ceilometer_backend = hiera('ceilometer_backend'),
+ $enable_aodh = true,
+ $enable_ceilometer = true,
+ $enable_cinder = true,
+ $enable_heat = true,
+ $enable_keystone = true,
+ $enable_glance = true,
+ $enable_gnocchi = true,
+ $enable_nova = true,
+ $enable_neutron = true,
+ $enable_sahara = true,
+ $gnocchi_indexer_backend = hiera('gnocchi_indexer_backend'),
) {
if $step >= 2 {
- if $enable_ceilometer and downcase($ceilometer_backend) == 'mysql' {
- include ::ceilometer::db::mysql
+ if downcase($ceilometer_backend) == 'mysql' {
+ if $enable_ceilometer {
+ include ::ceilometer::db::mysql
+ }
+ if $enable_aodh {
+ include ::aodh::db::mysql
+ }
+ }
+
+ if $enable_gnocchi and downcase($gnocchi_indexer_backend) == 'mysql' {
+ include ::gnocchi::db::mysql
}
if $enable_cinder {
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']