2014-03-04 02:08:51 +08:00
|
|
|
---
|
2015-07-24 02:01:43 +08:00
|
|
|
- include: ./checks/check_system.yml
|
|
|
|
- include: ./checks/check_mandatory_vars.yml
|
2015-07-04 02:18:41 +08:00
|
|
|
|
2016-01-08 23:36:31 +08:00
|
|
|
- include: ./checks/check_firewall.yml
|
2016-06-06 20:08:53 +08:00
|
|
|
when: check_firewall
|
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-01-08 23:36:31 +08:00
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- include: ./misc/system_tuning.yml
|
2015-07-01 00:13:03 +08:00
|
|
|
when: osd_group_name in group_names
|
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
|
2014-09-05 03:14:11 +08:00
|
|
|
|
2016-12-20 20:47:44 +08:00
|
|
|
- include: ./pre_requisites/prerequisite_rhcs_iso_install.yml
|
2015-07-03 22:56:34 +08:00
|
|
|
when:
|
2016-08-12 23:28:03 +08:00
|
|
|
- ceph_rhcs
|
|
|
|
- ceph_rhcs_iso_install
|
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-07-03 00:23:11 +08:00
|
|
|
|
2016-12-20 20:47:44 +08:00
|
|
|
- include: ./pre_requisites/prerequisite_rhcs_cdn_install.yml
|
2015-07-03 22:56:34 +08:00
|
|
|
when:
|
2016-08-12 23:28:03 +08:00
|
|
|
- ceph_rhcs
|
|
|
|
- ceph_rhcs_cdn_install
|
2016-05-09 22:08:33 +08:00
|
|
|
- ansible_os_family == "RedHat"
|
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-07-01 21:58:38 +08:00
|
|
|
|
2017-08-02 21:13:06 +08:00
|
|
|
- include: ./pre_requisites/prerequisite_rhcs_cdn_install_debian.yml
|
2016-07-16 01:06:19 +08:00
|
|
|
when:
|
2017-08-02 21:13:06 +08:00
|
|
|
- ceph_rhcs
|
|
|
|
- ceph_rhcs_cdn_install
|
|
|
|
- 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
|
2016-05-24 22:10:37 +08:00
|
|
|
|
2017-08-02 21:13:06 +08:00
|
|
|
- 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'
|
|
|
|
- not ceph_rhcs
|
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
|
|
|
|
2015-07-24 02:01:43 +08:00
|
|
|
- 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-08-12 23:28:03 +08:00
|
|
|
- not ceph_rhcs
|
2016-03-09 05:23:32 +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
|
2016-03-09 05:23:32 +08:00
|
|
|
|
2017-08-02 21:13:06 +08:00
|
|
|
- include: ./installs/install_rh_storage_on_redhat.yml
|
|
|
|
when:
|
|
|
|
- ceph_rhcs
|
|
|
|
- ansible_distribution == "RedHat"
|
|
|
|
tags:
|
|
|
|
- package-install
|
|
|
|
# Hard code this so we will skip the entire file instead of individual tasks (Default isn't Consistent)
|
|
|
|
static: False
|
|
|
|
|
2016-03-09 05:23:32 +08:00
|
|
|
- include: ./installs/install_rh_storage_on_debian.yml
|
|
|
|
when:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ansible_os_family == 'Debian'
|
2016-08-12 23:28:03 +08:00
|
|
|
- ceph_rhcs
|
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
|
|
|
|
2016-04-23 03:13:36 +08:00
|
|
|
- include: ./installs/install_on_clear.yml
|
|
|
|
when: ansible_os_family == 'ClearLinux'
|
|
|
|
tags:
|
|
|
|
- package-install
|
|
|
|
# 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
|
|
|
- include: ./misc/ntp_redhat.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'RedHat'
|
|
|
|
- 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
|
|
|
|
|
|
|
- include: ./misc/ntp_debian.yml
|
|
|
|
when:
|
|
|
|
- ansible_os_family == 'Debian'
|
|
|
|
- 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
|
|
|
|
always_run: yes
|
|
|
|
register: ceph_version
|
|
|
|
|
|
|
|
- set_fact:
|
|
|
|
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
|
|
|
|
- include: ./release-rhcs.yml
|
|
|
|
when: (ceph_rhcs or ceph_dev)
|
|
|
|
tags:
|
|
|
|
- always
|
|
|
|
|
2017-07-29 05:02:51 +08:00
|
|
|
- include: facts_mon_fsid.yml
|
|
|
|
run_once: true
|
|
|
|
when:
|
|
|
|
- cephx
|
|
|
|
- not monitor_keyring_conf.stat.exists
|
|
|
|
- ceph_current_fsid.rc == 0
|
|
|
|
- mon_group_name in group_names
|
|
|
|
|
2017-01-30 18:05:01 +08:00
|
|
|
- include: create_ceph_initial_dirs.yml
|
2016-12-09 21:51:35 +08:00
|
|
|
- include: generate_ceph_conf.yml
|
|
|
|
- include: create_rbd_client_dir.yml
|
|
|
|
- include: configure_cluster_name.yml
|