2018-04-26 03:57:27 +08:00
|
|
|
---
|
|
|
|
- name: validate provided configuration
|
|
|
|
validate:
|
2018-05-01 00:04:42 +08:00
|
|
|
mode: strict
|
2018-04-26 03:59:54 +08:00
|
|
|
|
2018-08-09 17:23:07 +08:00
|
|
|
- name: warning deprecation for fqdn configuration
|
|
|
|
fail:
|
|
|
|
msg: "fqdn configuration is not supported anymore. Use 'use_fqdn_yes_i_am_sure: true' if you really want to use it. See release notes for more details"
|
|
|
|
when:
|
|
|
|
- mon_use_fqdn or mds_use_fqdn
|
|
|
|
- not use_fqdn_yes_i_am_sure
|
|
|
|
|
2018-04-27 00:15:02 +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'
|
|
|
|
|
|
|
|
- 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:
|
|
|
|
- ceph_origin == 'repository'
|
|
|
|
- ceph_repository == 'rhcs'
|
|
|
|
- ceph_repository_type == 'cdn'
|
|
|
|
- ansible_os_family == 'Debian'
|
|
|
|
- ceph_rhcs_cdn_debian_repo == 'https://customername:customerpasswd@rhcs.download.redhat.com'
|
|
|
|
- ceph_repository not in ['rhcs', 'dev', 'obs']
|
|
|
|
|
2018-04-26 23:09:47 +08:00
|
|
|
- name: make sure journal_size configured
|
|
|
|
debug:
|
|
|
|
msg: "WARNING: journal_size is configured to {{ journal_size }}, which is less than 5GB. This is not recommended and can lead to severe issues."
|
|
|
|
when:
|
|
|
|
- journal_size|int < 5120
|
|
|
|
- osd_objectstore == 'filestore'
|
|
|
|
- osd_group_name in group_names
|
|
|
|
|
|
|
|
- name: check if osd_scenario lvm is supported by the selected ceph version
|
|
|
|
fail:
|
|
|
|
msg: "osd_scenario lvm is not supported by the selected Ceph version, use Luminous or newer."
|
|
|
|
when:
|
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
2018-05-21 23:11:22 +08:00
|
|
|
- ceph_repository not in ['rhcs', 'dev']
|
2018-04-26 23:09:47 +08:00
|
|
|
- not containerized_deployment
|
|
|
|
- osd_scenario == "lvm"
|
|
|
|
- ceph_release_num[ceph_release] < ceph_release_num.luminous
|
|
|
|
|
|
|
|
- name: check if bluestore is supported by the selected ceph version
|
|
|
|
fail:
|
|
|
|
msg: "bluestore is not supported by the selected Ceph version, use Luminous or above."
|
|
|
|
when:
|
|
|
|
- osd_group_name is defined
|
|
|
|
- osd_group_name in group_names
|
2018-05-21 23:11:22 +08:00
|
|
|
- ceph_repository not in ['rhcs', 'dev']
|
2018-04-26 23:09:47 +08:00
|
|
|
- osd_objectstore == 'bluestore'
|
|
|
|
- ceph_release_num[ceph_release] < ceph_release_num.luminous
|
2018-05-18 02:47:27 +08:00
|
|
|
|
|
|
|
- name: include check_system.yml
|
|
|
|
include: check_system.yml
|
2018-07-18 21:59:22 +08:00
|
|
|
|
|
|
|
- name: include check_devices.yml
|
2018-07-18 23:46:27 +08:00
|
|
|
include: check_devices.yml
|
|
|
|
when:
|
|
|
|
- osd_group_name in group_names
|
|
|
|
- not osd_auto_discovery | default(False)
|
2018-08-04 00:15:58 +08:00
|
|
|
- osd_scenario != "lvm" and devices is not defined
|
2018-07-23 22:02:43 +08:00
|
|
|
|
|
|
|
- name: include check_eth_mon.yml
|
|
|
|
include: check_eth_mon.yml
|
|
|
|
when:
|
|
|
|
- mon_group_name in group_names
|
|
|
|
- monitor_interface != "dummy"
|
|
|
|
- monitor_address == "0.0.0.0"
|
|
|
|
- monitor_address_block == "subnet"
|
|
|
|
|
|
|
|
- name: include check_eth_rgw.yml
|
|
|
|
include: check_eth_rgw.yml
|
|
|
|
when:
|
|
|
|
- rgw_group_name in group_names
|
|
|
|
- radosgw_interface != "dummy"
|
|
|
|
- radosgw_address == "0.0.0.0"
|
2018-08-04 00:15:58 +08:00
|
|
|
- radosgw_address_block == "subnet"
|