aboutsummaryrefslogtreecommitdiffstats
path: root/manifests
diff options
context:
space:
mode:
authorJames Slagle <jslagle@redhat.com>2017-05-23 14:55:59 -0400
committerJames Slagle <jslagle@redhat.com>2017-06-01 14:55:51 -0400
commitbb826c000ff72f21e88744e4253b3bbf9a86077b (patch)
tree2c730ad189afe2318453938d2f4d98b578be5b58 /manifests
parentf77017c8f62c6aa5e59a3036e7abc953657b7894 (diff)
Install rsync package for galera
Since galera is configured to use rsync, we ought to make sure the package is installed. Particularly when using deployed-server, the package is not always installed by default depending on what was used to install the servers. Change-Id: I92ee78f2dd2c0f7fd4d393b104166407d7c654e2 Closes-Bug: #1693003
Diffstat (limited to 'manifests')
-rw-r--r--manifests/profile/pacemaker/database/mysql.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/profile/pacemaker/database/mysql.pp b/manifests/profile/pacemaker/database/mysql.pp
index 031e80c..476a1e5 100644
--- a/manifests/profile/pacemaker/database/mysql.pp
+++ b/manifests/profile/pacemaker/database/mysql.pp
@@ -100,6 +100,15 @@ class tripleo::profile::pacemaker::database::mysql (
}
}
+ # since we are configuring rsync for wsrep_sst_method, we ought to make sure
+ # it's installed. We only includ this at step 2 since puppet-rsync may be
+ # included later and also adds the package resource.
+ if $step == 2 {
+ if ! defined(Package['rsync']) {
+ package {'rsync':}
+ }
+ }
+
# remove_default_accounts parameter will execute some mysql commands
# to remove the default accounts created by MySQL package.
# We need MySQL running to run the commands successfully, so better to