]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph_key: support using different keyring
authorGuillaume Abrioux <gabrioux@redhat.com>
Sat, 3 Oct 2020 04:56:06 +0000 (06:56 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 6 Oct 2020 05:38:44 +0000 (07:38 +0200)
commit12e6260266dec04b4b2d25f3508aa7149fd16714
tree92ea36530c349e9637687eae8f4c6fd694478b4d
parenta802fa2810e50e87f61e3a64c27f8826ba6aa250
ceph_key: support using different keyring

Currently the `ceph_key` module doesn't support using a different
keyring than `client.admin`.
This commit adds the possibility to use a different keyring.

Usage:
```
      ceph_key:
        name: "client.rgw.myrgw-node.rgw123"
        cluster: "ceph"
        user: "client.bootstrap-rgw"
        user_key: /var/lib/ceph/bootstrap-rgw/ceph.keyring
        dest: "/var/lib/ceph/radosgw/ceph-rgw.myrgw-node.rgw123/keyring"
        caps:
          osd: 'allow rwx'
          mon: 'allow rw'
          import_key: False
        owner: "ceph"
        group: "ceph"
        mode: "0400"
```

Where:
`user` corresponds to `-n (--name)`
`user_key` corresponds to `-k (--keyring)`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
library/ceph_key.py
tests/library/test_ceph_key.py