ceph-ansible/roles/ceph-rgw-loadbalancer
Benoît Knecht 9a286e273a ceph-rgw-loadbalancer: Fix rgw_ports fact
The `set_fact rgw_ports` task was failing due to a templating error, because
`hostvars[item].rgw_instances` is a list, but it was treated as if it was a
dictionary.

Another issue was the fact that the `unique` filter only applied to the list
being appended to `rgw_ports` instead of the entire list, which means it was
possible to have duplicate items.

Lastly, `rgw_ports` would have been a list of integers, but the `seport` module
expects a list of strings.

This commit fixes all of the issues above, allowing the `ceph-rgw-loadbalancer`
role to work on systems with SELinux enabled.

Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit c078513475)
2021-04-15 13:21:07 +02:00
..
defaults Add option for HAproxy to act a SSL frontend termination point for loadbalanced RGW instances. 2020-02-03 09:32:43 -05:00
handlers Add role definitions of ceph-rgw-loadbalancer 2019-06-06 19:44:30 +00:00
meta lint: fix error [303,602,701,702] 2019-10-21 15:55:54 -04:00
tasks ceph-rgw-loadbalancer: Fix rgw_ports fact 2021-04-15 13:21:07 +02:00
templates rgw-loadbalancer: Update haproxy.cfg.j2 2021-04-06 15:09:00 +02:00