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-06-06 22:22:20 +08:00
- ceph_origin != 'local'
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
2016-08-12 23:28:55 +08:00
- not ceph_rhcs
2016-05-09 22:08:33 +08:00
- 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 :
2016-08-12 23:28:55 +08:00
msg : "choose between ceph_rhcs_cdn_install and ceph_rhcs_iso_install"
2015-07-04 02:18:41 +08:00
when :
2016-08-12 23:28:55 +08:00
- ceph_rhcs
- not ceph_rhcs_cdn_install
- not ceph_rhcs_iso_install
2016-05-09 22:08:33 +08:00
- 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
2016-07-26 00:12:31 +08:00
debug :
msg : "WARNING: journal_size is configured to less than 5GB. This is not recommended and can lead to severe issues."
2016-02-16 05:29:06 +08:00
when :
2016-07-26 00:12:31 +08:00
- journal_size|int < 5120
2016-05-09 22:08:33 +08:00
- osd_objectstore != 'bluestore'
- osd_group_name in group_names
2015-07-04 02:18:41 +08:00
2016-09-20 05:35:41 +08:00
- name : make sure monitor_interface or monitor_address or monitor_address_block is configured
2015-09-04 00:18:53 +08:00
fail :
2016-09-20 05:35:41 +08:00
msg : "Either monitor_interface, monitor_address, or monitor_address_block 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'
2016-09-20 05:35:41 +08:00
- not monitor_address_block
2016-05-09 22:08:33 +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 :
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
2016-08-10 16:34:23 +08:00
- not dmcrypt_journal_collocation
2016-07-19 23:55:57 +08:00
- not dmcrypt_dedicated_journal
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 22:45:00 +08:00
- (journal_collocation and raw_multi_journal)
or (journal_collocation and osd_directory)
or (journal_collocation and bluestore)
or (raw_multi_journal and osd_directory)
or (raw_multi_journal and bluestore)
or (osd_directory and bluestore)
2016-08-10 16:34:23 +08:00
or (dmcrypt_journal_collocation and journal_collocation)
or (dmcrypt_journal_collocation and raw_multi_journal)
or (dmcrypt_journal_collocation and osd_directory)
or (dmcrypt_journal_collocation and bluestore)
2016-07-19 23:55:57 +08:00
or (dmcrypt_dedicated_journal and journal_collocation)
or (dmcrypt_dedicated_journal and raw_multi_journal)
or (dmcrypt_dedicated_journal and osd_directory)
or (dmcrypt_dedicated_journal and bluestore)
2016-08-10 16:34:23 +08:00
or (dmcrypt_dedicated_journal and dmcrypt_journal_collocation)
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