Set host_ip for ipv4.

This commit is contained in:
Hui Xiang 2014-09-22 09:56:47 +08:00
parent a6ac97ae7d
commit 476f31bc62
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ def install():
def emit_cephconf():
if config('prefer-ipv6'):
host_ip = '%s' % get_ipv6_addr()[0]
else:
host_ip = unit_get('private-address')
cephcontext = {
'auth_supported': config('auth-supported'),