]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Docker-common: Add missing variables declaration
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 4 Jul 2017 14:43:58 +0000 (16:43 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 4 Jul 2017 15:50:23 +0000 (17:50 +0200)
Some variables are missing from ceph-docker-common role since the
include of check_mandatory_vars.yml has been re-added in the ceph-mon
role.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/all.yml.sample
roles/ceph-common/defaults/main.yml
roles/ceph-docker-common/defaults/main.yml
roles/ceph-mon/tasks/check_mandatory_vars.yml

index e7822d167780ce645c4fb8eb31e4ae5ace15ed29..8f5dafb6c62ca2ef3f410178a039c6c535c975b9 100644 (file)
@@ -247,12 +247,14 @@ dummy:
 
 ## Monitor options
 #
-# You must define monitor_interface.
-# You can also specify for each monitor which address the monitor will bind to in your **inventory host file** by using 'monitor_address' variable.
-# Preference will go to monitor_address if both are defined.
+# You must define either monitor_interface, monitor_address or monitor_address_block.
+# These variables must be defined at least in all.yml and overrided if needed (inventory host file or group_vars/*.yml).
+# Eg. If you want to specify for each monitor which address the monitor will bind to you can set it in your **inventory host file** by using 'monitor_address' variable.
+# Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
 # To use an IPv6 address, use the monitor_address setting instead (and set ip_version to ipv6)
 #monitor_interface: interface
 #monitor_address: 0.0.0.0
+#monitor_address_block: []
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
 #mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
@@ -421,6 +423,13 @@ dummy:
 
 #ceph_conf_key_directory: /etc/ceph
 
+###########
+# Network #
+###########
+#monitor_interface: 'interface'
+#monitor_address: '0.0.0.0'
+#monitor_address_block: []
+
 ############
 # KV store #
 ############
index f12ab632b92d9bf58bbbb5d24292a0bb508afb36..4cf29884096d60cf7382bdaf3e0b9666801fdbc1 100644 (file)
@@ -246,6 +246,7 @@ rbd_client_admin_socket_path: /var/run/ceph # must be writable by QEMU and allow
 # To use an IPv6 address, use the monitor_address setting instead (and set ip_version to ipv6)
 monitor_interface: interface
 monitor_address: 0.0.0.0
+monitor_address_block: []
 # set to either ipv4 or ipv6, whichever your network is using
 ip_version: ipv4
 mon_use_fqdn: false # if set to true, the MON name used will be the fqdn in the ceph.conf
index e2ea558036af65b3c764ddc9bd20afffe27428ad..39599a2ba991abf614f38627e9e181024e2f2ba7 100644 (file)
@@ -16,6 +16,13 @@ bootstrap_dirs_group: "64045"
 
 ceph_conf_key_directory: /etc/ceph
 
+###########
+# Network #
+###########
+monitor_interface: 'interface'
+monitor_address: '0.0.0.0'
+monitor_address_block: []
+
 ############
 # KV store #
 ############
index 9707c149ad8f0b7d0214d5ff89266383eaaefbc7..cb0b950705851b13ab7037cc75f9723c3cafc082 100644 (file)
@@ -5,4 +5,4 @@
   when:
     - monitor_interface == 'interface'
     - monitor_address == '0.0.0.0'
-    - not monitor_address_block
+    - monitor_address_block | length == 0