Puppet Class: ceph::common

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

Overview

Class: ceph::common

This class configures the host for the ceph-common package.

Parameters

- $home_dir
    The ceph user home directory (usually the top level data directory)

Parameters:

  • home_dir (Stdlib::Unixpath)


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'modules/ceph/manifests/common.pp', line 9

class ceph::common (
    Stdlib::Unixpath $home_dir,
) {
    group { 'ceph':
        ensure => present,
        system => true,
    }

    user { 'ceph':
        ensure     => present,
        gid        => 'ceph',
        shell      => '/usr/sbin/nologin',
        comment    => 'Ceph storage service',
        home       => $home_dir,
        managehome => false,
        system     => true,
        require    => Group['ceph'],
    }

    # Ceph common package used for all services and clients
    package { 'ceph-common':
        ensure  => present,
        require => User['ceph'],
    }

    file { '/var/lib/ceph':
        ensure => directory,
        mode   => '0750',
        owner  => 'ceph',
        group  => 'ceph',
    }

    file { '/var/log/ceph':
        ensure => directory,
        mode   => '0755',
        owner  => 'ceph',
        group  => 'ceph',
    }

    file { '/var/run/ceph':
        ensure => directory,
        mode   => '0750',
        owner  => 'ceph',
        group  => 'ceph',
    }
}