]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Install lab-extras and copr repos on EL8 1454/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 16 Dec 2019 19:11:56 +0000 (14:11 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 16 Dec 2019 19:11:56 +0000 (14:11 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml
ansible/examples/slave_static.yml

index 7a550ea19aff4feb842beabc326698bdb7c4c16e..144c21ed5338cb74ce46d815bcc6b1ff7cd174b8 100644 (file)
         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 }}"
index a070e07c153bf14f9e344575fd3ef8687cec8c3a..a2ff6918cc39f10eb4f8e44ad54031eae45b12bf 100644 (file)
         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: