From: Alfredo Deza Date: Wed, 29 Jan 2014 19:02:34 +0000 (-0500) Subject: make sure ceph.conf is 0644 X-Git-Tag: v1.3.5~7^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F156%2Fhead;p=ceph-deploy.git make sure ceph.conf is 0644 Signed-off-by: Alfredo Deza --- 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)