mirror of https://github.com/ceph/ceph-ansible.git
101 lines
2.9 KiB
YAML
101 lines
2.9 KiB
YAML
---
|
|
- name: make sure an installation origin was chosen
|
|
fail:
|
|
msg: "choose an installation origin"
|
|
when:
|
|
ceph_origin != 'upstream' and
|
|
ceph_origin != 'distro'
|
|
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' and
|
|
not ceph_stable and
|
|
not ceph_dev and
|
|
not ceph_stable_ice and
|
|
not ceph_stable_rh_storage
|
|
tags:
|
|
- package-install
|
|
|
|
- name: verify that a method was chosen for red hat storage
|
|
fail:
|
|
msg: "choose between ceph_stable_rh_storage_cdn_install and ceph_stable_rh_storage_iso_install"
|
|
when:
|
|
ceph_stable_rh_storage and
|
|
not ceph_stable_rh_storage_cdn_install and
|
|
not ceph_stable_rh_storage_iso_install
|
|
tags:
|
|
- package-install
|
|
|
|
- name: make sure journal_size configured
|
|
fail:
|
|
msg: "journal_size must be configured. See http://ceph.com/docs/master/rados/configuration/osd-config-ref/"
|
|
when: journal_size|int == 0
|
|
|
|
- name: make sure monitor_interface configured
|
|
fail:
|
|
msg: "monitor_interface must be configured. Interface for the monitor to listen on"
|
|
when: monitor_interface == 'interface'
|
|
|
|
- name: make sure cluster_network configured
|
|
fail:
|
|
msg: "cluster_network must be configured. Ceph replication network"
|
|
when: cluster_network == '0.0.0.0/0'
|
|
|
|
- name: make sure public_network configured
|
|
fail:
|
|
msg: "public_network must be configured. Ceph public network"
|
|
when: public_network == '0.0.0.0/0'
|
|
|
|
- name: make sure an osd scenario was chosen
|
|
fail:
|
|
msg: "please choose an osd scenario"
|
|
when:
|
|
osd_group_name is defined and
|
|
osd_group_name in group_names and
|
|
not journal_collocation and
|
|
not raw_multi_journal and
|
|
not osd_directory
|
|
|
|
- name: verify only one osd scenario was chosen
|
|
fail:
|
|
msg: "please select only one osd scenario"
|
|
when:
|
|
osd_group_name is defined and
|
|
osd_group_name in group_names and
|
|
((journal_collocation and raw_multi_journal) or
|
|
(journal_collocation and osd_directory) or
|
|
(raw_multi_journal and osd_directory))
|
|
|
|
- name: verify devices have been provided
|
|
fail:
|
|
msg: "please provide devices to your osd scenario"
|
|
when:
|
|
osd_group_name is defined and
|
|
osd_group_name in group_names and
|
|
journal_collocation and
|
|
not osd_auto_discovery and
|
|
devices is not defined
|
|
|
|
- name: verify journal devices have been provided
|
|
fail:
|
|
msg: "please provide devices to your osd scenario"
|
|
when:
|
|
osd_group_name is defined and
|
|
osd_group_name in group_names and
|
|
raw_multi_journal and
|
|
(raw_journal_devices is not defined or
|
|
devices is not defined)
|
|
|
|
- name: verify directories have been provided
|
|
fail:
|
|
msg: "please provide directories to your osd scenario"
|
|
when:
|
|
osd_group_name is defined and
|
|
osd_group_name in group_names and
|
|
osd_directory and
|
|
osd_directories is not defined
|