2015-07-04 02:18:41 +08:00
|
|
|
---
|
2015-09-22 00:04:19 +08:00
|
|
|
- name: make sure an installation origin was chosen
|
|
|
|
fail:
|
|
|
|
msg: "choose an installation origin"
|
|
|
|
when:
|
|
|
|
ceph_origin != 'upstream' and
|
|
|
|
ceph_origin != 'distro'
|
2016-02-13 05:32:48 +08:00
|
|
|
tags:
|
|
|
|
- package-install
|
2015-09-22 00:04:19 +08:00
|
|
|
|
2015-07-04 02:18:41 +08:00
|
|
|
- name: make sure an installation source was chosen
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
2015-09-22 00:04:19 +08:00
|
|
|
msg: "choose an upstream installation source or read https://github.com/ceph/ceph-ansible/wiki"
|
2015-07-04 02:18:41 +08:00
|
|
|
when:
|
2015-09-22 00:04:19 +08:00
|
|
|
ceph_origin == 'upstream' and
|
2015-07-04 02:18:41 +08:00
|
|
|
not ceph_stable and
|
|
|
|
not ceph_dev and
|
|
|
|
not ceph_stable_ice and
|
|
|
|
not ceph_stable_rh_storage
|
2016-02-13 05:32:48 +08:00
|
|
|
tags:
|
|
|
|
- package-install
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- name: verify that a method was chosen for red hat storage
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "choose between ceph_stable_rh_storage_cdn_install and ceph_stable_rh_storage_iso_install"
|
2015-07-04 02:18:41 +08:00
|
|
|
when:
|
|
|
|
ceph_stable_rh_storage and
|
|
|
|
not ceph_stable_rh_storage_cdn_install and
|
2016-03-08 04:47:09 +08:00
|
|
|
not ceph_stable_rh_storage_iso_install and
|
|
|
|
ceph_origin == "upstream"
|
2016-02-13 05:32:48 +08:00
|
|
|
tags:
|
|
|
|
- package-install
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- name: make sure journal_size configured
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "journal_size must be configured. See http://ceph.com/docs/master/rados/configuration/osd-config-ref/"
|
2016-02-16 05:29:06 +08:00
|
|
|
when:
|
|
|
|
journal_size|int == 0 and
|
2016-03-25 21:26:49 +08:00
|
|
|
osd_objectstore != 'bluestore' and
|
2016-02-16 05:29:06 +08:00
|
|
|
osd_group_name in group_names
|
2015-07-04 02:18:41 +08:00
|
|
|
|
2016-03-22 22:11:12 +08:00
|
|
|
- name: make sure monitor_interface or monitor_address is configured
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
2016-03-22 22:11:12 +08:00
|
|
|
msg: "monitor_interface or monitor_address must be configured. Interface for the monitor to listen on or IP address of that interface"
|
2016-02-16 05:29:06 +08:00
|
|
|
when:
|
|
|
|
monitor_interface == 'interface' and
|
2016-03-22 22:11:12 +08:00
|
|
|
monitor_address == '0.0.0.0' and
|
2016-02-16 05:29:06 +08:00
|
|
|
mon_group_name in group_names
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- name: make sure cluster_network configured
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "cluster_network must be configured. Ceph replication network"
|
2016-02-16 05:29:06 +08:00
|
|
|
when:
|
|
|
|
cluster_network == '0.0.0.0/0' and
|
|
|
|
osd_group_name in group_names
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- name: make sure public_network configured
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "public_network must be configured. Ceph public network"
|
2016-02-16 05:29:06 +08:00
|
|
|
when:
|
|
|
|
public_network == '0.0.0.0/0' and
|
|
|
|
osd_group_name in group_names
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- name: make sure an osd scenario was chosen
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "please choose an osd scenario"
|
2015-07-04 02:18:41 +08:00
|
|
|
when:
|
|
|
|
osd_group_name is defined and
|
2015-08-17 18:20:46 +08:00
|
|
|
osd_group_name in group_names and
|
2015-07-04 02:18:41 +08:00
|
|
|
not journal_collocation and
|
|
|
|
not raw_multi_journal and
|
2016-03-25 21:26:49 +08:00
|
|
|
not osd_directory and
|
|
|
|
not bluestore
|
2015-07-04 02:18:41 +08:00
|
|
|
|
2015-08-01 11:02:05 +08:00
|
|
|
- name: verify only one osd scenario was chosen
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "please select only one osd scenario"
|
2015-08-01 11:02:05 +08:00
|
|
|
when:
|
|
|
|
osd_group_name is defined and
|
2015-08-17 18:20:46 +08:00
|
|
|
osd_group_name in group_names and
|
2015-08-01 11:02:05 +08:00
|
|
|
((journal_collocation and raw_multi_journal) or
|
|
|
|
(journal_collocation and osd_directory) or
|
2016-03-25 21:26:49 +08:00
|
|
|
(raw_multi_journal and osd_directory) or
|
|
|
|
(bluestore and journal_collocation) or
|
|
|
|
(bluestore and raw_multi_journal) or
|
|
|
|
(bluestore and osd_directory))
|
2015-08-01 11:02:05 +08:00
|
|
|
|
2015-07-04 02:18:41 +08:00
|
|
|
- name: verify devices have been provided
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "please provide devices to your osd scenario"
|
2015-07-04 02:18:41 +08:00
|
|
|
when:
|
|
|
|
osd_group_name is defined and
|
2015-08-17 18:20:46 +08:00
|
|
|
osd_group_name in group_names and
|
2015-08-14 22:18:18 +08:00
|
|
|
journal_collocation and
|
2015-09-02 20:19:19 +08:00
|
|
|
not osd_auto_discovery and
|
2015-07-04 02:18:41 +08:00
|
|
|
devices is not defined
|
|
|
|
|
|
|
|
- name: verify journal devices have been provided
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "please provide devices to your osd scenario"
|
2015-07-04 02:18:41 +08:00
|
|
|
when:
|
|
|
|
osd_group_name is defined and
|
2015-08-17 18:20:46 +08:00
|
|
|
osd_group_name in group_names and
|
2015-07-04 02:18:41 +08:00
|
|
|
raw_multi_journal and
|
2015-08-14 22:18:18 +08:00
|
|
|
(raw_journal_devices is not defined or
|
|
|
|
devices is not defined)
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- name: verify directories have been provided
|
2015-09-04 00:18:53 +08:00
|
|
|
fail:
|
|
|
|
msg: "please provide directories to your osd scenario"
|
2015-07-04 02:18:41 +08:00
|
|
|
when:
|
|
|
|
osd_group_name is defined and
|
|
|
|
osd_group_name in group_names and
|
|
|
|
osd_directory and
|
|
|
|
osd_directories is not defined
|