2014-06-28 06:40:02 +02:00
|
|
|
# == Class: icinga2::server::config
|
|
|
|
#
|
|
|
|
# This class configures the server components for the Icinga 2 monitoring system.
|
|
|
|
#
|
|
|
|
# === Parameters
|
|
|
|
#
|
|
|
|
# Coming soon...
|
|
|
|
#
|
|
|
|
# === Examples
|
2014-09-14 04:46:24 +02:00
|
|
|
#
|
2014-06-28 06:40:02 +02:00
|
|
|
# Coming soon...
|
2014-09-14 04:46:24 +02:00
|
|
|
#
|
2014-06-28 06:40:02 +02:00
|
|
|
|
|
|
|
class icinga2::server::config inherits icinga2::server {
|
2014-09-14 04:46:24 +02:00
|
|
|
|
2014-06-28 06:40:02 +02:00
|
|
|
include icinga2::params
|
2014-09-14 04:46:24 +02:00
|
|
|
|
2014-11-22 06:49:26 +01:00
|
|
|
if $purge_unmanaged_object_files == true {
|
|
|
|
$recurse_objects = true
|
|
|
|
$purge_objects = true
|
|
|
|
$force_purge = true
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$recurse_objects = false
|
|
|
|
$purge_objects = false
|
|
|
|
$force_purge = true
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-06 00:41:47 +02:00
|
|
|
#Directory resource for /etc/icinga2/:
|
2014-07-06 00:24:13 +02:00
|
|
|
file { '/etc/icinga2/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/',
|
|
|
|
owner => $etc_icinga2_owner,
|
|
|
|
group => $etc_icinga2_group,
|
|
|
|
mode => $etc_icinga2_mode,
|
2014-07-06 00:24:13 +02:00
|
|
|
#require => Package[$icinga2::params::icinga2_server_packages],
|
|
|
|
}
|
|
|
|
|
2014-07-06 00:36:56 +02:00
|
|
|
#File resource for /etc/icinga2/icinga2.conf:
|
|
|
|
file { '/etc/icinga2/icinga2.conf':
|
|
|
|
ensure => file,
|
2015-01-11 02:34:45 +01:00
|
|
|
path => '/etc/icinga2/icinga2.conf',
|
2014-07-06 00:36:56 +02:00
|
|
|
owner => $etc_icinga2_icinga2_conf_owner,
|
|
|
|
group => $etc_icinga2_icinga2_conf_group,
|
|
|
|
mode => $etc_icinga2_icinga2_conf_mode,
|
|
|
|
content => template('icinga2/icinga2.conf.erb'),
|
|
|
|
}
|
2014-07-06 00:41:47 +02:00
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/conf.d/:
|
|
|
|
file { '/etc/icinga2/conf.d/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/conf.d/',
|
|
|
|
owner => $etc_icinga2_confd_owner,
|
|
|
|
group => $etc_icinga2_confd_group,
|
|
|
|
mode => $etc_icinga2_confd_mode,
|
2014-07-06 00:41:47 +02:00
|
|
|
}
|
2014-07-06 00:42:53 +02:00
|
|
|
|
2014-07-06 00:47:04 +02:00
|
|
|
#Directory resource for /etc/icinga2/features-available/:
|
2014-07-06 00:42:53 +02:00
|
|
|
file { '/etc/icinga2/features-available/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/features-available/',
|
|
|
|
owner => $etc_icinga2_features_available_owner,
|
|
|
|
group => $etc_icinga2_features_available_group,
|
|
|
|
mode => $etc_icinga2_features_available_mode,
|
2014-07-06 00:42:53 +02:00
|
|
|
}
|
|
|
|
|
2014-07-06 00:47:04 +02:00
|
|
|
#Directory resource for /etc/icinga2/features-enabled/:
|
|
|
|
file { '/etc/icinga2/features-enabled/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/features-enabled/',
|
|
|
|
owner => $etc_icinga2_features_enabled_owner,
|
|
|
|
group => $etc_icinga2_features_enabled_group,
|
|
|
|
mode => $etc_icinga2_features_enabled_mode,
|
2014-07-06 00:47:04 +02:00
|
|
|
}
|
2014-09-14 04:46:24 +02:00
|
|
|
|
2014-07-06 00:47:37 +02:00
|
|
|
#Directory resource for /etc/icinga2/pki/:
|
|
|
|
file { '/etc/icinga2/pki/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/pki/',
|
|
|
|
owner => $etc_icinga2_pki_owner,
|
|
|
|
group => $etc_icinga2_pki_group,
|
|
|
|
mode => $etc_icinga2_pki_mode,
|
2014-07-06 00:47:37 +02:00
|
|
|
}
|
2014-07-06 00:47:04 +02:00
|
|
|
|
2014-07-06 00:48:49 +02:00
|
|
|
#Directory resource for /etc/icinga2/scripts/:
|
|
|
|
file { '/etc/icinga2/scripts/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/scripts/',
|
|
|
|
owner => $etc_icinga2_scripts_owner,
|
|
|
|
group => $etc_icinga2_scripts_group,
|
|
|
|
mode => $etc_icinga2_scripts_mode,
|
2014-07-06 00:48:49 +02:00
|
|
|
}
|
|
|
|
|
2014-07-06 00:49:28 +02:00
|
|
|
#Directory resource for /etc/icinga2/zones.d/:
|
|
|
|
file { '/etc/icinga2/zones.d/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/zones.d/',
|
|
|
|
owner => $etc_icinga2_zonesd_owner,
|
|
|
|
group => $etc_icinga2_zonesd_group,
|
|
|
|
mode => $etc_icinga2_zonesd_mode,
|
2014-07-06 00:49:28 +02:00
|
|
|
}
|
|
|
|
|
2014-07-06 01:35:16 +02:00
|
|
|
#File and directory resources for the object directories that can be used to hold different
|
|
|
|
#types of configuration objects
|
2014-09-14 04:46:24 +02:00
|
|
|
|
2014-07-06 01:35:16 +02:00
|
|
|
#Directory resource for /etc/icinga2/objects/:
|
|
|
|
file { '/etc/icinga2/objects/':
|
|
|
|
ensure => directory,
|
2014-09-26 21:18:00 +02:00
|
|
|
path => '/etc/icinga2/objects/',
|
2014-07-06 01:35:16 +02:00
|
|
|
owner => $etc_icinga2_obejcts_owner,
|
|
|
|
group => $etc_icinga2_obejcts_group,
|
|
|
|
mode => $etc_icinga2_obejcts_mode,
|
2014-11-22 06:49:26 +01:00
|
|
|
recurse => $recurse_objects,
|
|
|
|
purge => $purge_objects,
|
|
|
|
force => $force_purge
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/hosts/:
|
|
|
|
file { '/etc/icinga2/objects/hosts/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/hosts/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/hostgroups/:
|
|
|
|
file { '/etc/icinga2/objects/hostgroups/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/hostgroups/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/services/:
|
|
|
|
file { '/etc/icinga2/objects/services/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/services/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/servicegroups/:
|
|
|
|
file { '/etc/icinga2/objects/servicegroups/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/servicegroups/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/users/:
|
|
|
|
file { '/etc/icinga2/objects/users/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/users/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/usergroups/:
|
|
|
|
file { '/etc/icinga2/objects/usergroups/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/usergroups/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/checkcommands/:
|
|
|
|
file { '/etc/icinga2/objects/checkcommands/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/checkcommands/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/notificationcommands/:
|
|
|
|
file { '/etc/icinga2/objects/notificationcommands/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/notificationcommands/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/eventcommands/:
|
|
|
|
file { '/etc/icinga2/objects/eventcommands/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/eventcommands/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/notifications/:
|
|
|
|
file { '/etc/icinga2/objects/notifications/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/notifications/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/timeperiods/:
|
|
|
|
file { '/etc/icinga2/objects/timeperiods/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/timeperiods/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/scheduleddowntimes/:
|
|
|
|
file { '/etc/icinga2/objects/scheduleddowntimes/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/scheduleddowntimes/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/dependencies/:
|
|
|
|
file { '/etc/icinga2/objects/dependencies/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/dependencies/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/perfdatawriters/:
|
|
|
|
file { '/etc/icinga2/objects/perfdatawriters/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/perfdatawriters/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/graphitewriters/:
|
|
|
|
file { '/etc/icinga2/objects/graphitewriters/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/graphitewriters/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/idomysqlconnections/:
|
|
|
|
file { '/etc/icinga2/objects/idomysqlconnections/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/idomysqlconnections/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/idopgsqlconnections/:
|
|
|
|
file { '/etc/icinga2/objects/idopgsqlconnections/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/idopgsqlconnections/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/livestatuslisteners/:
|
|
|
|
file { '/etc/icinga2/objects/livestatuslisteners/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/livestatuslisteners/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/statusdatawriters/:
|
|
|
|
file { '/etc/icinga2/objects/statusdatawriters/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/statusdatawriters/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/externalcommandlisteners/:
|
|
|
|
file { '/etc/icinga2/objects/externalcommandlisteners/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/externalcommandlisteners/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/compatloggers/:
|
|
|
|
file { '/etc/icinga2/objects/compatloggers/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/compatloggers/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/checkresultreaders/:
|
|
|
|
file { '/etc/icinga2/objects/checkresultreaders/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/checkresultreaders/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/checkercomponents/:
|
|
|
|
file { '/etc/icinga2/objects/checkercomponents/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/checkercomponents/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/notificationcomponents/:
|
|
|
|
file { '/etc/icinga2/objects/notificationcomponents/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/notificationcomponents/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/fileloggers/:
|
|
|
|
file { '/etc/icinga2/objects/fileloggers/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/fileloggers/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/syslogloggers/:
|
|
|
|
file { '/etc/icinga2/objects/syslogloggers/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/syslogloggers/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/icingastatuswriters/:
|
|
|
|
file { '/etc/icinga2/objects/icingastatuswriters/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/icingastatuswriters/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/apilisteners/:
|
|
|
|
file { '/etc/icinga2/objects/apilisteners/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/apilisteners/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/endpoints/:
|
|
|
|
file { '/etc/icinga2/objects/endpoints/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/endpoints/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/zones/:
|
|
|
|
file { '/etc/icinga2/objects/zones/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/zones/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 01:35:16 +02:00
|
|
|
}
|
|
|
|
|
2014-07-06 03:10:37 +02:00
|
|
|
#Directory resource for /etc/icinga2/objects/applys/
|
2014-09-14 04:46:24 +02:00
|
|
|
#The files in this folder will be objects like
|
2014-07-06 03:10:37 +02:00
|
|
|
#'apply something blah to Host...'
|
|
|
|
#See the following link for more info:
|
|
|
|
# http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#apply
|
|
|
|
file { '/etc/icinga2/objects/applys/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/applys/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 03:10:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/templates/:
|
|
|
|
file { '/etc/icinga2/objects/templates/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/templates/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 03:10:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#Directory resource for /etc/icinga2/objects/constants/:
|
|
|
|
file { '/etc/icinga2/objects/constants/':
|
2015-01-11 02:34:45 +01:00
|
|
|
ensure => directory,
|
|
|
|
path => '/etc/icinga2/objects/constants/',
|
|
|
|
owner => $etc_icinga2_obejcts_sub_dir_owner,
|
|
|
|
group => $etc_icinga2_obejcts_sub_dir_group,
|
|
|
|
mode => $etc_icinga2_obejcts_sub_dir_mode,
|
2014-07-06 03:10:37 +02:00
|
|
|
}
|
|
|
|
|
2014-09-14 04:46:24 +02:00
|
|
|
}
|