fixed ceph.conf newline issue and get_host_ip()
This commit is contained in:
parent
720bfb06e9
commit
de145be2dd
@ -71,10 +71,10 @@ def get_unit_hostname():
|
||||
|
||||
@cached
|
||||
def get_host_ip(hostname=None):
|
||||
hostname = hostname or unit_get('private-address')
|
||||
if config('prefer-ipv6'):
|
||||
return hostname or get_ipv6_addr()[0]
|
||||
|
||||
hostname = hostname or unit_get('private-address')
|
||||
try:
|
||||
# Test to see if already an IPv4 address
|
||||
socket.inet_aton(hostname)
|
||||
|
@ -31,4 +31,4 @@ keyring = /var/lib/ceph/mds/$cluster-$id/keyring
|
||||
[osd]
|
||||
keyring = /var/lib/ceph/osd/$cluster-$id/keyring
|
||||
osd journal size = {{ osd_journal_size }}
|
||||
filestore xattr use omap = true
|
||||
filestore xattr use omap = true
|
||||
|
Loading…
Reference in New Issue
Block a user