Merge "Allow integration of externally deployed RadosGW"

This commit is contained in:
Zuul 2018-06-11 18:56:42 +00:00 committed by Gerrit Code Review
commit 96ec14b72a
4 changed files with 11 additions and 4 deletions

View File

@ -37,3 +37,10 @@ rbd_client_directories: false
ceph_mons: "{{ groups[mon_group_name] ceph_mons: "{{ groups[mon_group_name]
| map('extract', hostvars, 'ansible_host') | map('extract', hostvars, 'ansible_host')
| list }}" | list }}"
# Provide a variable which can be overidden by a deployer to specify a list of
# dicts describing RadosGW provisioned by means other than OpenStack-Ansible.
# The ip_addr should be accessible by the haproxy internal interface.
# - name: ceph-rgw-name
# ip_addr: x.x.x.x
ceph_rgws: []

View File

@ -355,7 +355,7 @@ haproxy_default_services:
haproxy_service_enabled: "{{ neutron_plugin_type == 'ml2.opendaylight' }}" haproxy_service_enabled: "{{ neutron_plugin_type == 'ml2.opendaylight' }}"
- service: - service:
haproxy_service_name: ceph-rgw haproxy_service_name: ceph-rgw
haproxy_backend_nodes: "{{ groups['ceph-rgw'] | default([]) }}" haproxy_backend_nodes: "{{ groups['ceph-rgw'] | default(ceph_rgws) }}"
haproxy_ssl: "{{ haproxy_ssl }}" haproxy_ssl: "{{ haproxy_ssl }}"
haproxy_balance_alg: source haproxy_balance_alg: source
haproxy_port: "{{ radosgw_service_port | default(7980) }}" haproxy_port: "{{ radosgw_service_port | default(7980) }}"
@ -364,4 +364,4 @@ haproxy_default_services:
- httpchk HEAD / - httpchk HEAD /
haproxy_backend_httpcheck_options: haproxy_backend_httpcheck_options:
- expect status 405 - expect status 405
haproxy_service_enabled: "{{ groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0 }}" haproxy_service_enabled: "{{ (groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0) or (ceph_rgws | length > 0) }}"

View File

@ -52,7 +52,7 @@ tempest_service_available_heat: "{{ groups['heat_all'] is defined and groups['he
tempest_service_available_horizon: "{{ groups['horizon_all'] is defined and groups['horizon_all'] | length > 0 }}" tempest_service_available_horizon: "{{ groups['horizon_all'] is defined and groups['horizon_all'] | length > 0 }}"
tempest_service_available_neutron: "{{ groups['neutron_all'] is defined and groups['neutron_all'] | length > 0 }}" tempest_service_available_neutron: "{{ groups['neutron_all'] is defined and groups['neutron_all'] | length > 0 }}"
tempest_service_available_nova: "{{ groups['nova_all'] is defined and groups['nova_all'] | length > 0 }}" tempest_service_available_nova: "{{ groups['nova_all'] is defined and groups['nova_all'] | length > 0 }}"
tempest_service_available_swift: "{{ (groups['swift_all'] is defined and groups['swift_all'] | length > 0) or (groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0) }}" tempest_service_available_swift: "{{ (groups['swift_all'] is defined and groups['swift_all'] | length > 0) or (groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0) or (ceph_rgws | length > 0) }}"
tempest_service_available_congress: "{{ groups['congress_all'] is defined and groups['congress_all'] | length > 0 }}" tempest_service_available_congress: "{{ groups['congress_all'] is defined and groups['congress_all'] | length > 0 }}"
tempest_log_dir: /var/log/utility tempest_log_dir: /var/log/utility

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
- include: ceph-rgw-keystone-setup.yml - include: ceph-rgw-keystone-setup.yml
when: groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0 when: (groups['ceph-rgw'] is defined and groups['ceph-rgw'] | length > 0) or (ceph_rgws | length > 0)
- name: Install ceph radosgw - name: Install ceph radosgw
hosts: ceph-rgw hosts: ceph-rgw