diff --git a/inventory/group_vars/haproxy/haproxy.yml b/inventory/group_vars/haproxy/haproxy.yml index 6510a7e850..2b3ec98184 100644 --- a/inventory/group_vars/haproxy/haproxy.yml +++ b/inventory/group_vars/haproxy/haproxy.yml @@ -363,7 +363,7 @@ haproxy_default_services: haproxy_service_enabled: "{{ neutron_plugin_type == 'ml2.opendaylight' }}" - service: haproxy_service_name: ceph-rgw - haproxy_backend_nodes: "{{ groups['ceph-rgw'] | default(ceph_rgws) }}" + haproxy_backend_nodes: "{{ (groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0) | ternary(groups['ceph-rgw'], ceph_rgws) }}" haproxy_ssl: "{{ haproxy_ssl }}" haproxy_balance_alg: source haproxy_port: "{{ radosgw_service_port | default(7980) }}"