aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/base/gnocchi/api.pp
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-04-21 13:10:25 +0000
committerGerrit Code Review <review@openstack.org>2017-04-21 13:10:25 +0000
commit41b6f397f52857faf0aa505b59417d702795e311 (patch)
tree2e3f1944d04d851f16ef84a71dda115228582e34 /manifests/profile/base/gnocchi/api.pp
parent3c973b289a4ea012c543a41cf86bd8173406f435 (diff)
parent4450afd495794a8ac0fc5b8c51d696416e5deb9d (diff)
Merge "Cover gnocchi api step 4 and 5"
Diffstat (limited to 'manifests/profile/base/gnocchi/api.pp')
-rw-r--r--manifests/profile/base/gnocchi/api.pp12
1 files changed, 11 insertions, 1 deletions
diff --git a/manifests/profile/base/gnocchi/api.pp b/manifests/profile/base/gnocchi/api.pp
index 4a47184..a4e9a30 100644
--- a/manifests/profile/base/gnocchi/api.pp
+++ b/manifests/profile/base/gnocchi/api.pp
@@ -47,6 +47,14 @@
# This is set by t-h-t.
# Defaults to hiera('gnocchi_api_network', undef)
#
+# [*gnocchi_redis_password*]
+# (Required) Password for the gnocchi redis user for the coordination url
+# Defaults to hiera('gnocchi_redis_password')
+#
+# [*redis_vip*]
+# (Required) Redis ip address for the coordination url
+# Defaults to hiera('redis_vip')
+#
# [*step*]
# (Optional) The current step in deployment. See tripleo-heat-templates
# for more details.
@@ -58,6 +66,8 @@ class tripleo::profile::base::gnocchi::api (
$enable_internal_tls = hiera('enable_internal_tls', false),
$gnocchi_backend = downcase(hiera('gnocchi_backend', 'swift')),
$gnocchi_network = hiera('gnocchi_api_network', undef),
+ $gnocchi_redis_password = hiera('gnocchi_redis_password'),
+ $redis_vip = hiera('redis_vip'),
$step = hiera('step'),
) {
if $::hostname == downcase($bootstrap_node) {
@@ -94,7 +104,7 @@ class tripleo::profile::base::gnocchi::api (
if $step >= 4 {
class { '::gnocchi::storage':
- coordination_url => join(['redis://:', hiera('gnocchi_redis_password'), '@', normalize_ip_for_uri(hiera('redis_vip')), ':6379/']),
+ coordination_url => join(['redis://:', $gnocchi_redis_password, '@', normalize_ip_for_uri($redis_vip), ':6379/']),
}
case $gnocchi_backend {
'swift': { include ::gnocchi::storage::swift }