From b6722d5705729d0328a0093ff4a6f96e3fbd359e Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 29 Jan 2014 14:02:34 -0500 Subject: [PATCH] make sure ceph.conf is 0644 Signed-off-by: Alfredo Deza --- ceph_deploy/hosts/remotes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ceph_deploy/hosts/remotes.py b/ceph_deploy/hosts/remotes.py index f6f9008..0da6f0c 100644 --- a/ceph_deploy/hosts/remotes.py +++ b/ceph_deploy/hosts/remotes.py @@ -68,10 +68,12 @@ def write_conf(cluster, conf, overwrite): tmp_file.write(conf) tmp_file.close() shutil.move(tmp_file.name, path) + os.chmod(path, 0644) return if os.path.exists('/etc/ceph'): with open(path, 'w') as f: f.write(conf) + os.chmod(path, 0644) else: err_msg = '/etc/ceph/ does not exist - could not write config' raise RuntimeError(err_msg) -- 2.47.3