mirror of https://github.com/ceph/ceph-ansible.git
use shortname in keyring path
socket.gethostname may return a FQDN. Problem found in Linode. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>pull/3546/head
parent
312867af56
commit
8cd0308f5f
|
@ -643,7 +643,7 @@ def run_module():
|
||||||
module, list_keys(cluster, user, user_key, container_image))
|
module, list_keys(cluster, user, user_key, container_image))
|
||||||
|
|
||||||
elif state == "fetch_initial_keys":
|
elif state == "fetch_initial_keys":
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname().split('.', 1)[0]
|
||||||
user = "mon."
|
user = "mon."
|
||||||
user_key = os.path.join(
|
user_key = os.path.join(
|
||||||
"/var/lib/ceph/mon/" + cluster + "-" + hostname + "/keyring")
|
"/var/lib/ceph/mon/" + cluster + "-" + hostname + "/keyring")
|
||||||
|
|
Loading…
Reference in New Issue