Install rsync package for galera
authorJames Slagle <jslagle@redhat.com>
Tue, 23 May 2017 18:55:59 +0000 (14:55 -0400)
committerJames Slagle <jslagle@redhat.com>
Thu, 1 Jun 2017 18:55:51 +0000 (14:55 -0400)
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

manifests/profile/pacemaker/database/mysql.pp
releasenotes/notes/galera-install-rsync-b2f2504f12cc0cfd.yaml [new file with mode: 0644]

index 031e80c..476a1e5 100644 (file)
@@ -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
diff --git a/releasenotes/notes/galera-install-rsync-b2f2504f12cc0cfd.yaml b/releasenotes/notes/galera-install-rsync-b2f2504f12cc0cfd.yaml
new file mode 100644 (file)
index 0000000..4b2fe0d
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - The mysql pacemaker profile now makes sure that the
+    rsync package is installed since it configures
+    wsrep_sst_method for galera to use rsync. See
+    https://bugs.launchpad.net/tripleo/+bug/1693003