Set host_ip for ipv4.
This commit is contained in:
parent
a6ac97ae7d
commit
476f31bc62
|
@ -77,6 +77,8 @@ def install():
|
||||||
def emit_cephconf():
|
def emit_cephconf():
|
||||||
if config('prefer-ipv6'):
|
if config('prefer-ipv6'):
|
||||||
host_ip = '%s' % get_ipv6_addr()[0]
|
host_ip = '%s' % get_ipv6_addr()[0]
|
||||||
|
else:
|
||||||
|
host_ip = unit_get('private-address')
|
||||||
|
|
||||||
cephcontext = {
|
cephcontext = {
|
||||||
'auth_supported': config('auth-supported'),
|
'auth_supported': config('auth-supported'),
|
||||||
|
|
Loading…
Reference in New Issue