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
|
# File 'manifests/agent.pp', line 25
class icinga::agent(
Stdlib::Host $ca_server,
Hash[String, Hash] $parent_endpoints,
String $parent_zone = 'main',
Array[String] $global_zones = [],
Enum['file', 'syslog'] $logging_type = 'file',
Optional[Icinga2::LogSeverity] $logging_level = undef,
String $zone = 'NodeName',
) {
class { '::icinga':
ca => false,
ssh_private_key => undef,
ca_server => $ca_server,
this_zone => $zone,
zones => {
'ZoneName' => { 'endpoints' => { 'NodeName' => {} }, 'parent' => $parent_zone, },
$parent_zone => { 'endpoints' => $parent_endpoints, },
},
logging_type => $logging_type,
logging_level => $logging_level,
}
::icinga2::object::zone { $global_zones:
global => true,
}
}
|