]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-11694] Always write admin keyring with mode 0600 300/head
authorTravis Rhoden <trhoden@redhat.com>
Fri, 22 May 2015 14:51:42 +0000 (10:51 -0400)
committerTravis Rhoden <trhoden@redhat.com>
Fri, 22 May 2015 20:38:48 +0000 (16:38 -0400)
Signed-off-by: Travis Rhoden <trhoden@redhat.com>
ceph_deploy/admin.py

index 23276600d86a99ad62b84fe98b7bd1ff27d52a3a..0d7ba8a9dbee79a1f4545d995f720355847356fe 100644 (file)
@@ -36,7 +36,8 @@ def admin(args):
 
             distro.conn.remote_module.write_file(
                 '/etc/ceph/%s.client.admin.keyring' % args.cluster,
-                keyring
+                keyring,
+                0600,
             )
 
             distro.conn.exit()