2
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
|
# File 'manifests/hostgroup_setup.pp', line 2
class icinga::hostgroup_setup {
exec { 'hostgroups_build':
command => '/usr/local/bin/icinga_build_hostgroups.sh',
require => File['icinga-hostgroup-build_command'],
refreshonly => true,
notify => Service['icinga'],
}
file { 'icinga-hostgroup-build_dir':
ensure => directory,
path => $icinga::target::hostgroupsbuilddir,
recurse => true,
purge => true,
# source => 'puppet:///icinga/hostgroups/',
notify => Exec['hostgroups_build'],
}
file { 'icinga-hostgroup-build_command':
ensure => present,
path => '/usr/local/bin/icinga_build_hostgroups.sh',
mode => '0750',
owner => 'root',
group => 'root',
content => template('icinga/icinga_build_hostgroups.sh'),
}
}
|