Remove cluster_enabled setting for etcd
Setting cluster_enabled to false causes ETCD_INITIAL_ADVERTISE_PEER_URLS to be unset, which will cause deployment failure when etcd is deployed in a single node mode. Closes-Bug: #1673188 Change-Id: Iadff36bf7beb247d0408913c89f83fa5c8ac6874 Signed-off-by: Feng Pan <fpan@redhat.com>
This commit is contained in:
parent
ed5b0274d6
commit
6284719dac
|
@ -47,19 +47,12 @@ class tripleo::profile::base::etcd (
|
|||
$step = hiera('step'),
|
||||
) {
|
||||
if $step >= 1 {
|
||||
if count($nodes) > 1 {
|
||||
$cluster_enabled = true
|
||||
} else {
|
||||
$cluster_enabled = false
|
||||
}
|
||||
|
||||
class {'::etcd':
|
||||
listen_client_urls => "http://${bind_ip}:${client_port}",
|
||||
advertise_client_urls => "http://${bind_ip}:${client_port}",
|
||||
listen_peer_urls => "http://${bind_ip}:${peer_port}",
|
||||
initial_advertise_peer_urls => "http://${bind_ip}:${peer_port}",
|
||||
initial_cluster => regsubst($nodes, '.+', "\\0=http://\\0:${peer_port}"),
|
||||
cluster_enabled => $cluster_enabled,
|
||||
proxy => 'off',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue