mirror of https://github.com/ceph/ceph-ansible.git
iscsi-gw: move repository configuration to ceph-iscsi-gw
This is something that has nothing to do in `ceph-common`, this is too specific to `ceph-iscsi-gw` role. Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/2015/head
parent
ea7a8fb807
commit
fbd1a57b11
|
@ -12,36 +12,3 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- 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
|
- name: install redhat ceph iscsi package
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
|
Loading…
Reference in New Issue