Skip to content

Commit

Permalink
common: add centos8 support
Browse files Browse the repository at this point in the history
This commit adds CentOS 8 support.

Signed-off-by: Guillaume Abrioux <[email protected]>
  • Loading branch information
guits authored and dsavineau committed Dec 19, 2019
1 parent f6463e5 commit 3667af0
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 6 deletions.
2 changes: 1 addition & 1 deletion group_vars/all.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ dummy:

#centos_package_dependencies:
# - epel-release
# - libselinux-python
# - "{{ 'libselinux-python' if ansible_distribution_major_version | int != 8 else 'python3-libselinux' }}"

#redhat_package_dependencies: []

Expand Down
2 changes: 1 addition & 1 deletion group_vars/rhcs.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fetch_directory: ~/ceph-ansible-keys

#centos_package_dependencies:
# - epel-release
# - libselinux-python
# - "{{ 'libselinux-python' if ansible_distribution_major_version | int != 8 else 'python3-libselinux' }}"

#redhat_package_dependencies: []

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
register: result
until: result is succeeded
tags: with_pkg
when: ansible_distribution_major_version | int == 8

- name: configure red hat ceph community repository stable key
rpm_key:
Expand Down
18 changes: 18 additions & 0 deletions roles/ceph-common/tasks/installs/redhat_dev_repository.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
---
- name: install dnf-plugins-core
package:
name: dnf-plugins-core
tags: with_pkg

- name: enable ceph-el8 copr
command: dnf copr enable -y ktdreyer/ceph-el8
args:
creates: /etc/yum.repos.d/_copr:copr.fedorainfracloud.org:ktdreyer:ceph-el8.repo

- name: enable ceph lab extras repository
yum_repository:
name: lab-extras
baseurl: http://apt-mirror.front.sepia.ceph.com/lab-extras/8/
description: Sepia Lab Extras repository
enabled: true
gpgcheck: false

- name: fetch ceph red hat development repository
uri:
# Use the centos repo since we don't currently have a dedicated red hat repo
Expand Down
2 changes: 1 addition & 1 deletion roles/ceph-defaults/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ debian_package_dependencies: []

centos_package_dependencies:
- epel-release
- libselinux-python
- "{{ 'libselinux-python' if ansible_distribution_major_version | int != 8 else 'python3-libselinux' }}"

redhat_package_dependencies: []

Expand Down
2 changes: 1 addition & 1 deletion tox-filestore_to_bluestore.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ setenv=
ANSIBLE_STDOUT_CALLBACK = yaml
# non_container: DEV_SETUP = True
# Set the vagrant box image to use
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/7
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/8
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/atomic-host
ubuntu: CEPH_ANSIBLE_VAGRANT_BOX = guits/ubuntu-bionic64

Expand Down
2 changes: 1 addition & 1 deletion tox-update.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ setenv=
ANSIBLE_STDOUT_CALLBACK = yaml
# non_container: DEV_SETUP = True
# Set the vagrant box image to use
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/7
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/8
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/atomic-host
ubuntu: CEPH_ANSIBLE_VAGRANT_BOX = guits/ubuntu-bionic64

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ setenv=
ANSIBLE_STDOUT_CALLBACK = yaml
non_container: DEV_SETUP = True
# Set the vagrant box image to use
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/7
centos-non_container: CEPH_ANSIBLE_VAGRANT_BOX = centos/8
centos-container: CEPH_ANSIBLE_VAGRANT_BOX = centos/atomic-host
ubuntu: CEPH_ANSIBLE_VAGRANT_BOX = guits/ubuntu-bionic64

Expand Down

0 comments on commit 3667af0

Please sign in to comment.