Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ceph-common: rhcs 4 repositories for rhel 7 #5019

Merged
merged 1 commit into from Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion group_vars/all.yml.sample
Expand Up @@ -174,7 +174,7 @@ dummy:
#
# Enabled when ceph_repository == 'rhcs'
#
# This version is only supported on RHEL >= 8.0
# This version is supported on RHEL 7 and 8
#
#ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(4) }}"
#valid_ceph_repository_type:
Expand Down
2 changes: 1 addition & 1 deletion group_vars/rhcs.yml.sample
Expand Up @@ -174,7 +174,7 @@ ceph_repository: rhcs
#
# Enabled when ceph_repository == 'rhcs'
#
# This version is only supported on RHEL >= 8.0
# This version is supported on RHEL 7 and 8
#
ceph_rhcs_version: 4
#valid_ceph_repository_type:
Expand Down
49 changes: 35 additions & 14 deletions roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml
@@ -1,15 +1,36 @@
---
- name: enable red hat storage monitor repository
rhsm_repository:
name: "rhceph-{{ ceph_rhcs_version }}-mon-for-rhel-8-{{ ansible_architecture }}-rpms"
when: (mon_group_name in group_names or mgr_group_name in group_names)

- name: enable red hat storage osd repository
rhsm_repository:
name: "rhceph-{{ ceph_rhcs_version }}-osd-for-rhel-8-{{ ansible_architecture }}-rpms"
when: osd_group_name in group_names

- name: enable red hat storage tools repository
rhsm_repository:
name: "rhceph-{{ ceph_rhcs_version }}-tools-for-rhel-8-{{ ansible_architecture }}-rpms"
when: (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names)
- name: "rhcs {{ ceph_rhcs_version }} on rhel 8"
when: ansible_distribution_major_version | int == 8
block:
- name: enable red hat storage monitor repository
rhsm_repository:
name: "rhceph-{{ ceph_rhcs_version }}-mon-for-rhel-8-{{ ansible_architecture }}-rpms"
when: (mon_group_name in group_names or mgr_group_name in group_names)

- name: enable red hat storage osd repository
rhsm_repository:
name: "rhceph-{{ ceph_rhcs_version }}-osd-for-rhel-8-{{ ansible_architecture }}-rpms"
when: osd_group_name in group_names

- name: enable red hat storage tools repository
rhsm_repository:
name: "rhceph-{{ ceph_rhcs_version }}-tools-for-rhel-8-{{ ansible_architecture }}-rpms"
when: (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names)

- name: "rhcs {{ ceph_rhcs_version }} on rhel 7"
when: ansible_distribution_major_version | int == 7
block:
- name: enable red hat storage monitor repository
rhsm_repository:
name: "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-mon-rpms"
when: (mon_group_name in group_names or mgr_group_name in group_names)

- name: enable red hat storage osd repository
rhsm_repository:
name: "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-osd-rpms"
when: osd_group_name in group_names

- name: enable red hat storage tools repository
rhsm_repository:
name: "rhel-7-server-rhceph-{{ ceph_rhcs_version }}-tools-rpms"
when: (rgw_group_name in group_names or mds_group_name in group_names or nfs_group_name in group_names or iscsi_gw_group_name in group_names or client_group_name in group_names)
2 changes: 1 addition & 1 deletion roles/ceph-defaults/defaults/main.yml
Expand Up @@ -166,7 +166,7 @@ ceph_stable_redhat_distro: el7
#
# Enabled when ceph_repository == 'rhcs'
#
# This version is only supported on RHEL >= 8.0
# This version is supported on RHEL 7 and 8
#
ceph_rhcs_version: "{{ ceph_stable_rh_storage_version | default(4) }}"
valid_ceph_repository_type:
Expand Down