]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
validate: change default value for `radosgw_address`
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 28 Nov 2018 19:53:10 +0000 (20:53 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 28 Nov 2018 22:13:38 +0000 (23:13 +0100)
change default value of `radosgw_address` to keep consistency with
`monitor_address`.
Moreover, `ceph-validate` checks if the value is '0.0.0.0' to determine
if it has to run `check_eth_rgw.yml`.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1600227
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
group_vars/all.yml.sample
group_vars/rhcs.yml.sample
plugins/actions/validate.py
roles/ceph-defaults/defaults/main.yml
roles/ceph-defaults/tasks/set_radosgw_address.yml

index 0e4f91c116c1f485d11c06788e4342ffffee96cf..66d307711ee8c1978f3c3920b71f9dfb0dc3fcab 100644 (file)
@@ -402,7 +402,7 @@ dummy:
 # 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: address
+#radosgw_address: 0.0.0.0
 #radosgw_address_block: subnet
 #radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 # Rados Gateway options
index a3135090a14222d699bb0b233cf4f3c47b7b5dfa..dda71ce94f9f873d4a983f719991b169a6433fba 100644 (file)
@@ -402,7 +402,7 @@ ceph_rhcs_version: 3
 # 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: address
+#radosgw_address: 0.0.0.0
 #radosgw_address_block: subnet
 #radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 # Rados Gateway options
index b5d7d863f1f2dee7ccdb616341b011eff67cd45e..c6d4d78efa79f3c0aef52428a7a4cf58e9fcd9b1 100644 (file)
@@ -187,7 +187,7 @@ def validate_rados_options(value):
     Either radosgw_interface, radosgw_address or radosgw_address_block must
     be defined.
     """
-    radosgw_address_given = notario_store["radosgw_address"] != "address"
+    radosgw_address_given = notario_store["radosgw_address"] != "0.0.0.0"
     radosgw_address_block_given = notario_store["radosgw_address_block"] != "subnet"
     radosgw_interface_given = notario_store["radosgw_interface"] != "interface"
 
index 68967a8393c53744ce70f3551588f29890df01b5..188f6116a22ed03eeab88ae0a084b44ee398904a 100644 (file)
@@ -394,7 +394,7 @@ radosgw_frontend_options: "{{ radosgw_civetweb_options if radosgw_frontend_type
 # 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: address
+radosgw_address: 0.0.0.0
 radosgw_address_block: subnet
 radosgw_keystone_ssl: false # activate this when using keystone PKI keys
 # Rados Gateway options
index 1da7df55c19819da43d2f370cb33f237065e236c..b0dcd03316b82fbf0e1332589ee9886c4a6fc6b5 100644 (file)
@@ -11,7 +11,7 @@
     _radosgw_address: "{{ radosgw_address | ipwrap }}"
   when:
     - radosgw_address is defined
-    - radosgw_address != 'address'
+    - radosgw_address != '0.0.0.0'
 
 - block:
   - name: set_fact _interface
@@ -31,5 +31,5 @@
       - ip_version == 'ipv6'
   when:
     - radosgw_address_block == 'subnet'
-    - radosgw_address == 'address'
+    - radosgw_address == '0.0.0.0'
     - radosgw_interface != 'interface'