Fix zk cluster members listing
First we convert from a hash to an array to list the zk cluster members. Do this because the older puppet-zookeeper module we use doesn't support hashes like newer releases do. Second we convert from hostnames to IP addresses because the hostnames were looked up in /etc/hosts to resolve to 127.0.1.1 which caused zk to listen on 127.0.1.1 and the cluster members could not talk to each other. Change-Id: Id590eb535301b27ff0dcb27cf65ba85d61ed19a5
This commit is contained in:
parent
709e7c09cd
commit
2c077aa2d3
@ -677,11 +677,15 @@ 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',
|
||||
}
|
||||
# We use IP addresses here so that zk listens on the public facing addresses
|
||||
# allowing cluster members to talk to each other. Without this they listen
|
||||
# on 127.0.1.1 because that is what we have in /etc/hosts for
|
||||
# zk0X.openstack.org.
|
||||
$zk_cluster_members = [
|
||||
'23.253.236.126', # zk01
|
||||
'172.99.117.32', # zk02
|
||||
'23.253.90.246', # zk03
|
||||
]
|
||||
class { 'openstack_project::server': }
|
||||
|
||||
class { '::zookeeper':
|
||||
|
Loading…
x
Reference in New Issue
Block a user