mirror of https://github.com/ceph/ceph-ansible.git
common: move mandatory variables to their respective roles
Signed-off-by: Sébastien Han <seb@redhat.com>pull/1158/head
parent
75cb749570
commit
1de8176bf4
|
@ -31,26 +31,3 @@
|
|||
- 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
|
||||
|
|
|
@ -1,4 +1,14 @@
|
|||
---
|
||||
- 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 cluster_network configured
|
||||
fail:
|
||||
msg: "cluster_network must be configured. Ceph replication network"
|
||||
when: cluster_network == '0.0.0.0/0'
|
||||
|
||||
- name: make sure journal_size configured
|
||||
debug:
|
||||
msg: "WARNING: journal_size is configured to less than 5GB. This is not recommended and can lead to severe issues."
|
||||
|
|
Loading…
Reference in New Issue