--- project_name: "ceph" ceph_services: ceph-rgw: group: ceph-rgw enabled: "{{ enable_ceph_rgw|bool }}" haproxy: radosgw: enabled: "{{ enable_ceph|bool and enable_ceph_rgw|bool }}" mode: "http" external: false port: "{{ rgw_port }}" radosgw_external: enabled: "{{ enable_ceph|bool and enable_ceph_rgw|bool }}" mode: "http" external: true port: "{{ rgw_port }}" #################### # Docker #################### ceph_install_type: "{{ kolla_install_type }}" ceph_tag: "{{ openstack_release }}" ceph_mds_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceph_install_type }}-ceph-mds" ceph_mds_tag: "{{ ceph_tag }}" ceph_mds_image_full: "{{ ceph_mds_image }}:{{ ceph_mds_tag }}" ceph_mon_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceph_install_type }}-ceph-mon" ceph_mon_tag: "{{ ceph_tag }}" ceph_mon_image_full: "{{ ceph_mon_image }}:{{ ceph_mon_tag }}" ceph_mgr_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceph_install_type }}-ceph-mgr" ceph_mgr_tag: "{{ ceph_tag }}" ceph_mgr_image_full: "{{ ceph_mgr_image }}:{{ ceph_mgr_tag }}" ceph_nfs_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceph_install_type }}-ceph-nfs" ceph_nfs_tag: "{{ ceph_tag }}" ceph_nfs_image_full: "{{ ceph_nfs_image }}:{{ ceph_nfs_tag }}" ceph_osd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceph_install_type }}-ceph-osd" ceph_osd_tag: "{{ ceph_tag }}" ceph_osd_image_full: "{{ ceph_osd_image }}:{{ ceph_osd_tag }}" ceph_rgw_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ ceph_install_type }}-ceph-rgw" ceph_rgw_tag: "{{ ceph_tag }}" ceph_rgw_image_full: "{{ ceph_rgw_image }}:{{ ceph_rgw_tag }}" #################### # Ceph #################### osd_initial_weight: "1" ceph_debug: "{{ openstack_logging_debug }}" # Increase tcmalloc cache size ceph_tcmalloc_tc_bytes: "134217728" ceph_client_admin_keyring_caps: mds: "allow *" mon: "allow *" osd: "allow *" mgr: "allow *" ceph_client_mgr_keyring_caps: mon: 'allow profile mgr' osd: 'allow *' mds: 'allow *' ceph_client_mds_keyring_caps: mds: 'allow *' osd: 'allow *' mon: 'allow rwx' partition_name_osd_bootstrap: "{{ 'KOLLA_CEPH_OSD_BOOTSTRAP_BS' if ceph_osd_store_type == 'bluestore' else 'KOLLA_CEPH_OSD_BOOTSTRAP' }}" partition_name_cache_bootstrap: "{{ 'KOLLA_CEPH_OSD_CACHE_BOOTSTRAP_BS' if ceph_osd_store_type == 'bluestore' else 'KOLLA_CEPH_OSD_CACHE_BOOTSTRAP' }}" partition_name_osd_data: "{{ 'KOLLA_CEPH_DATA_BS' if ceph_osd_store_type == 'bluestore' else 'KOLLA_CEPH_DATA' }}" ceph_mon_hostname: "{%- if ceph_mon_host_type == 'HOSTNAME' -%}{{ ansible_hostname }} {%- elif ceph_mon_host_type == 'FQDN' -%}{{ ansible_fqdn }} {%- elif ceph_mon_host_type == 'INVENTORY' -%}{{ inventory_hostname }} {%- else -%}{{ storage_interface_address }} {%- endif %}" ceph_mgr_hostname: "{%- if ceph_mgr_host_type == 'HOSTNAME' -%}{{ ansible_hostname }} {%- elif ceph_mgr_host_type == 'FQDN' -%}{{ ansible_fqdn }} {%- elif ceph_mgr_host_type == 'INVENTORY' -%}{{ inventory_hostname }} {%- else -%}{{ storage_interface_address }} {%- endif %}" ceph_osd_hostname: "{%- if ceph_osd_host_type == 'HOSTNAME' -%}{{ ansible_hostname }} {%- elif ceph_osd_host_type == 'FQDN' -%}{{ ansible_fqdn }} {%- elif ceph_osd_host_type == 'INVENTORY' -%}{{ inventory_hostname }} {%- else -%}{{ storage_interface_address }} {%- endif %}" ceph_mds_hostname: "{%- if ceph_mds_host_type == 'HOSTNAME' -%}{{ ansible_hostname }} {%- elif ceph_mds_host_type == 'FQDN' -%}{{ ansible_fqdn }} {%- elif ceph_mds_host_type == 'INVENTORY' -%}{{ inventory_hostname }} {%- else -%}{{ storage_interface_address }} {%- endif %}" #################### ## Ceph_rgw_keystone #################### swift_admin_endpoint: "{{ admin_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ rgw_port }}{{ '/' if ceph_rgw_compatibility|bool else '/swift/' }}v1" swift_internal_endpoint: "{{ internal_protocol }}://{{ kolla_internal_fqdn | put_address_in_context('url') }}:{{ rgw_port }}{{ '/' if ceph_rgw_compatibility|bool else '/swift/' }}v1" swift_public_endpoint: "{{ public_protocol }}://{{ kolla_external_fqdn | put_address_in_context('url') }}:{{ rgw_port }}{{ '/' if ceph_rgw_compatibility|bool else '/swift/' }}v1" ceph_rgw_keystone_user: "ceph_rgw" openstack_swift_auth: "{{ openstack_auth }}" openstack_ceph_rgw_auth: "{{ openstack_auth }}" ########## # Ceph MDS ########## cephfs_data_pool_name: "cephfs_data" cephfs_data_pool_type: "{{ ceph_pool_type }}" cephfs_data_pool_cache_mode: "{{ ceph_cache_mode }}" cephfs_data_pool_pg_num: "{{ ceph_pool_pg_num }}" cephfs_data_pool_pgp_num: "{{ ceph_pool_pgp_num }}" cephfs_metadata_pool_name: "cephfs_metadata" cephfs_metadata_pool_type: "{{ ceph_pool_type }}" cephfs_metadata_pool_cache_mode: "{{ ceph_cache_mode }}" cephfs_metadata_pool_pg_num: "{{ ceph_pool_pg_num }}" cephfs_metadata_pool_pgp_num: "{{ ceph_pool_pgp_num }}" #################### # Kolla #################### kolla_ceph_use_udev: True #################### # Keystone #################### ceph_rgw_ks_services: - name: "swift" type: "object-store" description: "Openstack Object Storage" endpoints: - {'interface': 'admin', 'url': '{{ swift_admin_endpoint }}'} - {'interface': 'internal', 'url': '{{ swift_internal_endpoint }}'} - {'interface': 'public', 'url': '{{ swift_public_endpoint }}'} ceph_rgw_ks_users: - project: "service" user: "{{ ceph_rgw_keystone_user }}" password: "{{ ceph_rgw_keystone_password }}" role: "admin"