mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #2015 from ceph/fix_nfs-ganesha-repos
nfs: move repository configuration in ceph-nfs rolepull/2021/head v3.0.0
commit
f6d1be269f
|
@ -25,11 +25,11 @@ You can install directly from the source on github by following these steps:
|
|||
|
||||
git checkout $branch
|
||||
|
||||
.. _ansible-on-rhel-family:
|
||||
|
||||
Ansible on RHEL and CentOS
|
||||
--------------------------
|
||||
You can acquire Ansible on RHEL and CentOS by installing from
|
||||
`"Extras"<https://access.redhat.com/solutions/912213>`_.
|
||||
You can acquire Ansible on RHEL and CentOS by installing from `Extras <https://access.redhat.com/solutions/912213>`_.
|
||||
|
||||
On RHEL::
|
||||
|
||||
|
@ -43,8 +43,7 @@ On RHEL::
|
|||
|
||||
Ansible on Ubuntu
|
||||
-----------------
|
||||
You can acquire Ansible on Ubuntu by using the `Ansible
|
||||
PPA<https://launchpad.net/~ansible/+archive/ubuntu/ansible>`_.
|
||||
You can acquire Ansible on Ubuntu by using the `Ansible PPA <https://launchpad.net/~ansible/+archive/ubuntu/ansible>`_.
|
||||
|
||||
::
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -12,56 +12,3 @@
|
|||
owner: root
|
||||
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:
|
||||
- ceph-iscsi-config
|
||||
- tcmu-runner
|
||||
when:
|
||||
- ceph_iscsi_config_dev
|
||||
- iscsi_gw_group_name in group_names
|
||||
|
||||
- name: fetch ceph-iscsi-config red hat development repository
|
||||
uri:
|
||||
url: https://shaman.ceph.com/api/repos/{{ item }}/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/repo
|
||||
return_content: yes
|
||||
register: ceph_iscsi_config_dev_yum_repo
|
||||
with_items: "{{ ceph_iscsi_repos }}"
|
||||
when:
|
||||
- ceph_iscsi_config_dev
|
||||
- iscsi_gw_group_name in group_names
|
||||
|
||||
- name: configure ceph-iscsi-config red hat development repository
|
||||
copy:
|
||||
content: "{{ item.0.content }}"
|
||||
dest: "/etc/yum.repos.d/{{ item.1 }}-dev.repo"
|
||||
owner: root
|
||||
group: root
|
||||
backup: yes
|
||||
with_together:
|
||||
- "{{ ceph_iscsi_config_dev_yum_repo.results }}"
|
||||
- "{{ ceph_iscsi_repos }}"
|
||||
when:
|
||||
- ceph_iscsi_config_dev
|
||||
- iscsi_gw_group_name in group_names
|
||||
|
|
|
@ -1,4 +1,43 @@
|
|||
---
|
||||
- name: set_fact ceph_iscsi_repos
|
||||
set_fact:
|
||||
ceph_iscsi_repos:
|
||||
- ceph-iscsi-config
|
||||
- tcmu-runner
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'dev'
|
||||
- ceph_iscsi_config_dev
|
||||
|
||||
- name: fetch ceph-iscsi-config red hat development repository
|
||||
uri:
|
||||
url: https://shaman.ceph.com/api/repos/{{ item }}/{{ ceph_dev_branch }}/{{ ceph_dev_sha1 }}/{{ ansible_distribution | lower }}/{{ ansible_distribution_major_version }}/repo
|
||||
return_content: yes
|
||||
register: ceph_iscsi_config_dev_yum_repo
|
||||
with_items: "{{ ceph_iscsi_repos }}"
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'dev'
|
||||
- ceph_iscsi_config_dev
|
||||
|
||||
- name: configure ceph-iscsi-config red hat development repository
|
||||
copy:
|
||||
content: "{{ item.0.content }}"
|
||||
dest: "/etc/yum.repos.d/{{ item.1 }}-dev.repo"
|
||||
owner: root
|
||||
group: root
|
||||
backup: yes
|
||||
with_together:
|
||||
- "{{ ceph_iscsi_config_dev_yum_repo.results }}"
|
||||
- "{{ ceph_iscsi_repos }}"
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ceph_origin == 'repository'
|
||||
- ceph_repository == 'dev'
|
||||
- ceph_iscsi_config_dev
|
||||
|
||||
- name: install redhat ceph iscsi package
|
||||
package:
|
||||
name: "{{ item }}"
|
||||
|
|
|
@ -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
|
||||
|
@ -61,6 +134,7 @@
|
|||
name: nfs-ganesha
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
||||
- ceph_repository == 'rhcs'
|
||||
|
||||
|
@ -69,6 +143,7 @@
|
|||
name: nfs-ganesha-ceph
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
||||
- ceph_repository == 'rhcs'
|
||||
- nfs_file_gw
|
||||
|
@ -78,6 +153,7 @@
|
|||
name: nfs-ganesha-rgw
|
||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|
||||
- ceph_repository == 'rhcs'
|
||||
- nfs_obj_gw
|
||||
|
|
Loading…
Reference in New Issue