def install_ceph_common():
    'Install ceph-common tools.\n\n    :return: None\n    '
    ceph_admin = endpoint_from_flag('ceph-storage.available')
    ceph_context = {'mon_hosts': ceph_admin.mon_hosts(), 'fsid': ceph_admin.fsid(), 'auth_supported': ceph_admin.auth(), 'use_syslog': 'true', 'ceph_public_network': '', 'ceph_cluster_network': '', 'loglevel': 1, 'hostname': socket.gethostname()}
    apt_install(['ceph-common'], fatal=True)
    CEPH_CONF_DIR.mkdir(exist_ok=True, parents=True)
    render('ceph.conf', str(CEPH_CONF), ceph_context)
    try:
        with open(str(CEPH_KEYRING), 'w') as key_file:
            key_file.write('[client.admin]\n\tkey = {}\n'.format(ceph_admin.key()))
    except IOError as err:
        hookenv.log('IOError writing admin.keyring: {}'.format(err))
Install ceph-common tools.

:return: None
def install_ceph_common():
    'Install ceph-common tools.\n\n    :return: None\n    '
    ceph_admin = endpoint_from_flag('ceph-storage.available')
    ceph_context = {'mon_hosts': ceph_admin.mon_hosts(), 'fsid': ceph_admin.fsid(), 'auth_supported': ceph_admin.auth(), 'use_syslog': 'true', 'ceph_public_network': , 'ceph_cluster_network': , 'loglevel': 1, 'hostname': socket.gethostname()}
    apt_install(['ceph-common'], fatal=True)
    CEPH_CONF_DIR.mkdir(exist_ok=True, parents=True)
    render('ceph.conf', str(CEPH_CONF), ceph_context)
    try:
        with open(str(CEPH_KEYRING), 'w') as key_file:
            key_file.write('[client.admin]\n\tkey = {}\n'.format(ceph_admin.key()))
    except IOError as err:
        hookenv.log('IOError writing admin.keyring: {}'.format(err))