]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
make sure ceph.conf is 0644 156/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Wed, 29 Jan 2014 19:02:34 +0000 (14:02 -0500)
committerAlfredo Deza <alfredo.deza@inktank.com>
Wed, 29 Jan 2014 19:02:34 +0000 (14:02 -0500)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/hosts/remotes.py

index f6f9008aa91fd350edd5145a4831b5786c9a7d7b..0da6f0c8696dcac54f3333adbddc91cc5ec561dd 100644 (file)
@@ -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)