Set myid for zookeeper to numeric
Use regex to find out the number of the hostname so we can use that for myid. The value must be numeric. Change-Id: Ib9d700c06ef858242f1e3c850dbfe3f2d3cd7c8a Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
66d0c6bab6
commit
33f3bd99d2
@ -841,7 +841,8 @@ node /^zk\d+\.openstack\.org$/ {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class { '::zookeeper':
|
class { '::zookeeper':
|
||||||
id => $::fqdn,
|
# ID needs to be numeric, so we use regex to extra numbers from fqdn.
|
||||||
|
id => regsubst($::fqdn, '^zk(\d+)\.openstack\.org$', '\1'),
|
||||||
# The frequency in hours to look for and purge old snapshots,
|
# The frequency in hours to look for and purge old snapshots,
|
||||||
# defaults to 0 (disabled). The number of retained snapshots can
|
# defaults to 0 (disabled). The number of retained snapshots can
|
||||||
# be separately controlled through snap_retain_count and
|
# be separately controlled through snap_retain_count and
|
||||||
|
Loading…
x
Reference in New Issue
Block a user