diff --git a/docs/source/installation/non-containerized.rst b/docs/source/installation/non-containerized.rst index f56bdec2aed..e7b4d5d7f3b 100644 --- a/docs/source/installation/non-containerized.rst +++ b/docs/source/installation/non-containerized.rst @@ -15,7 +15,7 @@ Origin: Repository If ``ceph_origin`` is set to ``repository``, you now have the choice between a couple of repositories controlled by the ``ceph_repository`` option: - ``community``: fetches packages from http://download.ceph.com, the official community Ceph repositories -- ``rhcs``: means you are a Red Hat customer, additionally you will have to select a repository type through ``ceph_repository_type`` (``cdn`` or ``iso``) +- ``rhcs``: means you are a Red Hat customer - ``dev``: fetches packages from shaman, a gitbuilder based package system - ``uca``: fetches packages from Ubuntu Cloud Archive - ``custom``: fetches packages from a specific repository @@ -33,7 +33,6 @@ RHCS repository RHCS is the Red Hat Ceph Storage product from Red Hat, the enterprise version of Ceph. If ``ceph_repository`` is set to ``rhcs``, packages you will be installed from Red Hat sources. -Additionally you will have to select a repository type through ``ceph_repository_type``, it can be ``cdn`` or ``iso``. To choose a specific version of RHCS you can set the ``ceph_rhcs_version`` variable accordingly, e.g: ``ceph_rhcs_version: 2``. UCA repository diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index 57d7ef1e02b..88417ba5897 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -110,8 +110,6 @@ dummy: ########### # INSTALL # ########### -#ceph_repository_type: dummy - # ORIGIN SOURCE # # Choose between: @@ -163,12 +161,6 @@ dummy: # This version is supported on RHEL 8 # #ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(5) }}" -#valid_ceph_repository_type: -# - cdn -# - iso -#ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}" -#ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}" -#ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content # REPOSITORY: UBUNTU CLOUD ARCHIVE diff --git a/group_vars/rhcs.yml.sample b/group_vars/rhcs.yml.sample index 8559c3ca770..8d0e0e3170b 100644 --- a/group_vars/rhcs.yml.sample +++ b/group_vars/rhcs.yml.sample @@ -110,8 +110,6 @@ dummy: ########### # INSTALL # ########### -#ceph_repository_type: dummy - # ORIGIN SOURCE # # Choose between: @@ -163,12 +161,6 @@ ceph_repository: rhcs # This version is supported on RHEL 8 # ceph_rhcs_version: 5 -#valid_ceph_repository_type: -# - cdn -# - iso -#ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}" -#ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}" -#ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content # REPOSITORY: UBUNTU CLOUD ARCHIVE diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index 825cda38216..ba7e7f34222 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -9,9 +9,7 @@ # # If you run a Ceph community version, you have to change the variable: ceph_stable_release to the new release # -# If you run Red Hat Ceph Storage and are doing a **major** update (e.g: from 2 to 3), you have two options: -# - if you use a CDN, you have to change the ceph_rhcs_version to a newer one -# - if you use an ISO, you have to change the ceph_rhcs_iso_path to the directory containing the new Ceph version +# If you run Red Hat Ceph Storage and are doing a **major** update (e.g: from 2 to 3), you have to change the ceph_rhcs_version to a newer one # - name: confirm whether user really meant to upgrade the cluster diff --git a/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml b/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml deleted file mode 100644 index f0899d6ced4..00000000000 --- a/roles/ceph-common/tasks/installs/prerequisite_rhcs_iso_install.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -- name: create red hat storage package directories for redhat systems - file: - path: "{{ item }}" - state: directory - with_items: - - "{{ ceph_rhcs_mount_path }}" - - "{{ ceph_rhcs_repository_path }}" - -- name: ensure destination iso directory exists for redhat systems - file: - path: "{{ ceph_rhcs_iso_path | dirname }}" - state: directory - recurse: yes - when: ceph_rhcs_iso_path | dirname != '/' - -- name: fetch the red hat storage iso from the ansible server for redhat systems - copy: - src: "{{ ceph_rhcs_iso_path }}" - dest: "{{ ceph_rhcs_iso_path }}" - -# assumption: ceph_rhcs_mount_path does not specify directory - -- name: mount red hat storage iso file for redhat systems - mount: - name: "{{ ceph_rhcs_mount_path }}" - src: "{{ ceph_rhcs_iso_path }}" - fstype: iso9660 - opts: ro,loop,noauto - passno: 2 - state: mounted - -- name: copy red hat storage iso content for redhat systems - shell: cp -r {{ ceph_rhcs_mount_path }}/* {{ ceph_rhcs_repository_path }} - args: - creates: "{{ ceph_rhcs_repository_path+'/README' if not rolling_update | bool else 'dummy' }}" - -- name: unmount red hat storage iso file for redhat systems - mount: - name: "{{ ceph_rhcs_mount_path }}" - src: "{{ ceph_rhcs_iso_path }}" - fstype: iso9660 - state: unmounted - -- name: install red hat storage repository key for redhat systems - rpm_key: - key: "{{ ceph_rhcs_repository_path }}/RPM-GPG-KEY-redhat-release" - state: present - register: result - until: result is succeeded - -- name: add red hat storage repository for redhat systems - template: - src: "{{ role_path }}/templates/redhat_storage_repo.j2" - dest: /etc/yum.repos.d/rh_storage.repo - owner: root - group: root - mode: 0644 diff --git a/roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml b/roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml index 78cfca717a5..5763b7386b3 100644 --- a/roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml +++ b/roles/ceph-common/tasks/installs/redhat_rhcs_repository.yml @@ -1,8 +1,3 @@ --- -- name: include prerequisite_rhcs_iso_install.yml - include_tasks: prerequisite_rhcs_iso_install.yml - when: ceph_repository_type == 'iso' - - name: include prerequisite_rhcs_cdn_install.yml include_tasks: prerequisite_rhcs_cdn_install.yml - when: ceph_repository_type == 'cdn' diff --git a/roles/ceph-defaults/defaults/main.yml b/roles/ceph-defaults/defaults/main.yml index a22687d3439..3350527eea2 100644 --- a/roles/ceph-defaults/defaults/main.yml +++ b/roles/ceph-defaults/defaults/main.yml @@ -102,8 +102,6 @@ ceph_directories_mode: "0755" ########### # INSTALL # ########### -ceph_repository_type: dummy - # ORIGIN SOURCE # # Choose between: @@ -155,12 +153,6 @@ nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_s # This version is supported on RHEL 8 # ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(5) }}" -valid_ceph_repository_type: - - cdn - - iso -ceph_rhcs_iso_path: "{{ ceph_stable_rh_storage_iso_path | default('') }}" -ceph_rhcs_mount_path: "{{ ceph_stable_rh_storage_mount_path | default('/tmp/rh-storage-mount') }}" -ceph_rhcs_repository_path: "{{ ceph_stable_rh_storage_repository_path | default('/tmp/rh-storage-repo') }}" # where to copy iso's content # REPOSITORY: UBUNTU CLOUD ARCHIVE diff --git a/roles/ceph-validate/tasks/check_system.yml b/roles/ceph-validate/tasks/check_system.yml index 19f20b1a909..70d1ad15bb1 100644 --- a/roles/ceph-validate/tasks/check_system.yml +++ b/roles/ceph-validate/tasks/check_system.yml @@ -44,7 +44,6 @@ when: ansible_facts['distribution_version'] is version('8.2', '<') - name: subscription manager related tasks - when: ceph_repository_type == 'cdn' block: - name: determine if node is registered with subscription-manager command: subscription-manager identity diff --git a/roles/ceph-validate/tasks/main.yml b/roles/ceph-validate/tasks/main.yml index 8596160711b..4d6d681fc96 100644 --- a/roles/ceph-validate/tasks/main.yml +++ b/roles/ceph-validate/tasks/main.yml @@ -25,14 +25,6 @@ - ceph_repository == 'community' - ceph_stable_release not in ['quincy'] - - name: validate ceph_repository_type - fail: - msg: "ceph_repository_type must be either 'cdn' or 'iso'" - when: - - ceph_origin == 'repository' - - ceph_repository == 'rhcs' - - ceph_repository_type not in ['cdn', 'iso'] - - name: validate osd_objectstore fail: msg: "osd_objectstore must be either 'bluestore' or 'filestore'"