Support custom HAProxy config

Note that in the Stein release of Kolla-Ansible haproxy.cfg was refactored and
this override will no longer work as expected.

Change-Id: Iff5b9f2a33ad2320f62fae7328c097069cb4f416
This commit is contained in:
Doug Szumski 2019-02-01 13:10:22 +00:00
parent 9156fa0e2d
commit d935f55f7c
3 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,12 @@ grafana_local_admin_user_name:
# Free form extra configuration to append to grafana.ini.
kolla_extra_grafana:
###############################################################################
# HAProxy configuration.
# Whether to enable HAProxy.
kolla_enable_haproxy:
###############################################################################
# Heat configuration.

View File

@ -34,6 +34,7 @@ provisioner:
kolla_extra_grafana: |
[extra-grafana.ini]
foo=bar
kolla_enable_haproxy: true
kolla_enable_heat: true
kolla_extra_heat: |
[extra-heat.conf]

View File

@ -54,6 +54,11 @@ kolla_openstack_custom_config:
dest: "{{ kolla_node_custom_config_path }}/grafana"
patterns: "*"
enabled: "{{ kolla_enable_grafana }}"
# HAProxy.
- src: "{{ kolla_extra_config_path }}/haproxy"
dest: "{{ kolla_node_custom_config_path }}/haproxy"
patterns: "*"
enabled: "{{ kolla_enable_haproxy }}"
# Heat.
- src: "{{ kolla_extra_config_path }}/heat"
dest: "{{ kolla_node_custom_config_path }}/heat"