Differentiate AIO /etc/hosts entries for localhost and aio1
This patch ensures that localhost resolves to a loopback address, and aio1 resolves to the address assigned to br-mgmt. Without this change rabbitmq is unable to function properly when it is bound to the mgmt ip rather than 0.0.0.0 as there is a mismatch between the hostname 'aio1' and the /etc/hosts entry for that ip. The rabbitmq role corrects /etc/hosts entries for 127.0.0.1, but not 127.0.1.1 so the extra entry is removed. The aio1 hosts entry is changed to resolve to 172.29.236.100. Change-Id: I194fcab8b84723cff76ec09315e264ec7840ea64
This commit is contained in:
parent
04338b31b6
commit
40d82db45b
@ -16,8 +16,8 @@
|
||||
- name: Ensure the hosts file is templated appropriately
|
||||
copy:
|
||||
content: |
|
||||
127.0.0.1 localhost aio1
|
||||
127.0.1.1 aio1.openstack.local aio1
|
||||
127.0.0.1 localhost
|
||||
172.29.236.100 aio1.openstack.local aio1
|
||||
|
||||
# The following lines are desirable for IPv6 capable hosts
|
||||
::1 ip6-localhost ip6-loopback
|
||||
|
Loading…
x
Reference in New Issue
Block a user