Puppet Class: camus

Defined in:
modules/camus/manifests/init.pp

Overview

Class camus



3
4
5
6
7
8
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
# File 'modules/camus/manifests/init.pp', line 3

class camus {
    # Require that an HDFS client is installed by ensuring that cdh::hadoop
    # is included on this node.
    Class['cdh::hadoop'] -> Class['camus']

    $config_directory = '/etc/camus.d'
    $log_directory    = '/var/log/camus'

    file { $config_directory:
        ensure => 'directory',
    }

    file { $log_directory:
        ensure => 'directory',
        owner  => 'root',
        group  => 'hdfs',
        # setgid bit here to make camus log files writeable
        # by users in the hdfs group.
        mode   => '2775',
    }

    # logrotate camus log files
    logrotate::rule { 'camus':
        ensure       => present,
        file_glob    => '/var/log/camus/*.log',
        frequency    => 'weekly',
        rotate       => 4,
        missing_ok   => true,
        not_if_empty => true,
        no_create    => true,
        su           => 'root hdfs',
    }
}