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 :
2017-08-03 21:30:25 +08:00
msg : "choose an installation origin between repository, distro and local\nValid ceph_origin are: {{ valid_ceph_origins }}"
2015-09-22 00:04:19 +08:00
when :
2017-08-03 21:30:25 +08:00
- ceph_origin not in valid_ceph_origins
2016-02-13 05:32:48 +08:00
tags :
- package-install
2015-09-22 00:04:19 +08:00
2017-08-03 21:30:25 +08:00
- name : make sure a repository was chosen
2015-09-04 00:18:53 +08:00
fail :
2017-08-03 21:30:25 +08:00
msg : "choose a repository installation source: {{ valid_ceph_repository }} or read http://docs.ceph.com/ceph-ansible/master/"
2015-07-04 02:18:41 +08:00
when :
2017-08-03 21:30:25 +08:00
- ceph_origin == 'repository'
- ceph_repository not in valid_ceph_repository
2016-02-13 05:32:48 +08:00
tags :
- package-install
2015-07-04 02:18:41 +08:00
2017-08-03 21:30:25 +08:00
- name : fail if local scenario is enabled on debian
fail :
msg : "'local' installation scenario not supported on Debian systems"
when :
- ansible_os_family == 'Debian'
- ceph_origin == 'local'
2017-07-26 17:54:19 +08:00
- name : make sure ceph_stable_release is set
fail :
2017-08-31 00:53:09 +08:00
msg : "make sure ceph_stable_release ( {{ ceph_stable_release }} ) is set to a release name (e.g: luminous), http://docs.ceph.com/docs/master/release-notes/"
2017-07-26 17:54:19 +08:00
when :
- ceph_stable_release == 'dummy'
2017-08-31 01:33:00 +08:00
- ceph_repository not in ['rhcs', 'dev']
2017-07-26 17:54:19 +08:00
tags :
- package-install
- name : make sure ceph_stable_release is correct
fail :
msg : "wrong release name, see http://docs.ceph.com/docs/master/release-notes/"
when :
- ceph_stable_release not in ceph_release_num
2017-08-03 21:30:25 +08:00
- ceph_origin == 'repository'
2017-08-31 01:37:24 +08:00
- ceph_repository not in ['rhcs', 'dev']
2017-07-26 17:54:19 +08:00
tags :
- package-install
2017-08-03 21:30:25 +08:00
- name : verify that a repository type was chosen for ceph rhcs version
2015-09-04 00:18:53 +08:00
fail :
2017-08-03 21:30:25 +08:00
msg : "choose between 'cdn' or 'iso' installation, e.g: ceph_repository_type: cdn.\nValid ceph_repository_type are: {{ valid_ceph_repository_type }}"
2015-07-04 02:18:41 +08:00
when :
2017-08-03 21:30:25 +08:00
- ceph_origin == 'repository'
- ceph_repository == 'rhcs'
2017-09-26 05:28:27 +08:00
- ceph_repository_type not in valid_ceph_repository_type
2016-02-13 05:32:48 +08:00
tags :
- package-install
2017-06-07 19:26:04 +08:00
2017-08-02 21:13:06 +08:00
- name : verify that ceph_rhcs_cdn_debian_repo url is valid for red hat storage
fail :
msg : "ceph_rhcs_cdn_debian_repo url is invalid, please set your customername:customerpasswd"
when :
2017-08-03 21:30:25 +08:00
- ceph_origin == 'repository'
- ceph_repository == 'rhcs'
- ceph_repository_type == 'cdn'
2017-08-02 21:13:06 +08:00
- ansible_os_family == 'Debian'
- ceph_rhcs_cdn_debian_repo == 'https://customername:customerpasswd@rhcs.download.redhat.com'
tags :
- package-install
2017-07-07 02:59:17 +08:00
- name : make sure monitor_interface or monitor_address is defined
2017-06-07 19:26:04 +08:00
fail :
2017-07-07 02:59:17 +08:00
msg : "you must set monitor_interface or monitor_address"
2017-06-07 19:26:04 +08:00
when :
- monitor_interface == 'interface'
2017-07-07 02:59:17 +08:00
- monitor_address == "0.0.0.0"
- mon_group_name in group_names
2017-08-07 17:23:32 +08:00
- name : make sure radosgw_interface or radosgw_address is defined
fail :
msg : "you must set radosgw_interface or radosgw_address"
when :
- radosgw_interface == 'interface'
- radosgw_address == "0.0.0.0"
- rgw_group_name in group_names