haproxy: Parameterize cluster hostnames
Replace ctl{01,02,03} with reclass params, i.e.:
s/ctl01/${_param:cluster_node01_hostname}/g
Affects haproxy configuration in:
- haproxy.proxy.listen.openstack
- neutron.control
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
diff --git a/neutron/control/openvswitch/cluster.yml b/neutron/control/openvswitch/cluster.yml
index 032ffbf..80489c8 100644
--- a/neutron/control/openvswitch/cluster.yml
+++ b/neutron/control/openvswitch/cluster.yml
@@ -47,15 +47,15 @@
- address: ${_param:cluster_vip_address}
port: 9696
servers:
- - name: ctl01
+ - name: ${_param:cluster_node01_hostname}
host: ${_param:cluster_node01_address}
port: 9696
params: check inter 10s fastinter 2s downinter 3s rise 3 fall 3
- - name: ctl02
+ - name: ${_param:cluster_node02_hostname}
host: ${_param:cluster_node02_address}
port: 9696
params: check inter 10s fastinter 2s downinter 3s rise 3 fall 3
- - name: ctl03
+ - name: ${_param:cluster_node03_hostname}
host: ${_param:cluster_node03_address}
port: 9696
params: check inter 10s fastinter 2s downinter 3s rise 3 fall 3