summaryrefslogtreecommitdiffstats
path: root/manifests/profile/pacemaker/database/redis.pp
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-09-01 16:18:12 +0000
committerGerrit Code Review <review@openstack.org>2016-09-01 16:18:12 +0000
commit60ce868eee7a1a3369da8418c0b4cfd8ec6e3227 (patch)
treefefcb5c856f308b1eb3c473716875bb14b1c05d0 /manifests/profile/pacemaker/database/redis.pp
parentdfd3617f5fa975e74fac4dfc1d17632d2825dd8b (diff)
parentda4bcee4d65cf2e0d48eab03a4a9582e3806238e (diff)
Merge "Write restart flags to restart services only when necessary"
Diffstat (limited to 'manifests/profile/pacemaker/database/redis.pp')
-rw-r--r--manifests/profile/pacemaker/database/redis.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/profile/pacemaker/database/redis.pp b/manifests/profile/pacemaker/database/redis.pp
index 8a37ce9..e081516 100644
--- a/manifests/profile/pacemaker/database/redis.pp
+++ b/manifests/profile/pacemaker/database/redis.pp
@@ -44,6 +44,14 @@ class tripleo::profile::pacemaker::database::redis (
if $step >= 1 {
include ::redis
+
+ if $pacemaker_master and hiera('stack_action') == 'UPDATE' {
+ tripleo::pacemaker::resource_restart_flag { 'redis-master':
+ # ouch, but trying to stay close how notification works in
+ # puppet-redis when pacemaker is not being used
+ subscribe => Exec["cp -p ${::redis::config_file_orig} ${::redis::config_file}"]
+ }
+ }
}
if $step >= 2 and $pacemaker_master {