diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-01 16:18:12 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-01 16:18:12 +0000 |
commit | 60ce868eee7a1a3369da8418c0b4cfd8ec6e3227 (patch) | |
tree | fefcb5c856f308b1eb3c473716875bb14b1c05d0 /manifests/profile/pacemaker/database | |
parent | dfd3617f5fa975e74fac4dfc1d17632d2825dd8b (diff) | |
parent | da4bcee4d65cf2e0d48eab03a4a9582e3806238e (diff) |
Merge "Write restart flags to restart services only when necessary"
Diffstat (limited to 'manifests/profile/pacemaker/database')
-rw-r--r-- | manifests/profile/pacemaker/database/mysql.pp | 6 | ||||
-rw-r--r-- | manifests/profile/pacemaker/database/redis.pp | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/manifests/profile/pacemaker/database/mysql.pp b/manifests/profile/pacemaker/database/mysql.pp index 2715260..4dc3770 100644 --- a/manifests/profile/pacemaker/database/mysql.pp +++ b/manifests/profile/pacemaker/database/mysql.pp @@ -80,6 +80,12 @@ class tripleo::profile::pacemaker::database::mysql ( mysql_server_options => $mysqld_options, } + if $step >= 1 and $pacemaker_master and hiera('stack_action') == 'UPDATE' { + tripleo::pacemaker::resource_restart_flag { 'galera-master': + subscribe => File['mysql-config-file'], + } + } + if $step >= 2 { if $pacemaker_master { pacemaker::resource::ocf { 'galera' : 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 { |