2014-09-05 03:14:11 +08:00
|
|
|
---
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install dependencies
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2015-08-26 17:19:35 +08:00
|
|
|
with_items: redhat_package_dependencies
|
2016-03-03 07:05:37 +08:00
|
|
|
when:
|
|
|
|
ansible_distribution == "RedHat" and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: centos_package_dependencies
|
|
|
|
when:
|
|
|
|
ansible_distribution == "CentOS" and
|
|
|
|
ansible_pkg_mgr == "yum"
|
2016-01-29 02:11:22 +08:00
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2016-03-03 07:05:37 +08:00
|
|
|
with_items: centos_package_dependencies
|
|
|
|
when:
|
|
|
|
ansible_distribution == "CentOS" and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2015-08-31 21:23:29 +08:00
|
|
|
- name: configure ceph yum repository
|
|
|
|
include: redhat_ceph_repository.yml
|
|
|
|
when: ceph_origin == 'upstream'
|
2015-07-02 17:08:59 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- name: install ceph
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: ceph
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2015-07-01 21:58:38 +08:00
|
|
|
when: not ceph_stable_rh_storage
|
|
|
|
|
2016-02-24 01:30:26 +08:00
|
|
|
- name: install distro or red hat storage ceph mon
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2015-07-01 21:58:38 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-mon
|
|
|
|
when:
|
2016-04-06 09:11:37 +08:00
|
|
|
(ceph_origin == "distro" or ceph_stable_rh_storage or
|
2016-04-10 05:21:36 +08:00
|
|
|
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
|
2016-01-29 02:11:22 +08:00
|
|
|
mon_group_name in group_names and
|
2016-04-06 09:11:37 +08:00
|
|
|
ansible_pkg_mgr == "yum"
|
2016-01-29 02:11:22 +08:00
|
|
|
|
2016-02-24 01:30:26 +08:00
|
|
|
- name: install distro or red hat storage ceph mon
|
2016-01-29 02:11:22 +08:00
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2016-01-29 02:11:22 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-mon
|
|
|
|
when:
|
2016-04-06 09:11:37 +08:00
|
|
|
(ceph_origin == "distro" or ceph_stable_rh_storage or
|
2016-04-10 05:21:36 +08:00
|
|
|
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
|
2016-01-29 02:11:22 +08:00
|
|
|
mon_group_name in group_names and
|
2016-04-06 09:11:37 +08:00
|
|
|
ansible_pkg_mgr == "dnf"
|
2015-07-01 21:58:38 +08:00
|
|
|
|
2016-02-24 01:30:26 +08:00
|
|
|
- name: install distro or red hat storage ceph osd
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2015-07-01 21:58:38 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-osd
|
|
|
|
when:
|
2016-04-06 09:11:37 +08:00
|
|
|
(ceph_origin == "distro" or ceph_stable_rh_storage or
|
2016-04-10 05:21:36 +08:00
|
|
|
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
|
2016-01-29 02:11:22 +08:00
|
|
|
osd_group_name in group_names and
|
2016-04-06 09:11:37 +08:00
|
|
|
ansible_pkg_mgr == "yum"
|
2016-01-29 02:11:22 +08:00
|
|
|
|
2016-02-24 01:30:26 +08:00
|
|
|
- name: install distro or red hat storage ceph osd
|
2016-01-29 02:11:22 +08:00
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2016-01-29 02:11:22 +08:00
|
|
|
with_items:
|
|
|
|
- ceph
|
|
|
|
- ceph-osd
|
|
|
|
when:
|
2016-04-06 09:11:37 +08:00
|
|
|
(ceph_origin == "distro" or ceph_stable_rh_storage or
|
2016-04-10 05:21:36 +08:00
|
|
|
(ceph_stable and ceph_stable_release not in ceph_stable_releases)) and
|
2016-01-29 02:11:22 +08:00
|
|
|
osd_group_name in group_names and
|
2016-04-06 09:11:37 +08:00
|
|
|
ansible_pkg_mgr == "dnf"
|
2014-12-18 19:20:17 +08:00
|
|
|
|
2016-02-20 07:39:33 +08:00
|
|
|
- name: install ceph-test
|
|
|
|
yum:
|
|
|
|
name: ceph-test
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
ceph_test and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install ceph-test
|
|
|
|
dnf:
|
|
|
|
name: ceph-test
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
ceph_test and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
|
|
|
|
2015-05-16 00:27:41 +08:00
|
|
|
- name: install Inktank Ceph Enterprise RBD Kernel modules
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
2014-12-18 19:20:17 +08:00
|
|
|
with_items:
|
2014-12-25 00:07:50 +08:00
|
|
|
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
|
|
|
|
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
ceph_stable_ice and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install Inktank Ceph Enterprise RBD Kernel modules
|
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
|
|
|
with_items:
|
|
|
|
- "{{ ceph_stable_ice_temp_path }}/kmod-libceph-{{ ceph_stable_ice_kmod }}.rpm"
|
|
|
|
- "{{ ceph_stable_ice_temp_path }}/kmod-rbd-{{ ceph_stable_ice_kmod }}.rpm"
|
|
|
|
when:
|
|
|
|
ceph_stable_ice and
|
|
|
|
ansible_pkg_mgr == "dnf"
|
2015-06-09 22:32:17 +08:00
|
|
|
|
2015-08-03 23:39:57 +08:00
|
|
|
- name: install rados gateway
|
2015-09-04 00:18:53 +08:00
|
|
|
yum:
|
|
|
|
name: ceph-radosgw
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2015-08-03 23:39:57 +08:00
|
|
|
when:
|
2016-01-29 02:11:22 +08:00
|
|
|
rgw_group_name in group_names and
|
|
|
|
ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install rados gateway
|
|
|
|
dnf:
|
|
|
|
name: ceph-radosgw
|
2016-01-29 23:54:59 +08:00
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
2016-01-29 02:11:22 +08:00
|
|
|
when:
|
|
|
|
rgw_group_name in group_names and
|
|
|
|
ansible_pkg_mgr == "dnf"
|