- block: - include_role: name: tripleo_run_cephadm tasks_from: prepare.yml name: create cephadm working directory and related files vars: ceph_config_overrides: {} ceph_default_overrides: global: {} ceph_keys: extra_keys: [] manila: key: AQAzvCZqAAAAABAA2zwCXm7DB80yZklRjp1A/A== name: manila openstack_client: key: AQAzvCZqAAAAABAAwXmHIJOjYPdjTLmHb5ObJA== name: openstack radosgw: key: AQAzvCZqAAAAABAANaxJqhRMTpfBSwH7lpea0Q== name: radosgw ceph_osd_spec: data_devices: all: true ceph_pools: cinder_backup_pool: enabled: true name: backups cinder_pool: cinder_extra_pools: [] enabled: true name: volumes extra_pools: [] glance_pool: enabled: or: - false - equals: - rbd - rbd name: images gnocchi_pool: enabled: false name: metrics nova_pool: enabled: true name: vms ceph_spec_fqdn: true cephadm_extra_vars: ceph_container_registry_auth: false ceph_container_registry_password: '' ceph_container_registry_username: '' cephfs: cephfs cluster_network: 172.20.0.0/24 public_network: 172.18.0.0/24 tripleo_ceph_client_vars: /root/overcloud-deploy/overcloud/ceph_client.yml tripleo_cephadm_apply_ceph_conf_overrides_on_update: true tripleo_cephadm_cluster: ceph tripleo_cephadm_container_cli: podman tripleo_cephadm_container_image: rhceph/rhceph-7-rhel9 tripleo_cephadm_container_ns: registry.redhat.io tripleo_cephadm_container_tag: latest tripleo_cephadm_crush_rules: [] tripleo_cephadm_dashboard_enabled: false tripleo_cephadm_debug: false tripleo_cephadm_default_container: false tripleo_cephadm_enable_trash_scheduler: false tripleo_cephadm_fsid: 2f276e72-1cb2-51a0-8121-0a7023f17700 tripleo_cephadm_rbd_trash: '15' tripleo_cephadm_verbose: false manila_pools: data: manila_data metadata: manila_metadata tripleo_cephadm_deployed_ceph: true tripleo_cephadm_dynamic_spec: false tripleo_run_cephadm_spec_path: '{{ playbook_dir }}/cephadm/ceph_spec.yaml' - include_role: name: tripleo_run_cephadm tasks_from: enable_ceph_admin_user.yml name: Prepare cephadm user and keys vars: deployed_ceph: true external_ceph: false when: - not external_ceph - (not deployed_ceph and (groups['ceph_mon'] | default([]) | length > 0 or groups['ceph_nfs'] | default([]) | length > 0)) or (deployed_ceph and ((groups['ceph_rgw'] | default([]) != groups['ceph_mon'] | default([]) and groups['ceph_rgw'] | default([]) | length > 0) or (groups['ceph_mds'] | default([]) != groups['ceph_mon'] | default([]) and groups['ceph_mds'] | default([]) | length > 0) or (groups['ceph_nfs'] | default([]) != groups['ceph_mon'] | default([]) and groups['ceph_nfs'] | default([]) | length > 0) or (groups['ceph_rbdmirror'] | default([]) != groups['ceph_mon'] | default([]) and groups['ceph_rbdmirror'] | default([]) | length > 0))) - include_role: name: tripleo_run_cephadm name: Deploy or configure the cephadm Ceph cluster vars: external_ceph: false when: - not external_ceph - groups['ceph_mon'] | default([]) | length > 0 or groups['ceph_nfs'] | default([]) | length > 0 name: ceph_base_external_deploy_task when: step|int == 2 - block: - name: Check if the input variable file exists register: ceph_input_vars stat: path: '{{ tripleo_ceph_client_vars }}' vars: tripleo_ceph_client_vars: /root/overcloud-deploy/overcloud/ceph_client.yml - copy: content: 'tripleo_ceph_client_fsid: "{{ tripleo_ceph_client_fsid }}" external_cluster_mon_ips: "{{ external_cluster_mon_ips }}" ' dest: '{{ tripleo_ceph_client_vars }}' name: Populate CephClientConfigVars from THT vars: external_cluster_mon_ips: '' tripleo_ceph_client_fsid: 2f276e72-1cb2-51a0-8121-0a7023f17700 tripleo_ceph_client_vars: /root/overcloud-deploy/overcloud/ceph_client.yml when: - ceph_input_vars.stat.exists == False - external_cluster_mon_ips | length > 0 - include_role: name: tripleo_ceph_client name: configure ceph clients vars: tripleo_ceph_client_config_home: /var/lib/tripleo-config/ceph tripleo_ceph_client_vars: /root/overcloud-deploy/overcloud/ceph_client.yml - include_role: name: tripleo_ceph_client loop: '{{ ceph_external_multi_config }}' name: tripleo client role vars: multiple: '{{ item }}' tripleo_ceph_client_config_home: /var/lib/tripleo-config/ceph when: - ceph_external_multi_config is defined - include_vars: '{{ playbook_dir }}/cephadm/cephadm-extra-vars-heat.yml' name: Load variables for standalone ganesha when: - groups['ceph_mon'] | default([]) | length == 0 - groups['ceph_nfs'] | default([]) | length > 0 - include_role: name: tripleo_cephadm tasks_from: nfs name: Config Standalone Ganesha vars: tripleo_cephadm_config_home: /var/lib/tripleo-config/ceph when: - groups['ceph_mon'] | default([]) | length == 0 - groups['ceph_nfs'] | default([]) | length > 0 name: Configure Ceph Clients when: step|int == 2