File tree Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Expand file tree Collapse file tree 5 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,13 @@ dependency:
99driver :
1010 name : " podman"
1111platforms :
12+ - name : " haproxy_v3.2"
13+ image : " ${MOLECULE_IMAGE:-ghcr.io/hifis-net/ubuntu-systemd:24.04}"
14+ pre_build_image : true
15+ privileged : true
16+ override_command : false
17+ systemd : true
18+ tty : true
1219 - name : " haproxy_v3.0"
1320 image : " ${MOLECULE_IMAGE:-ghcr.io/hifis-net/ubuntu-systemd:24.04}"
1421 pre_build_image : true
@@ -45,6 +52,10 @@ provisioner:
4552 vars :
4653 haproxy_ssl_dhparam_size : 512
4754 host_vars :
55+ haproxy_v3.2 :
56+ haproxy_create_self_signed_cert : true
57+ haproxy_ppa_version : " ppa:vbernat/haproxy-3.2"
58+ haproxy_version : " 3.2.*"
4859 haproxy_v3.0 :
4960 haproxy_create_self_signed_cert : true
5061 haproxy_ppa_version : " ppa:vbernat/haproxy-3.0"
Original file line number Diff line number Diff line change 1111 ansible.builtin.meta : " end_host"
1212 when : >-
1313 ansible_facts.distribution_release | lower == 'bookworm' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.4', '==') or
14+ ansible_facts.distribution_release | lower == 'bullseye' and haproxy_version | regex_search('\\d+\\.\\d+') is version('3.2', '>=') or
1415 ansible_facts.distribution_release | lower == 'buster' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.8', '>=')
1516
1617 - name : " Stop play for unsupported HAProxy / Ubuntu combinations"
1718 ansible.builtin.meta : " end_host"
18- when : " ansible_facts.distribution_release | lower == 'noble' and haproxy_version | regex_search('\\ d+\\ .\\ d+') is version('2.9', '<')"
19+ when : >-
20+ ansible_facts.distribution_release | lower == 'noble' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.9', '<') or
21+ ansible_facts.distribution_release | lower != 'noble' and haproxy_version | regex_search('\\d+\\.\\d+') is version('3.2', '>=')
1922
2023 - name : " Populate service facts."
2124 ansible.builtin.service_facts :
Original file line number Diff line number Diff line change @@ -121,15 +121,15 @@ haproxy_executable_path: '/usr/sbin/haproxy'
121121Variable to pin the PPA version to a certain value:
122122
123123` ` ` yaml
124- haproxy_ppa_version : ' ppa:vbernat/haproxy-3.0 '
124+ haproxy_ppa_version : ' ppa:vbernat/haproxy-3.2 '
125125` ` `
126126
127127#### HAProxy version
128128
129129Variable to pin the HAProxy version to a certain value:
130130
131131` ` ` yaml
132- haproxy_version : ' 3.0 .*'
132+ haproxy_version : ' 3.2 .*'
133133` ` `
134134
135135#### HAProxy user
Original file line number Diff line number Diff line change 77# Path to the executable of HAProxy
88haproxy_executable_path : " /usr/sbin/haproxy"
99# HAProxy PPA version
10- haproxy_ppa_version : " ppa:vbernat/haproxy-3.0 "
10+ haproxy_ppa_version : " ppa:vbernat/haproxy-3.2 "
1111# HAProxy version
12- haproxy_version : " 3.0 .*"
12+ haproxy_version : " 3.2 .*"
1313# HAProxy user
1414haproxy_user : " haproxy"
1515# HAProxy group
Original file line number Diff line number Diff line change 1818 ansible.builtin.meta : " end_host"
1919 when : >-
2020 ansible_facts.distribution_release | lower == 'bookworm' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.4', '==') or
21+ ansible_facts.distribution_release | lower == 'bullseye' and haproxy_version | regex_search('\\d+\\.\\d+') is version('3.2', '>=') or
2122 ansible_facts.distribution_release | lower == 'buster' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.8', '>=')
2223
2324 - name : " Stop role for unsupported HAProxy / Ubuntu combinations"
2425 ansible.builtin.meta : " end_host"
25- when : " ansible_facts.distribution_release | lower == 'noble' and haproxy_version | regex_search('\\ d+\\ .\\ d+') is version('2.9', '<')"
26+ when : >-
27+ ansible_facts.distribution_release | lower == 'noble' and haproxy_version | regex_search('\\d+\\.\\d+') is version('2.9', '<') or
28+ ansible_facts.distribution_release | lower != 'noble' and haproxy_version | regex_search('\\d+\\.\\d+') is version('3.2', '>=')
2629
2730 - name : " Enable ip_forward."
2831 become : true
You can’t perform that action at this time.
0 commit comments