From c8e0df2dc2d78119db3093398360fee9fa5e9ce0 Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Mon, 22 Oct 2018 09:50:55 -0700
Subject: [PATCH] Configure zk\d to act as a cluster

You have to tell the zk servers what servers belong to the cluster to
have them act as a cluster. Currently all our servers are in mode
standalone as they do not know about the other servers.

Fix this by configuring the three servers as servers 1, 2, and 3 in the
zk config.

Change-Id: I985ac7387744498058f99859eb8445f885b8bbcc
---
 manifests/site.pp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/manifests/site.pp b/manifests/site.pp
index 1457e6d648..20a8048d3f 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -677,6 +677,11 @@ node /^static\d*\.openstack\.org$/ {
 
 # Node-OS: xenial
 node /^zk\d+\.openstack\.org$/ {
+  $zk_cluster_members = {
+    1 => 'zk01.openstack.org',
+    2 => 'zk02.openstack.org',
+    3 => 'zk03.openstack.org',
+  }
   class { 'openstack_project::server': }
 
   class { '::zookeeper':