2014-09-05 03:14:11 +08:00
|
|
|
---
|
2016-06-16 22:06:31 +08:00
|
|
|
- name: install redhat dependencies via yum
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ansible_distribution == "RedHat"
|
|
|
|
- ansible_pkg_mgr == "yum"
|
2016-03-03 07:05:37 +08:00
|
|
|
|
2016-06-16 22:06:31 +08:00
|
|
|
- name: install redhat dependencies via dnf
|
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: redhat_package_dependencies
|
|
|
|
when:
|
|
|
|
- ansible_distribution == "RedHat"
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
|
|
|
|
|
|
|
- name: install centos dependencies via yum
|
2016-03-03 07:05:37 +08:00
|
|
|
yum:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
|
|
|
with_items: centos_package_dependencies
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ansible_distribution == "CentOS"
|
|
|
|
- ansible_pkg_mgr == "yum"
|
2016-01-29 02:11:22 +08:00
|
|
|
|
2016-06-16 22:06:31 +08:00
|
|
|
- name: install centos dependencies via dnf
|
2016-01-29 02:11:22 +08:00
|
|
|
dnf:
|
|
|
|
name: "{{ item }}"
|
|
|
|
state: present
|
2016-03-03 07:05:37 +08:00
|
|
|
with_items: centos_package_dependencies
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ansible_distribution == "CentOS"
|
|
|
|
- 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') }}"
|
2016-04-28 05:10:39 +08:00
|
|
|
when: not use_server_package_split
|
2015-07-01 21:58:38 +08:00
|
|
|
|
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:
|
2016-04-28 05:10:39 +08:00
|
|
|
name: "ceph-mon"
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- mon_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "yum"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_dev
|
|
|
|
or ceph_origin == "distro"
|
2016-06-22 22:13:55 +08:00
|
|
|
or ceph_custom
|
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:
|
2016-04-28 05:10:39 +08:00
|
|
|
name: "ceph-mon"
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- mon_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
2016-06-22 22:13:55 +08:00
|
|
|
or ceph_custom
|
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:
|
2016-04-28 05:10:39 +08:00
|
|
|
name: "ceph-osd"
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "yum"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
2016-06-22 22:13:55 +08:00
|
|
|
or ceph_custom
|
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:
|
2016-04-28 05:10:39 +08:00
|
|
|
name: "ceph-osd"
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
2016-06-22 22:13:55 +08:00
|
|
|
or ceph_custom
|
2014-12-18 19:20:17 +08:00
|
|
|
|
2016-05-07 08:37:09 +08:00
|
|
|
- name: install distro or red hat storage ceph mds
|
|
|
|
yum:
|
|
|
|
name: "ceph-mds"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
2016-06-22 22:13:55 +08:00
|
|
|
- mds_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "yum"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
|
|
|
or ceph_custom
|
2016-05-07 08:37:09 +08:00
|
|
|
|
|
|
|
- name: install distro or red hat storage ceph mds
|
|
|
|
dnf:
|
|
|
|
name: "ceph-mds"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
2016-06-22 22:13:55 +08:00
|
|
|
- mds_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
|
|
|
or ceph_custom
|
2016-05-07 08:37:09 +08:00
|
|
|
|
2016-05-11 00:29:27 +08:00
|
|
|
- name: install distro or red hat storage ceph base
|
|
|
|
yum:
|
|
|
|
name: "ceph-base"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
2016-06-22 22:13:55 +08:00
|
|
|
- client_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "yum"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
|
|
|
or ceph_custom
|
2016-05-11 00:29:27 +08:00
|
|
|
|
|
|
|
- name: install distro or red hat storage ceph base
|
|
|
|
dnf:
|
|
|
|
name: "ceph-base"
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
2016-06-22 22:13:55 +08:00
|
|
|
- client_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
|
|
|
- (ceph_stable and ceph_stable_release not in ceph_stable_releases)
|
|
|
|
or ceph_origin == "distro"
|
|
|
|
or ceph_dev
|
|
|
|
or ceph_custom
|
2016-05-11 00:29:27 +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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_test
|
|
|
|
- ansible_pkg_mgr == "yum"
|
2016-02-20 07:39:33 +08:00
|
|
|
|
|
|
|
- name: install ceph-test
|
|
|
|
dnf:
|
|
|
|
name: ceph-test
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_test
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
2016-02-20 07:39:33 +08:00
|
|
|
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_stable_ice
|
|
|
|
- ansible_pkg_mgr == "yum"
|
2016-01-29 02:11:22 +08:00
|
|
|
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_stable_ice
|
|
|
|
- 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-05-09 22:08:33 +08:00
|
|
|
- rgw_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "yum"
|
2016-01-29 02:11:22 +08:00
|
|
|
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- rgw_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "dnf"
|
2016-05-06 02:20:03 +08:00
|
|
|
|
|
|
|
- name: install NFS gateway
|
|
|
|
yum:
|
|
|
|
name: nfs-ganesha-ceph
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "yum"
|
|
|
|
|
|
|
|
- name: install NFS gateway
|
|
|
|
dnf:
|
|
|
|
name: nfs-ganesha-ceph
|
|
|
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
|
|
|
when:
|
|
|
|
- nfs_group_name in group_names
|
|
|
|
- ansible_pkg_mgr == "dnf"
|