From 9c8691297ba2744ea9aa352e91bdea8227b4d73e Mon Sep 17 00:00:00 2001 From: David Galloway Date: Mon, 16 Dec 2019 14:11:56 -0500 Subject: [PATCH] ansible: Install lab-extras and copr repos on EL8 Signed-off-by: David Galloway --- ansible/examples/slave.yml | 18 ++++++++++++++++++ ansible/examples/slave_static.yml | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index 7a550ea1..144c21ed 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -158,6 +158,24 @@ line: 'enabled=0' when: ansible_os_family == "RedHat" + # This repo has EL8 packages that Ceph depends on. These packages are not available in AppStream, BaseOS, or EPEL8 yet so we build and manage them. + - name: Enable EL8 copr repo + command: "dnf -y copr enable ktdreyer/ceph-el8" + when: + - ansible_os_family == "RedHat" + - ansible_distribution_major_version|int >= 8 + + # This repo contains packages that were built from Fedora SRPMs. Same thing here -- not in EPEL yet. + - name: Enable EL8 lab-extras + yum_repository: + name: lab-extras + description: Ceph Lab extra packages + baseurl: http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ + gpgcheck: no + when: + - ansible_os_family == "RedHat" + - ansible_distribution_major_version|int >= 8 + - name: Install RPM requirements package: name: "{{ item }}" diff --git a/ansible/examples/slave_static.yml b/ansible/examples/slave_static.yml index a070e07c..a2ff6918 100644 --- a/ansible/examples/slave_static.yml +++ b/ansible/examples/slave_static.yml @@ -93,6 +93,24 @@ mode: 0644 when: ansible_pkg_mgr == "yum" + # This repo has EL8 packages that Ceph depends on. These packages are not available in AppStream, BaseOS, or EPEL8 yet so we build and manage them. + - name: Enable EL8 copr repo + command: "dnf -y copr enable ktdreyer/ceph-el8" + when: + - ansible_os_family == "RedHat" + - ansible_distribution_major_version|int >= 8 + + # This repo contains packages that were built from Fedora SRPMs. Same thing here -- not in EPEL yet. + - name: Enable EL8 lab-extras + yum_repository: + name: lab-extras + description: Ceph Lab extra packages + baseurl: http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ + gpgcheck: no + when: + - ansible_os_family == "RedHat" + - ansible_distribution_major_version|int >= 8 + - name: Install RPM requirements (All distro versions) become: yes package: -- 2.39.5