mirror of https://github.com/ceph/ceph-ansible.git
defaults: change monitor|radosgw_address default values
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>
(cherry picked from commit fc02fc98eb
)
pull/4933/head
parent
9ed540da7e
commit
532abbb9b2
|
@ -324,7 +324,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.
|
# 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.
|
# Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
|
||||||
#monitor_interface: interface
|
#monitor_interface: interface
|
||||||
#monitor_address: 0.0.0.0
|
#monitor_address: x.x.x.x
|
||||||
#monitor_address_block: subnet
|
#monitor_address_block: subnet
|
||||||
# set to either ipv4 or ipv6, whichever your network is using
|
# set to either ipv4 or ipv6, whichever your network is using
|
||||||
#ip_version: ipv4
|
#ip_version: ipv4
|
||||||
|
|
|
@ -324,7 +324,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.
|
# 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.
|
# Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
|
||||||
#monitor_interface: interface
|
#monitor_interface: interface
|
||||||
#monitor_address: 0.0.0.0
|
#monitor_address: x.x.x.x
|
||||||
#monitor_address_block: subnet
|
#monitor_address_block: subnet
|
||||||
# set to either ipv4 or ipv6, whichever your network is using
|
# set to either ipv4 or ipv6, whichever your network is using
|
||||||
#ip_version: ipv4
|
#ip_version: ipv4
|
||||||
|
|
|
@ -316,7 +316,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.
|
# 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.
|
# Preference will go to monitor_address if both monitor_address and monitor_interface are defined.
|
||||||
monitor_interface: interface
|
monitor_interface: interface
|
||||||
monitor_address: 0.0.0.0
|
monitor_address: x.x.x.x
|
||||||
monitor_address_block: subnet
|
monitor_address_block: subnet
|
||||||
# set to either ipv4 or ipv6, whichever your network is using
|
# set to either ipv4 or ipv6, whichever your network is using
|
||||||
ip_version: ipv4
|
ip_version: ipv4
|
||||||
|
@ -411,7 +411,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.
|
# 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.
|
# Preference will go to radosgw_address if both radosgw_address and radosgw_interface are defined.
|
||||||
radosgw_interface: interface
|
radosgw_interface: interface
|
||||||
radosgw_address: 0.0.0.0
|
radosgw_address: x.x.x.x
|
||||||
radosgw_address_block: subnet
|
radosgw_address_block: subnet
|
||||||
radosgw_keystone_ssl: false # activate this when using keystone PKI keys
|
radosgw_keystone_ssl: false # activate this when using keystone PKI keys
|
||||||
radosgw_num_instances: 1
|
radosgw_num_instances: 1
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
when:
|
when:
|
||||||
- "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
|
- "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
|
||||||
- hostvars[item]['monitor_address'] is defined
|
- 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
|
- name: set_fact _monitor_address to monitor_interface - ipv4
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
- "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
|
- "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
|
||||||
- ip_version == 'ipv4'
|
- ip_version == 'ipv4'
|
||||||
- hostvars[item]['monitor_address_block'] | default('subnet') == 'subnet'
|
- 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'
|
- hostvars[item]['monitor_interface'] | default('interface') != 'interface'
|
||||||
|
|
||||||
- name: set_fact _monitor_address to monitor_interface - ipv6
|
- 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"
|
- "item not in _monitor_addresses | default([]) | selectattr('name', 'defined') | map(attribute='name') | list"
|
||||||
- ip_version == 'ipv6'
|
- ip_version == 'ipv6'
|
||||||
- hostvars[item]['monitor_address_block'] | default('subnet') == 'subnet'
|
- 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'
|
- hostvars[item]['monitor_interface'] | default('interface') != 'interface'
|
||||||
|
|
||||||
- name: set_fact _current_monitor_address
|
- name: set_fact _current_monitor_address
|
||||||
|
|
|
@ -20,12 +20,12 @@
|
||||||
_radosgw_address: "{{ radosgw_address | ipwrap }}"
|
_radosgw_address: "{{ radosgw_address | ipwrap }}"
|
||||||
when:
|
when:
|
||||||
- radosgw_address is defined
|
- radosgw_address is defined
|
||||||
- radosgw_address != '0.0.0.0'
|
- radosgw_address != 'x.x.x.x'
|
||||||
|
|
||||||
- name: tasks for radosgw interface
|
- name: tasks for radosgw interface
|
||||||
when:
|
when:
|
||||||
- radosgw_address_block == 'subnet'
|
- radosgw_address_block == 'subnet'
|
||||||
- radosgw_address == '0.0.0.0'
|
- radosgw_address == 'x.x.x.x'
|
||||||
- radosgw_interface != 'interface'
|
- radosgw_interface != 'interface'
|
||||||
block:
|
block:
|
||||||
- name: set_fact _interface
|
- name: set_fact _interface
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
msg: "Either monitor_address, monitor_address_block or monitor_interface must be provided"
|
msg: "Either monitor_address, monitor_address_block or monitor_interface must be provided"
|
||||||
when:
|
when:
|
||||||
- mon_group_name in group_names
|
- mon_group_name in group_names
|
||||||
- monitor_address == '0.0.0.0'
|
- monitor_address == 'x.x.x.x'
|
||||||
- monitor_address_block == 'subnet'
|
- monitor_address_block == 'subnet'
|
||||||
- monitor_interface == 'interface'
|
- monitor_interface == 'interface'
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
msg: "Either radosgw_address, radosgw_address_block or radosgw_interface must be provided"
|
msg: "Either radosgw_address, radosgw_address_block or radosgw_interface must be provided"
|
||||||
when:
|
when:
|
||||||
- rgw_group_name in group_names
|
- rgw_group_name in group_names
|
||||||
- radosgw_address == '0.0.0.0'
|
- radosgw_address == 'x.x.x.x'
|
||||||
- radosgw_address_block == 'subnet'
|
- radosgw_address_block == 'subnet'
|
||||||
- radosgw_interface == 'interface'
|
- radosgw_interface == 'interface'
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
when:
|
when:
|
||||||
- mon_group_name in group_names
|
- mon_group_name in group_names
|
||||||
- monitor_interface != "dummy"
|
- monitor_interface != "dummy"
|
||||||
- monitor_address == "0.0.0.0"
|
- monitor_address == "x.x.x.x"
|
||||||
- monitor_address_block == "subnet"
|
- monitor_address_block == "subnet"
|
||||||
|
|
||||||
- name: include check_ipaddr_mon.yml
|
- name: include check_ipaddr_mon.yml
|
||||||
|
@ -157,7 +157,7 @@
|
||||||
when:
|
when:
|
||||||
- mon_group_name in group_names
|
- mon_group_name in group_names
|
||||||
- monitor_interface == "interface"
|
- monitor_interface == "interface"
|
||||||
- monitor_address == "0.0.0.0"
|
- monitor_address == "x.x.x.x"
|
||||||
- monitor_address_block != "subnet"
|
- monitor_address_block != "subnet"
|
||||||
|
|
||||||
- name: include check_eth_rgw.yml
|
- name: include check_eth_rgw.yml
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
when:
|
when:
|
||||||
- rgw_group_name in group_names
|
- rgw_group_name in group_names
|
||||||
- radosgw_interface != "dummy"
|
- radosgw_interface != "dummy"
|
||||||
- radosgw_address == "0.0.0.0"
|
- radosgw_address == "x.x.x.x"
|
||||||
- radosgw_address_block == "subnet"
|
- radosgw_address_block == "subnet"
|
||||||
|
|
||||||
- name: include check_rgw_multisite.yml
|
- name: include check_rgw_multisite.yml
|
||||||
|
|
Loading…
Reference in New Issue