mirror of https://github.com/ceph/ceph-ansible.git
nfs-ganesha: fix debian based OS deployments
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 c491e67486
)
pull/7068/head
v6.0.23
parent
fa281c7538
commit
f7389ecf25
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -14,6 +14,22 @@
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue