Skip to content

Commit

Permalink
ceph-nfs: change ganesha CentOS repository
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dsavineau committed Dec 23, 2019
1 parent a33ae11 commit 6502fa3
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,23 @@

- 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'
Expand Down

0 comments on commit 6502fa3

Please sign in to comment.