|
| 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 hosts to use as HAProxy backends. Each item should contain |
| 29 | +# 'host' and 'port'` keys. The 'ip' and 'port' keys are optional. If 'ip' is |
| 30 | +# not specified, the 'host' values should be resolvable from the host running |
| 31 | +# HAProxy. If the ``port`` is not specified, the default HTTP (80) or HTTPS |
| 32 | +# (443) port will be used. |
| 33 | +ceph_rgw_hosts: [] |
| 34 | +ceph_rgw_haproxy_members: >- |
| 35 | + {%- set members = [] -%} |
| 36 | + {%- for host in ceph_rgw_hosts -%} |
| 37 | + {%- set port = (":" ~ host.port) if host.port is defined else "" -%} |
| 38 | + {%- set member = "server " ~ host.host ~ " " ~ host.ip | default(host.host) ~ port ~ " " ~ ceph_rgw_haproxy_healthcheck -%} |
| 39 | + {%- set _ = members.append(member) -%} |
| 40 | + {%- endfor -%} |
| 41 | + {{ members }} |
| 42 | +ceph_rgw_haproxy_healthcheck: "check inter 2000 rise 2 fall 5" |
| 43 | + |
| 44 | + |
| 45 | +#################### |
| 46 | +# OpenStack |
| 47 | +#################### |
| 48 | + |
| 49 | +# Whether to register Ceph RadosGW swift-compatible endpoints in Keystone. |
| 50 | +enable_ceph_rgw_keystone: "{{ enable_ceph_rgw | bool }}" |
| 51 | + |
| 52 | +# Enable/disable ceph-rgw compatibility with OpenStack Swift. |
| 53 | +# This should match the configuration used by Ceph RadosGW. |
| 54 | +ceph_rgw_swift_compatibility: false |
| 55 | + |
| 56 | +# Enable/disable including the account (project) in the endpoint URL. This |
| 57 | +# allows for cross-project and public object access. |
| 58 | +# This should match the 'rgw_swift_account_in_url' config option used by Ceph |
| 59 | +# RadosGW. |
| 60 | +ceph_rgw_swift_account_in_url: false |
| 61 | + |
| 62 | +ceph_rgw_endpoint_path: "{{ '/' if ceph_rgw_swift_compatibility | bool else '/swift/' }}v1{% if ceph_rgw_swift_account_in_url | bool %}/AUTH_%(project_id)s{% endif %}" |
| 63 | + |
| 64 | +ceph_rgw_admin_endpoint: "{{ admin_protocol }}://{{ ceph_rgw_internal_fqdn | put_address_in_context('url') }}:{{ ceph_rgw_port }}{{ ceph_rgw_endpoint_path }}" |
| 65 | +ceph_rgw_internal_endpoint: "{{ internal_protocol }}://{{ ceph_rgw_internal_fqdn | put_address_in_context('url') }}:{{ ceph_rgw_port }}{{ ceph_rgw_endpoint_path }}" |
| 66 | +ceph_rgw_public_endpoint: "{{ public_protocol }}://{{ ceph_rgw_external_fqdn | put_address_in_context('url') }}:{{ ceph_rgw_port }}{{ ceph_rgw_endpoint_path }}" |
| 67 | + |
| 68 | +ceph_rgw_keystone_user: "ceph_rgw" |
| 69 | + |
| 70 | +openstack_ceph_rgw_auth: "{{ openstack_auth }}" |
| 71 | + |
| 72 | + |
| 73 | +#################### |
| 74 | +# Keystone |
| 75 | +#################### |
| 76 | +ceph_rgw_ks_services: |
| 77 | + - name: "swift" |
| 78 | + type: "object-store" |
| 79 | + description: "Openstack Object Storage" |
| 80 | + endpoints: |
| 81 | + - {'interface': 'admin', 'url': '{{ ceph_rgw_admin_endpoint }}'} |
| 82 | + - {'interface': 'internal', 'url': '{{ ceph_rgw_internal_endpoint }}'} |
| 83 | + - {'interface': 'public', 'url': '{{ ceph_rgw_public_endpoint }}'} |
| 84 | + |
| 85 | +ceph_rgw_ks_users: |
| 86 | + - project: "service" |
| 87 | + user: "{{ ceph_rgw_keystone_user }}" |
| 88 | + password: "{{ ceph_rgw_keystone_password }}" |
| 89 | + role: "admin" |
| 90 | + |
| 91 | +ceph_rgw_ks_roles: |
| 92 | + - "ResellerAdmin" |
0 commit comments