gnocchi: move statsd and metricd at step5
authorEmilien Macchi <emilien@redhat.com>
Wed, 7 Sep 2016 17:38:49 +0000 (13:38 -0400)
committerEmilien Macchi <emilien@redhat.com>
Wed, 7 Sep 2016 19:01:33 +0000 (15:01 -0400)
Gnocchi statsd and metricd require Keystone resources to be in place
when using Swift backend, because those services will try to access to
Swift containers.

To do so, we want to move the service start at step 5 instead of 4 and
also require Keystone resource to be managed before starting the
services.

Change-Id: Ie5bc1481a8700c7cd080a76d0978146a84825767
Closes-Bug: #1621164

manifests/profile/base/gnocchi/metricd.pp
manifests/profile/base/gnocchi/statsd.pp

index 4d7eb89..e69bbd5 100644 (file)
@@ -28,7 +28,9 @@ class tripleo::profile::base::gnocchi::metricd (
 ) {
   include ::tripleo::profile::base::gnocchi
 
-  if $step >= 4 {
+  if $step >= 5 {
     include ::gnocchi::metricd
+    Keystone_endpoint<||> -> Service['gnocchi-metricd']
+    Keystone_user_role<||> -> Service['gnocchi-metricd']
   }
 }
index 775b043..1fe4067 100644 (file)
@@ -28,7 +28,9 @@ class tripleo::profile::base::gnocchi::statsd (
 ) {
   include ::tripleo::profile::base::gnocchi
 
-  if $step >= 4 {
+  if $step >= 5 {
     include ::gnocchi::statsd
+    Keystone_endpoint<||> -> Service['gnocchi-statsd']
+    Keystone_user_role<||> -> Service['gnocchi-statsd']
   }
 }