ceph-ansible/roles/ceph-common/tasks/checks/check_mandatory_vars.yml

57 lines
1.6 KiB
YAML

---
- name: make sure an installation origin was chosen
fail:
msg: "choose an installation origin"
when:
- ceph_origin != 'upstream'
- ceph_origin != 'distro'
- ceph_origin != 'local'
tags:
- package-install
- name: make sure an installation source was chosen
fail:
msg: "choose an upstream installation source or read https://github.com/ceph/ceph-ansible/wiki"
when:
- ceph_origin == 'upstream'
- not ceph_stable
- not ceph_dev
- not ceph_rhcs
- not ceph_stable_uca
tags:
- package-install
- name: verify that a method was chosen for red hat storage
fail:
msg: "choose between ceph_rhcs_cdn_install and ceph_rhcs_iso_install"
when:
- ceph_rhcs
- not ceph_rhcs_cdn_install
- not ceph_rhcs_iso_install
- ceph_origin == "upstream"
tags:
- package-install
- name: make sure monitor_interface or monitor_address or monitor_address_block is configured
fail:
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"
when:
- monitor_interface == 'interface'
- monitor_address == '0.0.0.0'
- not monitor_address_block
- mon_group_name in group_names
- name: make sure cluster_network configured
fail:
msg: "cluster_network must be configured. Ceph replication network"
when:
- cluster_network == '0.0.0.0/0'
- osd_group_name in group_names
- name: make sure public_network configured
fail:
msg: "public_network must be configured. Ceph public network"
when:
- public_network == '0.0.0.0/0'
- osd_group_name in group_names