]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-nfs: change ganesha CentOS repository
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 19 Dec 2019 17:03:57 +0000 (12:03 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Jan 2020 10:13:46 +0000 (11:13 +0100)
Since we don't have nfs-ganesha builds available on CentOS 8 at the
moment on shaman then we can use the alternative repository at [1]

[1] https://download.nfs-ganesha.org/3/LATEST/CentOS

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml

index eca66bd81d1ad9374681652789eb32a67c762b59..80b512e5c92f3e26135a27388198d900c4fe65f0 100644 (file)
 
     - name: red hat based systems - dev repo related tasks
       block:
-        - name: fetch nfs-ganesha red hat development repository
-          uri:
-            url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/flavors/{{ nfs_ganesha_flavor }}/repo
-            return_content: yes
-          register: nfs_ganesha_dev_yum_repo
+        - name: add nfs-ganesha dev repo
+          yum_repository:
+            name: nfs-ganesha
+            baseurl: https://download.nfs-ganesha.org/3/LATEST/CentOS/el-$releasever/$basearch
+            description: nfs-ganesha repository
+            gpgcheck: true
+            gpgkey: https://download.nfs-ganesha.org/3/rsa.pub
+            file: nfs-ganesha-dev
 
-        - name: add nfs-ganesha development repository
-          copy:
-            content: "{{ nfs_ganesha_dev_yum_repo.content }}"
-            dest: /etc/yum.repos.d/nfs-ganesha-dev.repo
-            owner: root
-            group: root
-            backup: yes
+        - name: add nfs-ganesha dev noarch repo
+          yum_repository:
+            name: nfs-ganesha-noarch
+            baseurl: https://download.nfs-ganesha.org/3/LATEST/CentOS/el-$releasever/noarch
+            description: nfs-ganesha noarch repository
+            gpgcheck: true
+            gpgkey: https://download.nfs-ganesha.org/3/rsa.pub
+            file: nfs-ganesha-dev
       when:
         - nfs_ganesha_dev | bool
         - ceph_repository == 'dev'