distrax.utils.ceph.create_keyring#

distrax.utils.ceph.create_keyring(folder, name, permissions)[source]#

Creates a Ceph Keyring file and writes the keyring with the permissions passed.

Parameters:
  • folder (str) – folder to place keyring

  • name (str) – Name of the keyring

  • permissions (Dict[str, str]) – arguments for the keyring i.e {“caps mon”: “allow *”}

Return type:

None

Examples

>>> import distrax.utils.ceph as ceph
>>> mon_keyring = ceph.create_keyring("ceph", "mon", {"caps mon": "allow *"})