|
| 1 | +--- |
| 2 | +project_name: "ceph-rgw" |
| 3 | + |
| 4 | +ceph_rgw_services: |
| 5 | + # NOTE(mgoddard): There is no container deployment, this is used for load |
| 6 | + # balancer configuration. |
| 7 | + ceph-rgw: |
| 8 | + group: "all" |
| 9 | + enabled: "{{ enable_ceph_rgw | bool }}" |
| 10 | + haproxy: |
| 11 | + radosgw: |
| 12 | + enabled: "{{ enable_ceph_rgw_loadbalancer | bool }}" |
| 13 | + mode: "http" |
| 14 | + external: false |
| 15 | + port: "{{ ceph_rgw_port }}" |
| 16 | + custom_member_list: "{{ ceph_rgw_haproxy_members }}" |
| 17 | + radosgw_external: |
| 18 | + enabled: "{{ enable_ceph_rgw_loadbalancer | bool }}" |
| 19 | + mode: "http" |
| 20 | + external: true |
| 21 | + port: "{{ ceph_rgw_port }}" |
| 22 | + custom_member_list: "{{ ceph_rgw_haproxy_members }}" |
| 23 | + |
| 24 | +#################### |
| 25 | +# Load balancer |
| 26 | +#################### |
| 27 | + |
| 28 | +# List of Ceph RadosGW hostname:port to use as HAProxy backends. |
| 29 | +ceph_rgw_hosts: [] |
| 30 | +ceph_rgw_haproxy_members: "{{ ceph_rgw_hosts | map('regex_replace', '(.*)', 'server \\1 \\1 ' + ceph_rgw_haproxy_healthcheck) | list }}" |
| 31 | +ceph_rgw_haproxy_healthcheck: "check inter 2000 rise 2 fall 5" |
| 32 | + |
| 33 | + |
| 34 | +#################### |
| 35 | +# OpenStack |
| 36 | +#################### |
| 37 | + |
| 38 | +# Whether to register Ceph RadosGW swift-compatible endpoints in Keystone. |
| 39 | +enable_ceph_rgw_keystone: "{{ enable_ceph_rgw | bool }}" |
| 40 | + |
| 41 | +# Enable/disable ceph-rgw compatibility with OpenStack Swift. |
| 42 | +ceph_rgw_compatibility: false |
| 43 | + |
| 44 | +# Enable/disable including the account (project) in the endpoint URL. This |
| 45 | +# allows for cross-project and public object access. |
| 46 | +ceph_rgw_account_in_url: false |
| 47 | + |
| 48 | +ceph_rgw_endpoint_path: "{{ '/' if ceph_rgw_compatibility | bool else '/swift/' }}v1{% if ceph_rgw_account_in_url | bool %}/AUTH_%(project_id)s{% endif %}" |
| 49 | + |
| 50 | +ceph_rgw_admin_endpoint: "{{ admin_protocol }}://{{ ceph_rgw_internal_fqdn | put_address_in_context('url') }}:{{ ceph_rgw_port }}{{ ceph_rgw_endpoint_path }}" |
| 51 | +ceph_rgw_internal_endpoint: "{{ internal_protocol }}://{{ ceph_rgw_internal_fqdn | put_address_in_context('url') }}:{{ ceph_rgw_port }}{{ ceph_rgw_endpoint_path }}" |
| 52 | +ceph_rgw_public_endpoint: "{{ public_protocol }}://{{ ceph_rgw_external_fqdn | put_address_in_context('url') }}:{{ ceph_rgw_port }}{{ ceph_rgw_endpoint_path }}" |
| 53 | + |
| 54 | +ceph_rgw_keystone_user: "ceph_rgw" |
| 55 | + |
| 56 | +openstack_ceph_rgw_auth: "{{ openstack_auth }}" |
| 57 | + |
| 58 | + |
| 59 | +#################### |
| 60 | +# Keystone |
| 61 | +#################### |
| 62 | +ceph_rgw_ks_services: |
| 63 | + - name: "swift" |
| 64 | + type: "object-store" |
| 65 | + description: "Openstack Object Storage" |
| 66 | + endpoints: |
| 67 | + - {'interface': 'admin', 'url': '{{ ceph_rgw_admin_endpoint }}'} |
| 68 | + - {'interface': 'internal', 'url': '{{ ceph_rgw_internal_endpoint }}'} |
| 69 | + - {'interface': 'public', 'url': '{{ ceph_rgw_public_endpoint }}'} |
| 70 | + |
| 71 | +ceph_rgw_ks_users: |
| 72 | + - project: "service" |
| 73 | + user: "{{ ceph_rgw_keystone_user }}" |
| 74 | + password: "{{ ceph_rgw_keystone_password }}" |
| 75 | + role: "admin" |
| 76 | + |
| 77 | +ceph_rgw_ks_roles: |
| 78 | + - "ResellerAdmin" |
0 commit comments