aboutsummaryrefslogtreecommitdiffstats
path: root/manifests/profile/pacemaker
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-07-25 13:51:01 +0000
committerGerrit Code Review <review@openstack.org>2016-07-25 13:51:01 +0000
commit0c7a006b1c5e2cf267c0d23c31e65e13489f13b7 (patch)
tree85369ed59e432f6dd7280d8bced1691d968db478 /manifests/profile/pacemaker
parente1d2245f7c7a14d22bb022511fab836e224d61b1 (diff)
parenta2728596c036029d91bcd76c1f36272b138c5b87 (diff)
Merge "Add base constraint so gnocchi metricd is tied to core-clone"
Diffstat (limited to 'manifests/profile/pacemaker')
-rw-r--r--manifests/profile/pacemaker/gnocchi.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/profile/pacemaker/gnocchi.pp b/manifests/profile/pacemaker/gnocchi.pp
index edc1728..c8630ce 100644
--- a/manifests/profile/pacemaker/gnocchi.pp
+++ b/manifests/profile/pacemaker/gnocchi.pp
@@ -70,6 +70,15 @@ class tripleo::profile::pacemaker::gnocchi (
if $step >= 5 and $pacemaker_master {
+ pacemaker::constraint::base { 'keystone-then-gnocchi-metricd-constraint':
+ constraint_type => 'order',
+ first_resource => 'openstack-core-clone',
+ second_resource => "${::gnocchi::params::metricd_service_name}-clone",
+ first_action => 'start',
+ second_action => 'start',
+ require => [Pacemaker::Resource::Service[$::gnocchi::params::metricd_service_name],
+ Pacemaker::Resource::Ocf['openstack-core']],
+ }
pacemaker::constraint::base { 'gnocchi-metricd-then-gnocchi-statsd-constraint':
constraint_type => 'order',
first_resource => "${::gnocchi::params::metricd_service_name}-clone",