2018-09-07 20:45:43 +08:00
|
|
|
---
|
|
|
|
- name: red hat based systems - repo handling
|
2019-04-01 23:46:15 +08:00
|
|
|
when: ceph_origin == 'repository'
|
2018-09-07 20:45:43 +08:00
|
|
|
block:
|
|
|
|
- name: add nfs-ganesha stable repository
|
|
|
|
yum_repository:
|
|
|
|
name: nfs_ganesha_stable
|
|
|
|
description: nfs-ganesha stable repo
|
|
|
|
gpgcheck: yes
|
|
|
|
state: present
|
|
|
|
gpgkey: "{{ ceph_stable_key }}"
|
2020-03-26 15:25:05 +08:00
|
|
|
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/el$releasever/$basearch"
|
2018-09-07 20:45:43 +08:00
|
|
|
when:
|
2019-06-25 23:11:28 +08:00
|
|
|
- nfs_ganesha_stable | bool
|
2018-09-07 20:45:43 +08:00
|
|
|
- ceph_repository == 'community'
|
|
|
|
|
|
|
|
- name: red hat based systems - dev repo related tasks
|
|
|
|
block:
|
2019-12-20 01:03:57 +08:00
|
|
|
- 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
|
2018-09-07 20:45:43 +08:00
|
|
|
|
2019-12-20 01:03:57 +08:00
|
|
|
- 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
|
2018-09-07 20:45:43 +08:00
|
|
|
when:
|
2019-06-25 23:11:28 +08:00
|
|
|
- nfs_ganesha_dev | bool
|
2018-09-07 20:45:43 +08:00
|
|
|
- ceph_repository == 'dev'
|
|
|
|
|
|
|
|
- name: red hat based systems - install nfs packages
|
|
|
|
block:
|
|
|
|
- name: install nfs cephfs gateway
|
|
|
|
package:
|
2019-10-29 01:54:16 +08:00
|
|
|
name: ['nfs-ganesha-ceph', 'nfs-ganesha-rados-grace']
|
2018-09-07 20:45:43 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-04-01 23:46:15 +08:00
|
|
|
when: nfs_file_gw
|
2018-09-07 20:45:43 +08:00
|
|
|
|
|
|
|
- name: install redhat nfs-ganesha-rgw and ceph-radosgw packages
|
|
|
|
package:
|
2020-02-07 04:41:46 +08:00
|
|
|
name: ['nfs-ganesha-rgw', 'nfs-ganesha-rados-grace', 'nfs-ganesha-rados-urls', 'ceph-radosgw']
|
2018-09-07 20:45:43 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2018-12-19 21:55:01 +08:00
|
|
|
register: result
|
|
|
|
until: result is succeeded
|
2019-06-25 23:11:28 +08:00
|
|
|
when: nfs_obj_gw | bool
|