]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: add el8 repo configuration
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 25 Mar 2020 17:07:24 +0000 (18:07 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Tue, 31 Mar 2020 14:02:47 +0000 (10:02 -0400)
This commit adds el8 repo configuration since we are still missing these
packages in el8.

This is only intended to make CI passing on stable-5.0 and *must* be
reverted once these packages will be available.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-common/tasks/installs/configure_el8_dep.yml [new file with mode: 0644]
roles/ceph-common/tasks/installs/install_on_redhat.yml
roles/ceph-common/tasks/installs/redhat_dev_repository.yml

diff --git a/roles/ceph-common/tasks/installs/configure_el8_dep.yml b/roles/ceph-common/tasks/installs/configure_el8_dep.yml
new file mode 100644 (file)
index 0000000..b0fbd70
--- /dev/null
@@ -0,0 +1,16 @@
+---
+- 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
+    warn: false
+  register: result
+  until: result is succeeded
+
+- 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
\ No newline at end of file
index 93e261484b5dfe113f190f79223ded94be31b511..5a52d0f6b92004ee411af5a3ec41fdc5476cc18a 100644 (file)
@@ -1,4 +1,8 @@
 ---
+- name: include configure_el8_dep.yml
+  include_tasks: configure_el8_dep.yml
+  when: ceph_origin == 'repository'
+
 - name: include configure_redhat_repository_installation.yml
   include_tasks: configure_redhat_repository_installation.yml
   when: ceph_origin == 'repository'
index 85a32a1ab938663bf21747ff93b8e7727d4425b8..2cf0d3eaf69193b3f3b80c2cb6f9aced8953597b 100644 (file)
@@ -6,22 +6,6 @@
   until: result is succeeded
   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
-    warn: false
-  register: result
-  until: result is succeeded
-
-- 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