2014-03-04 02:08:51 +08:00
|
|
|
---
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include installs/install_on_redhat.yml
|
|
|
|
include: installs/install_on_redhat.yml
|
2016-05-24 22:10:37 +08:00
|
|
|
when:
|
2017-08-02 21:13:06 +08:00
|
|
|
- ansible_os_family == 'RedHat'
|
2016-05-24 22:10:37 +08:00
|
|
|
tags:
|
|
|
|
- package-install
|
2016-08-24 12:23:47 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
2015-01-07 18:25:34 +08:00
|
|
|
|
2017-10-12 21:55:20 +08:00
|
|
|
- name: include installs/install_on_suse.yml
|
|
|
|
include: installs/install_on_suse.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'Suse'
|
|
|
|
tags:
|
|
|
|
- package-install
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include installs/install_on_debian.yml
|
|
|
|
include: installs/install_on_debian.yml
|
2016-03-09 05:23:32 +08:00
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ansible_os_family == 'Debian'
|
2016-02-04 01:27:16 +08:00
|
|
|
tags:
|
|
|
|
- package-install
|
2016-08-24 12:23:47 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
2015-01-07 18:25:34 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include installs/install_on_clear.yml
|
|
|
|
include: installs/install_on_clear.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'ClearLinux'
|
2016-04-23 03:13:36 +08:00
|
|
|
tags:
|
|
|
|
- package-install
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2017-10-12 21:55:20 +08:00
|
|
|
- name: include ntp debian setup tasks
|
|
|
|
include: "misc/ntp_debian.yml"
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'Debian'
|
|
|
|
- ntp_service_enabled
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
|
|
|
- name: include ntp rpm setup tasks
|
|
|
|
include: "misc/ntp_rpm.yml"
|
2016-06-10 09:32:55 +08:00
|
|
|
when:
|
2017-10-12 21:55:20 +08:00
|
|
|
- ansible_os_family in ['RedHat', 'Suse']
|
2016-06-10 09:32:55 +08:00
|
|
|
- ntp_service_enabled
|
2016-08-24 12:23:47 +08:00
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
2016-06-10 09:32:55 +08:00
|
|
|
|
2017-07-29 05:02:51 +08:00
|
|
|
- name: get ceph version
|
|
|
|
command: ceph --version
|
|
|
|
changed_when: false
|
2017-10-25 22:53:34 +08:00
|
|
|
check_mode: no
|
2017-07-29 05:02:51 +08:00
|
|
|
register: ceph_version
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: set_fact ceph_version
|
|
|
|
set_fact:
|
2017-07-29 05:02:51 +08:00
|
|
|
ceph_version: "{{ ceph_version.stdout.split(' ')[2] }}"
|
|
|
|
|
2017-08-03 23:43:05 +08:00
|
|
|
# override ceph_stable_release for ceph_dev and rhcs installations since ceph_stable_release is not mandatory
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include release-rhcs.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: release-rhcs.yml
|
2017-08-03 21:30:25 +08:00
|
|
|
when:
|
|
|
|
- ceph_repository in ['rhcs', 'dev']
|
2017-08-03 23:43:05 +08:00
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2018-06-04 23:36:32 +08:00
|
|
|
- name: include checks/check_firewall.yml
|
|
|
|
include: checks/check_firewall.yml
|
|
|
|
when:
|
|
|
|
- check_firewall
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
|
|
|
- name: include misc/configure_firewall_rpm.yml
|
|
|
|
include: misc/configure_firewall_rpm.yml
|
|
|
|
when:
|
2018-06-11 20:51:58 +08:00
|
|
|
- configure_firewall
|
2018-06-04 23:36:32 +08:00
|
|
|
- ansible_os_family in ['RedHat', 'Suse']
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include facts_mon_fsid.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: facts_mon_fsid.yml
|
2017-07-29 05:02:51 +08:00
|
|
|
run_once: true
|
|
|
|
when:
|
|
|
|
- cephx
|
|
|
|
- mon_group_name in group_names
|
2018-08-22 02:50:31 +08:00
|
|
|
- not monitor_keyring_conf.stat.exists
|
|
|
|
- ceph_current_status.fsid is defined
|
2017-07-29 05:02:51 +08:00
|
|
|
|
2017-09-15 06:48:53 +08:00
|
|
|
- name: include create_rbd_client_dir.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: create_rbd_client_dir.yml
|
2017-09-15 06:48:53 +08:00
|
|
|
|
|
|
|
- name: include configure_cluster_name.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: configure_cluster_name.yml
|
2017-10-23 21:57:24 +08:00
|
|
|
|
|
|
|
- name: include configure_memory_allocator.yml
|
2018-08-21 22:23:35 +08:00
|
|
|
include_tasks: configure_memory_allocator.yml
|
2017-10-23 21:57:24 +08:00
|
|
|
when:
|
|
|
|
- (ceph_tcmalloc_max_total_thread_cache | int) > 0
|
|
|
|
- osd_objectstore == 'filestore'
|
|
|
|
- (ceph_origin == 'repository' or ceph_origin == 'distro')
|