2016-05-11 00:29:27 +08:00
|
|
|
---
|
|
|
|
###########
|
|
|
|
# GENERAL #
|
|
|
|
###########
|
|
|
|
|
2017-09-02 06:52:55 +08:00
|
|
|
copy_admin_key: false
|
2016-05-11 00:29:27 +08:00
|
|
|
|
|
|
|
user_config: false
|
|
|
|
pools:
|
2016-12-05 21:21:54 +08:00
|
|
|
- { name: test, pgs: "{{ ceph_conf_overrides.global.osd_pool_default_pg_num }}" }
|
|
|
|
- { name: test2, pgs: "{{ ceph_conf_overrides.global.osd_pool_default_pg_num }}" }
|
2016-05-11 00:29:27 +08:00
|
|
|
|
2017-07-13 23:39:35 +08:00
|
|
|
# Can add `mds_cap` attribute to override the default value which is '' for mds capabilities.
|
2017-07-20 06:20:18 +08:00
|
|
|
# To have have ansible setfacl the generated key for $user, set the acls var like so:
|
|
|
|
# acls: ["u:$user:r--"]
|
2017-12-12 18:25:26 +08:00
|
|
|
#
|
|
|
|
# Generate a keyring using ceph-authtool CLI or python.
|
|
|
|
# Eg:
|
|
|
|
# $ ceph-authtool --gen-print-key
|
2017-12-12 18:28:36 +08:00
|
|
|
# or
|
2017-12-12 18:25:26 +08:00
|
|
|
# $ python2 -c "import os ; import struct ; import time; import base64 ; key = os.urandom(16) ; header = struct.pack('<hiih',1,int(time.time()),0,len(key)) ; print base64.b64encode(header + key)"
|
2016-05-11 00:29:27 +08:00
|
|
|
keys:
|
2017-12-12 18:25:26 +08:00
|
|
|
- { name: client.test, key: "ADD-KEYRING-HERE==", mon_cap: "allow r", osd_cap: "allow class-read object_prefix rbd_children, allow rwx pool=test", mode: "0600", acls: [] }
|
|
|
|
- { name: client.test2, key: "ADD-KEYRING-HERE==", mon_cap: "allow r", osd_cap: "allow class-read object_prefix rbd_children, allow rwx pool=test2", mode: "0600", acls: [] }
|