Puppet Class: shinken

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

Overview

Parameters:

  • auth_secret (Any)


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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'modules/shinken/manifests/init.pp', line 4

class shinken(
    $auth_secret
) {
    include shinken::shinkengen

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

    package { 'python-cherrypy3':
        ensure => present,
    }

    service { 'shinken':
        ensure => running,
        enable => true,
    }

    file { '/etc/shinken/modules':
        ensure  => directory,
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
    }

    file { '/etc/shinken/modules/webui.cfg':
        ensure  => present,
        content => template('shinken/webui.cfg.erb'),
        owner   => 'root',
        group   => 'root',
        require => File['/etc/shinken/modules'],
        notify  => Service['shinken'],
    }

    file { '/etc/shinken/shinken.cfg':
        ensure  => present,
        source  => 'puppet:///modules/shinken/shinken.cfg',
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
        notify  => Service['shinken'],
    }

    file { '/etc/shinken/pollers/poller.cfg':
        ensure  => present,
        source  => 'puppet:///modules/shinken/poller.cfg',
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
        notify  => Service['shinken'],
    }

    file { '/etc/shinken/brokers/broker.cfg':
        ensure  => present,
        source  => 'puppet:///modules/shinken/broker.cfg',
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
        notify  => Service['shinken'],
    }

    file { '/etc/shinken/templates.cfg':
        ensure  => present,
        source  => 'puppet:///modules/shinken/templates.cfg',
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
        notify  => Service['shinken'],
    }

    file { '/etc/shinken/generated':
        ensure  => directory,
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
    }

    file { '/etc/shinken/customconfig':
        ensure  => directory,
        owner   => 'root',
        group   => 'root',
        require => Package['shinken'],
    }

    class { 'nagios_common::contactgroups':
        source     => 'puppet:///modules/nagios_common/contactgroups-labs.cfg',
        owner      => 'root',
        group      => 'root',
        config_dir => '/etc/shinken',
        require    => Package['shinken'],
        notify     => Service['shinken'],
    }

    class { 'nagios_common::contacts':
        source     => 'puppet:///modules/nagios_common/contacts-labs.cfg',
        owner      => 'root',
        group      => 'root',
        config_dir => '/etc/shinken',
        require    => Package['shinken'],
        notify     => Service['shinken'],
    }

    class { [
      'nagios_common::user_macros',
      'nagios_common::timeperiods',
    ] :
        config_dir => '/etc/shinken',
        owner      => 'root',
        group      => 'root',
        notify     => Service['shinken'],
        require    => Package['shinken'],
    }

    class { 'nagios_common::notification_commands':
        config_dir   => '/etc/shinken',
        owner        => 'root',
        group        => 'root',
        notify       => Service['shinken'],
        require      => Package['shinken'],
        irc_dir_path => '/var/log/ircecho',
    }

    # Default localhost config, we do not need this
    file { '/etc/shinken/hosts/localhost.cfg':
        ensure  => absent,
        require => Package['shinken'],
        notify  => Service['shinken'],
    }

    # Custom commands we use
    class { 'nagios_common::commands':
        require    => Package['shinken'],
        config_dir => '/etc/shinken',
        owner      => 'root',
        group      => 'root',
        notify     => Service['shinken'],
    }
}