aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ansible/group_vars/all.yml8
-rw-r--r--ansible/roles/haproxy/templates/haproxy.cfg.j28
-rw-r--r--etc/kolla/passwords.yml6
3 files changed, 22 insertions, 0 deletions
diff --git a/ansible/group_vars/all.yml b/ansible/group_vars/all.yml
index 9ced61ee9..5e1ba517d 100644
--- a/ansible/group_vars/all.yml
+++ b/ansible/group_vars/all.yml
@@ -78,6 +78,8 @@ rabbitmq_management_port: "15672"
rabbitmq_cluster_port: "25672"
rabbitmq_epmd_port: "4369"
+haproxy_stats_port: "1984"
+
keystone_public_port: "5000"
keystone_admin_port: "35357"
@@ -153,6 +155,12 @@ enable_murano: "no"
rabbitmq_user: "openstack"
+####################
+# HAProxy options
+####################
+haproxy_user: "openstack"
+
+
#################################
# Cinder - Block Storage options
#################################
diff --git a/ansible/roles/haproxy/templates/haproxy.cfg.j2 b/ansible/roles/haproxy/templates/haproxy.cfg.j2
index 745d9b0f5..71a7f45aa 100644
--- a/ansible/roles/haproxy/templates/haproxy.cfg.j2
+++ b/ansible/roles/haproxy/templates/haproxy.cfg.j2
@@ -14,6 +14,14 @@ defaults
timeout server 1m
timeout check 10s
+listen stats :{{ haproxy_stats_port }}
+ mode http
+ stats enable
+ stats uri /
+ stats refresh 15s
+ stats realm Haproxy\ Stats
+ stats auth {{ haproxy_user }}:{{ haproxy_password }}
+
listen mariadb
mode tcp
option tcpka
diff --git a/etc/kolla/passwords.yml b/etc/kolla/passwords.yml
index 4785c6b56..3d7ec924f 100644
--- a/etc/kolla/passwords.yml
+++ b/etc/kolla/passwords.yml
@@ -51,3 +51,9 @@ murano_keystone_password: "password"
####################
rabbitmq_password: "password"
rabbitmq_cluster_cookie: "password"
+
+
+####################
+# HAProxy options
+####################
+haproxy_password: "password"