]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commit
Set owner of directory and keyrings according to owner of /var/lib/ceph. 314/head
authorMilan Broz <mbroz@redhat.com>
Thu, 2 Jul 2015 13:03:31 +0000 (15:03 +0200)
committerMilan Broz <mbroz@redhat.com>
Tue, 14 Jul 2015 20:44:11 +0000 (22:44 +0200)
commit10fcb0e324ce1a38211e93244cb6222637e96cf8
tree833014f094fb7ca108aeaa197c731bf17583235c
parent9c2b1169d9d1052701bbedd027c945107dec5a7b
Set owner of directory and keyrings according to owner of /var/lib/ceph.

If Ceph is running under a separate ceph user, it requires access
to various files under this user.
This patch tries to set owner of these files to the current owner
of base_dir (/var/lib/ceph).

If the ceph directory is owned by root, it expects old installation
and should work with old tools as well (avoids --setuser option).

Signed-off-by: Milan Broz <mbroz@redhat.com>
ceph_deploy/hosts/common.py
ceph_deploy/hosts/remotes.py
ceph_deploy/tests/test_cli_admin.py