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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_origin != 'upstream'
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_origin == 'upstream'
|
|
|
|
- not ceph_stable
|
|
|
|
- not ceph_dev
|
|
|
|
- not ceph_stable_ice
|
|
|
|
- not ceph_stable_rh_storage
|
|
|
|
- not ceph_stable_uca
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- ceph_stable_rh_storage
|
|
|
|
- not ceph_stable_rh_storage_cdn_install
|
|
|
|
- not ceph_stable_rh_storage_iso_install
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- journal_size|int == 0
|
|
|
|
- osd_objectstore != 'bluestore'
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- monitor_interface == 'interface'
|
|
|
|
- monitor_address == '0.0.0.0'
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- cluster_network == '0.0.0.0/0'
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- public_network == '0.0.0.0/0'
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
|
|
|
- not journal_collocation
|
|
|
|
- not raw_multi_journal
|
|
|
|
- not osd_directory
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
2016-06-02 02:31:30 +08:00
|
|
|
- (journal_collocation|default(False) and raw_multi_journal|default(False))
|
|
|
|
or (journal_collocation|default(False) and osd_directory|default(False))
|
|
|
|
or (journal_collocation|default(False) and bluestore|default(False))
|
|
|
|
or (raw_multi_journal|default(False) and osd_directory|default(False))
|
|
|
|
or (raw_multi_journal|default(False) and bluestore|default(False))
|
|
|
|
or (osd_directory|default(False) and bluestore|default(False))
|
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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
|
|
|
- journal_collocation
|
|
|
|
- not osd_auto_discovery
|
|
|
|
- devices is not defined
|
2015-07-04 02:18:41 +08:00
|
|
|
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
|
|
|
- raw_multi_journal
|
|
|
|
- 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:
|
2016-05-09 22:08:33 +08:00
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
|
|
|
- osd_directory
|
|
|
|
- osd_directories is not defined
|