]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
defaults: change monitor|radosgw_address default values
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 9 Dec 2019 17:23:15 +0000 (18:23 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 12 Dec 2019 08:58:33 +0000 (09:58 +0100)
To avoid confusion, let's change the default value from `0.0.0.0` to
`x.x.x.x`.
Users might think setting `0.0.0.0` will make the daemon binding on all
interfaces.

Fixes: #4827
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
roles/ceph-defaults/defaults/main.yml
roles/ceph-facts/tasks/set_monitor_address.yml
roles/ceph-facts/tasks/set_radosgw_address.yml
roles/ceph-validate/tasks/main.yml

index c913666cb20de95df649be454ebb8f9227c445a7..f5b0ca17dd5e3d238bf1c5464d573faa7371e15c 100644 (file)
@@ -326,7 +326,7 @@ dummy:
 # 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.
 #monitor_interface: interface
-#monitor_address: 0.0.0.0
+#monitor_address: x.x.x.x
 #monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
index f64892dbf8bf96d15295552f42de1acbe5dbe4c9..92482c86a36ce045c2ade9961233572645da0f41 100644 (file)
@@ -326,7 +326,7 @@ ceph_iscsi_config_dev: false
 # 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.
 #monitor_interface: interface
-#monitor_address: 0.0.0.0
+#monitor_address: x.x.x.x
 #monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 #ip_version: ipv4
index 73b49dd94b029b7d01428c005d1c6c8db67111e0..5fb359d81de0312f0ca41335bf390eb2943679a6 100644 (file)
@@ -318,7 +318,7 @@ rbd_client_admin_socket_path: /var/run/ceph # must be writable by QEMU and allow
 # 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.
 monitor_interface: interface
-monitor_address: 0.0.0.0
+monitor_address: x.x.x.x
 monitor_address_block: subnet
 # set to either ipv4 or ipv6, whichever your network is using
 ip_version: ipv4
@@ -413,7 +413,7 @@ radosgw_thread_pool_size: 512
 # Eg. If you want to specify for each radosgw node which address the radosgw will bind to you can set it in your **inventory host file** by using 'radosgw_address' variable.
 # Preference will go to radosgw_address if both radosgw_address and radosgw_interface are defined.
 radosgw_interface: interface
-radosgw_address: 0.0.0.0
+radosgw_address: x.x.x.x
 radosgw_address_block: subnet
 radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 radosgw_num_instances: 1
index 201880737de9e49f68c7ae1e68b7ff43de6ec8d0..aee025aab8d130aa5f096293929d1231911f4314 100644 (file)
@@ -26,7 +26,7 @@
   when:
     - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
     - hostvars[item]['monitor_address'] is defined
-    - hostvars[item]['monitor_address'] != '0.0.0.0'
+    - hostvars[item]['monitor_address'] != 'x.x.x.x'
 
 - name: set_fact _monitor_address to monitor_interface - ipv4
   set_fact:
@@ -36,7 +36,7 @@
     - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
     - ip_version == 'ipv4'
     - hostvars[item]['monitor_address_block'] | default('subnet')  == 'subnet'
-    - hostvars[item]['monitor_address'] | default('0.0.0.0') == '0.0.0.0'
+    - hostvars[item]['monitor_address'] | default('x.x.x.x') == 'x.x.x.x'
     - hostvars[item]['monitor_interface'] | default('interface') != 'interface'
 
 - name: set_fact _monitor_address to monitor_interface - ipv6
@@ -47,7 +47,7 @@
     - "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
     - ip_version == 'ipv6'
     - hostvars[item]['monitor_address_block'] | default('subnet')  == 'subnet'
-    - hostvars[item]['monitor_address'] | default('0.0.0.0') == '0.0.0.0'
+    - hostvars[item]['monitor_address'] | default('x.x.x.x') == 'x.x.x.x'
     - hostvars[item]['monitor_interface'] | default('interface') != 'interface'
 
 - name: set_fact _current_monitor_address
index 621ed80099a5db7654741628e0a39322917133c5..3b1de111532f692c0e4ef5e489e51e473992dc82 100644 (file)
     _radosgw_address: "{{ radosgw_address | ipwrap }}"
   when:
     - radosgw_address is defined
-    - radosgw_address != '0.0.0.0'
+    - radosgw_address != 'x.x.x.x'
 
 - name: tasks for radosgw interface
   when:
     - radosgw_address_block == 'subnet'
-    - radosgw_address == '0.0.0.0'
+    - radosgw_address == 'x.x.x.x'
     - radosgw_interface != 'interface'
   block:
   - name: set_fact _interface
index 2d81e198c41641dd1f489f411ee3bcf80cbf06fe..0a87e4e18f4e01a61a6de980ad0bde94cb03ab69 100644 (file)
@@ -43,7 +43,7 @@
     msg: "Either monitor_address, monitor_address_block or monitor_interface must be provided"
   when:
     - mon_group_name in group_names
-    - monitor_address == '0.0.0.0'
+    - monitor_address == 'x.x.x.x'
     - monitor_address_block == 'subnet'
     - monitor_interface == 'interface'
 
@@ -52,7 +52,7 @@
     msg: "Either radosgw_address, radosgw_address_block or radosgw_interface must be provided"
   when:
     - rgw_group_name in group_names
-    - radosgw_address == '0.0.0.0'
+    - radosgw_address == 'x.x.x.x'
     - radosgw_address_block == 'subnet'
     - radosgw_interface == 'interface'
 
   when:
     - mon_group_name in group_names
     - monitor_interface != "dummy"
-    - monitor_address == "0.0.0.0"
+    - monitor_address == "x.x.x.x"
     - monitor_address_block == "subnet"
 
 - name: include check_ipaddr_mon.yml
   when:
     - mon_group_name in group_names
     - monitor_interface == "interface"
-    - monitor_address == "0.0.0.0"
+    - monitor_address == "x.x.x.x"
     - monitor_address_block != "subnet"
 
 - name: include check_eth_rgw.yml
   when:
     - rgw_group_name in group_names
     - radosgw_interface != "dummy"
-    - radosgw_address == "0.0.0.0"
+    - radosgw_address == "x.x.x.x"
     - radosgw_address_block == "subnet"
 
 - name: include check_rgw_multisite.yml