Puppet Class: ceph::admin

Defined in:
modules/ceph/manifests/admin.pp

Overview

Class: ceph::admin

This class manages the Ceph admin client.

Parameters

- $data_dir
    Path to the base Ceph data directory
- $admin_keyring
    File name and path to install the admin keyring
- $admin_keydata
    base64 encoded key used to create the keyring

Parameters:

  • admin_keyring (Stdlib::AbsolutePath)
  • data_dir (Stdlib::Unixpath)
  • admin_keydata (String)


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'modules/ceph/manifests/admin.pp', line 12

class ceph::admin(
    Stdlib::AbsolutePath $admin_keyring,
    Stdlib::Unixpath     $data_dir,
    String               $admin_keydata,
) {
    Class['ceph::config'] -> Class['ceph::admin']

    package { 'ceph':
        ensure => present,
    }

    ceph::keyring { 'client.admin':
        cap_mds => 'allow *',
        cap_mgr => 'allow *',
        cap_mon => 'allow *',
        cap_osd => 'allow *',
        keydata => $admin_keydata,
        keyring => $admin_keyring,
    }
}