+++ /dev/null
----
-- 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'
--- /dev/null
+---
+- name: make sure an installation source was chosen
+ fail: msg="choose an installation source or read https://github.com/ceph/ceph-ansible/wiki"
+ when:
+ not ceph_stable and
+ not ceph_dev and
+ not ceph_stable_ice and
+ not ceph_stable_rh_storage
+
+- 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
+
+- name: make sure a monitor secret is defined
+ fail: msg"monitor_secret must be defined. Go edit group_vars/all or read https://github.com/ceph/ceph-ansible/wiki"
+ when: monitor_secret is not defined
+
+- 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
+ not journal_collocation and
+ not raw_multi_journal and
+ not osd_directory
+
+- name: verify devices have been provided
+ fail: msg="please provide devices to your osd scenario"
+ when:
+ osd_group_name is defined and
+ (journal_collocation or raw_multi_journal) 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
+ raw_multi_journal and
+ raw_journal_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
# Declare devices\r
# All the scenarii inherit from the following device declaration\r
#\r
-devices:\r
- - /dev/sdb\r
- - /dev/sdc\r
+#devices:\r
+# - /dev/sdb\r
+# - /dev/sdc\r
\r
# Device discovery is based on the Ansible fact 'ansible_devices'\r
# which reports all the devices on a system. If chosen all the disks\r
# 2. Progressively add new devices\r
\r
raw_multi_journal: false\r
-raw_journal_devices:\r
- - /dev/sdb\r
- - /dev/sdb\r
- - /dev/sdc\r
- - /dev/sdc\r
+#raw_journal_devices:\r
+# - /dev/sdb\r
+# - /dev/sdb\r
+# - /dev/sdc\r
+# - /dev/sdc\r
\r
\r
# IV. Fourth scenario: use directory instead of disk for OSDs\r
# Use 'true' to enable this scenario\r
\r
osd_directory: false\r
-osd_directories:\r
- - /var/lib/ceph/osd/mydir1\r
- - /var/lib/ceph/osd/mydir2\r
- - /var/lib/ceph/osd/mydir3\r
- - /var/lib/ceph/osd/mydir4\r
+#osd_directories:\r
+# - /var/lib/ceph/osd/mydir1\r
+# - /var/lib/ceph/osd/mydir2\r
\r
\r
##########\r