]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
nfs-ganesha: fix debian based OS deployments v6.0.23
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 19 Jan 2022 09:19:37 +0000 (10:19 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 31 Jan 2022 08:39:26 +0000 (09:39 +0100)
Let's use ppa repositories in order to deploy nfs-ganesha on Debian based OS.

Fixes: #7031
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit c491e67486d8ed2717b5b9eda96544eb4f7eae2d)

group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-defaults/defaults/main.yml
roles/ceph-nfs/tasks/pre_requisite_non_container_debian.yml

index e7757ad1d83b03e17ae762df9a5986f8d1149e0c..da518f57d704d0c8cc7e19d5dc7eb6e6393b94ca 100644 (file)
@@ -144,8 +144,10 @@ dummy:
 
 #nfs_ganesha_stable: true # use stable repos for nfs-ganesha
 #nfs_ganesha_stable_branch: V3.5-stable
-#nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
-
+#nfs_ganesha_stable_deb_repo: http://ppa.launchpad.net/nfs-ganesha/nfs-ganesha-3.0/ubuntu
+#nfs_ganesha_apt_keyserver: keyserver.ubuntu.com
+#nfs_ganesha_apt_key_id: EA914D611053D07BD332E18010353E8834DC57CA
+#libntirpc_stable_deb_repo: http://ppa.launchpad.net/nfs-ganesha/libntirpc-3.0/ubuntu
 
 # Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
 # # for a list of available Debian distributions, visit http://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
index 6cbc1fee7f1a9402b3fb57c18975dbdc4d6060a2..ff4953e027717e25ad177c6232e5821363aa2f60 100644 (file)
@@ -144,8 +144,10 @@ ceph_repository: rhcs
 
 #nfs_ganesha_stable: true # use stable repos for nfs-ganesha
 #nfs_ganesha_stable_branch: V3.5-stable
-#nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
-
+#nfs_ganesha_stable_deb_repo: http://ppa.launchpad.net/nfs-ganesha/nfs-ganesha-3.0/ubuntu
+#nfs_ganesha_apt_keyserver: keyserver.ubuntu.com
+#nfs_ganesha_apt_key_id: EA914D611053D07BD332E18010353E8834DC57CA
+#libntirpc_stable_deb_repo: http://ppa.launchpad.net/nfs-ganesha/libntirpc-3.0/ubuntu
 
 # Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
 # # for a list of available Debian distributions, visit http://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
index a7054dffb5079fee87e9edb02903a9c74a462de7..23770f3a14e6958b2999a50bd2c99aec89a4e698 100644 (file)
@@ -136,8 +136,10 @@ ceph_stable_repo: "{{ ceph_mirror }}/debian-{{ ceph_stable_release }}"
 
 nfs_ganesha_stable: true # use stable repos for nfs-ganesha
 nfs_ganesha_stable_branch: V3.5-stable
-nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
-
+nfs_ganesha_stable_deb_repo: http://ppa.launchpad.net/nfs-ganesha/nfs-ganesha-3.0/ubuntu
+nfs_ganesha_apt_keyserver: keyserver.ubuntu.com
+nfs_ganesha_apt_key_id: EA914D611053D07BD332E18010353E8834DC57CA
+libntirpc_stable_deb_repo: http://ppa.launchpad.net/nfs-ganesha/libntirpc-3.0/ubuntu
 
 # Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
 # # for a list of available Debian distributions, visit http://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
index ea7122aa545819c109721ddbbe55a43b7c4a5377..9138f711979ad7702544e3d65e576ecc0094e43c 100644 (file)
             update_cache: no
           register: add_ganesha_apt_repo
 
+        - name: add libntirpc stable repository
+          apt_repository:
+            repo: "deb {{ libntirpc_stable_deb_repo }} {{ ceph_stable_distro_source | default(ansible_facts['distribution_release']) }} main"
+            state: present
+            update_cache: no
+          register: add_libntirpc_apt_repo
+          when: libntirpc_stable_deb_repo is defined
+
+        - name: add nfs-ganesha ppa apt key
+          apt_key:
+            keyserver: "{{ nfs_ganesha_apt_keyserver }}"
+            id: "{{ nfs_ganesha_apt_key_id }}"
+          when:
+            - nfs_ganesha_apt_key_id is defined
+            - nfs_ganesha_apt_keyserver is defined
+
         - name: update apt cache
           apt:
             update_cache: yes
@@ -21,7 +37,7 @@
           retries: 5
           delay: 2
           until: update_ganesha_apt_cache is success
-          when: add_ganesha_apt_repo is changed
+          when: add_ganesha_apt_repo is changed or add_libntirpc_apt_repo is changed
 
     - name: debian based systems - dev repos specific tasks
       when: