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

74 lines
2.1 KiB
YAML
Raw Normal View History

---
- 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
2015-09-04 00:18:53 +08:00
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
- not ceph_custom
tags:
- package-install
- name: make sure ceph_stable_release is set
fail:
msg: "make sure ceph_stable_release is set to a release name (e.g: luminous), http://docs.ceph.com/docs/master/release-notes/"
when:
- ceph_stable_release == 'dummy'
- ceph_origin == 'upstream'
- ceph_stable
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
- ceph_origin == 'upstream'
- ceph_stable
tags:
- package-install
- name: verify that a method was chosen for red hat storage
2015-09-04 00:18:53 +08:00
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 != 'distro'
tags:
- package-install
- 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_rhcs
- ceph_rhcs_cdn_install
- ansible_os_family == 'Debian'
- ceph_rhcs_cdn_debian_repo == 'https://customername:customerpasswd@rhcs.download.redhat.com'
tags:
- package-install
- name: make sure monitor_interface or monitor_address is defined
fail:
msg: "you must set monitor_interface or monitor_address"
when:
- monitor_interface == 'interface'
- monitor_address == "0.0.0.0"
- mon_group_name in group_names