mirror of https://github.com/ceph/ceph-ansible.git
nfs: move repository configuration in ceph-nfs role
This is something that has nothing to do in `ceph-common`, this is too specific to `ceph-nfs` role. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/2015/head
parent
f147b119ed
commit
c4dcdaa201
|
@ -9,12 +9,3 @@
|
|||
repo: "deb {{ ceph_stable_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
||||
state: present
|
||||
changed_when: false
|
||||
|
||||
- name: add nfs-ganesha stable repository
|
||||
apt_repository:
|
||||
repo: "deb {{ nfs_ganesha_stable_deb_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
||||
state: present
|
||||
changed_when: false
|
||||
when:
|
||||
- nfs_group_name in group_names
|
||||
- nfs_ganesha_stable
|
||||
|
|
|
@ -11,23 +11,3 @@
|
|||
state: present
|
||||
changed_when: false
|
||||
|
||||
- name: fetch nfs-ganesha development repository
|
||||
uri:
|
||||
url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_release }}/flavors/{{ nfs_ganesha_flavor }}/repo
|
||||
return_content: yes
|
||||
register: nfs_ganesha_apt_repo
|
||||
when:
|
||||
- nfs_group_name in group_names
|
||||
- nfs_ganesha_dev
|
||||
|
||||
- name: add nfs-ganesha development repository
|
||||
copy:
|
||||
content: "{{ nfs_ganesha_dev_apt_repo.content }}"
|
||||
dest: /etc/apt/sources.list.d/nfs-ganesha-dev.list
|
||||
owner: root
|
||||
group: root
|
||||
backup: yes
|
||||
when:
|
||||
- nfs_group_name in group_names
|
||||
- nfs_ganesha_dev
|
||||
|
||||
|
|
|
@ -12,15 +12,3 @@
|
|||
state: present
|
||||
gpgkey: "{{ ceph_stable_key }}"
|
||||
baseurl: "{{ ceph_mirror }}/rpm-{{ ceph_stable_release }}/{{ ceph_stable_redhat_distro }}/$basearch"
|
||||
|
||||
- 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 }}"
|
||||
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/luminous/$basearch"
|
||||
when:
|
||||
- nfs_group_name in group_names
|
||||
- nfs_ganesha_stable
|
||||
|
|
|
@ -13,26 +13,6 @@
|
|||
group: root
|
||||
backup: yes
|
||||
|
||||
- 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
|
||||
when:
|
||||
- nfs_group_name in group_names
|
||||
- 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
|
||||
when:
|
||||
- nfs_group_name in group_names
|
||||
- nfs_ganesha_dev
|
||||
|
||||
- name: set_fact ceph_iscsi_repos
|
||||
set_fact:
|
||||
ceph_iscsi_repos:
|
||||
|
|
|
@ -1,4 +1,77 @@
|
|||
---
|
||||
- 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 }}"
|
||||
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/$basearch"
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- nfs_ganesha_stable
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'community'
|
||||
|
||||
- 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
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- nfs_ganesha_dev
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == '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
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- nfs_ganesha_dev
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'dev'
|
||||
|
||||
- name: add nfs-ganesha stable repository
|
||||
apt_repository:
|
||||
repo: "deb {{ nfs_ganesha_stable_deb_repo }} {{ ceph_stable_distro_source | default(ansible_lsb.codename) }} main"
|
||||
state: present
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- nfs_ganesha_stable
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'community'
|
||||
|
||||
- name: fetch nfs-ganesha development repository
|
||||
uri:
|
||||
url: https://shaman.ceph.com/api/repos/nfs-ganesha/next/latest/{{ ansible_distribution | lower }}/{{ ansible_distribution_release }}/flavors/{{ nfs_ganesha_flavor }}/repo
|
||||
return_content: yes
|
||||
register: nfs_ganesha_apt_repo
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- nfs_ganesha_dev
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'dev'
|
||||
|
||||
- name: add nfs-ganesha development repository
|
||||
copy:
|
||||
content: "{{ nfs_ganesha_dev_apt_repo.content }}"
|
||||
dest: /etc/apt/sources.list.d/nfs-ganesha-dev.list
|
||||
owner: root
|
||||
group: root
|
||||
backup: yes
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- nfs_ganesha_dev
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'dev'
|
||||
|
||||
- name: install redhat nfs-ganesha-ceph package
|
||||
package:
|
||||
name: nfs-ganesha-ceph
|
||||
|
|
Loading…
Reference in New Issue