Files
openstack-ansible-haproxy_s…/tests/test-vars.yml
Dmitriy Rabotyagov 711caf62e4 Add molecule testing to the role
This adopts old functional tests to be launched with molecule.
Patch does not intend to extend or refactor set of existing tests,
but to provide a baseline to iterate on and ability to improve coverage
with important usecases.

Change-Id: Ia93b5adb313d5b930086ce90dafe6a63da092aba
Signed-off-by: Dmitriy Rabotyagov <dmitriy.rabotyagov@cleura.com>
2025-08-08 17:24:09 +00:00

43 lines
1.3 KiB
YAML

---
external_lb_vip_address: 127.0.0.1
internal_lb_vip_address: 127.0.0.1
haproxy_pki_setup_host: "{{ inventory_hostname }}"
haproxy_service_configs:
- service:
haproxy_service_name: test_group
haproxy_backend_nodes: "{{ groups['haproxy_all'] | default([]) }}"
haproxy_port: 8180
haproxy_backend_port: 22
haproxy_ssl: False
haproxy_balance_type: tcp
haproxy_backend_options:
- tcp-check
- service:
haproxy_service_name: test_list
haproxy_backend_nodes:
- name: "localhost"
ip_addr: "127.0.0.1"
haproxy_port: 8181
haproxy_backend_port: 22
haproxy_ssl: False
haproxy_balance_type: tcp
haproxy_backend_options:
- tcp-check
- service:
haproxy_service_name: test_backend_ssl
haproxy_backend_nodes: "{{ groups['haproxy_all'] | default([]) }}"
haproxy_port: 8180
haproxy_backend_port: 443
haproxy_backend_ssl: True
haproxy_backend_ca: False
haproxy_ssl: False
haproxy_balance_type: http
- service:
haproxy_service_name: test_absent_service
haproxy_backend_nodes:
- name: "localhost"
ip_addr: "127.0.0.1"
haproxy_port: 65535
haproxy_balance_type: tcp
state: present