92 lines
No EOL
2.7 KiB
Puppet
92 lines
No EOL
2.7 KiB
Puppet
# == Class: icinga2::server::config
|
|
#
|
|
# This class configures the server components for the Icinga 2 monitoring system.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# Coming soon...
|
|
#
|
|
# === Examples
|
|
#
|
|
# Coming soon...
|
|
#
|
|
|
|
class icinga2::server::config inherits icinga2::server {
|
|
|
|
include icinga2::params
|
|
|
|
#Directory resource for /etc/icinga2/:
|
|
file { '/etc/icinga2/':
|
|
path => '/etc/icinga2/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_owner,
|
|
group => $etc_icinga2_group,
|
|
mode => $etc_icinga2_mode,
|
|
#require => Package[$icinga2::params::icinga2_server_packages],
|
|
}
|
|
|
|
#File resource for /etc/icinga2/icinga2.conf:
|
|
file { '/etc/icinga2/icinga2.conf':
|
|
path => '/etc/icinga2/icinga2.conf',
|
|
ensure => file,
|
|
owner => $etc_icinga2_icinga2_conf_owner,
|
|
group => $etc_icinga2_icinga2_conf_group,
|
|
mode => $etc_icinga2_icinga2_conf_mode,
|
|
content => template('icinga2/icinga2.conf.erb'),
|
|
}
|
|
|
|
#Directory resource for /etc/icinga2/conf.d/:
|
|
file { '/etc/icinga2/conf.d/':
|
|
path => '/etc/icinga2/conf.d/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_confd_owner,
|
|
group => $etc_icinga2_confd_group,
|
|
mode => $etc_icinga2_confd_mode,
|
|
}
|
|
|
|
#Directory resource for /etc/icinga2/features-available/:
|
|
file { '/etc/icinga2/features-available/':
|
|
path => '/etc/icinga2/features-available/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_features_available_owner,
|
|
group => $etc_icinga2_features_available_group,
|
|
mode => $etc_icinga2_features_available_mode,
|
|
}
|
|
|
|
#Directory resource for /etc/icinga2/features-enabled/:
|
|
file { '/etc/icinga2/features-enabled/':
|
|
path => '/etc/icinga2/features-enabled/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_features_enabled_owner,
|
|
group => $etc_icinga2_features_enabled_group,
|
|
mode => $etc_icinga2_features_enabled_mode,
|
|
}
|
|
|
|
#Directory resource for /etc/icinga2/pki/:
|
|
file { '/etc/icinga2/pki/':
|
|
path => '/etc/icinga2/pki/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_pki_owner,
|
|
group => $etc_icinga2_pki_group,
|
|
mode => $etc_icinga2_pki_mode,
|
|
}
|
|
|
|
#Directory resource for /etc/icinga2/scripts/:
|
|
file { '/etc/icinga2/scripts/':
|
|
path => '/etc/icinga2/scripts/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_scripts_owner,
|
|
group => $etc_icinga2_scripts_group,
|
|
mode => $etc_icinga2_scripts_mode,
|
|
}
|
|
|
|
#Directory resource for /etc/icinga2/zones.d/:
|
|
file { '/etc/icinga2/zones.d/':
|
|
path => '/etc/icinga2/zones.d/',
|
|
ensure => directory,
|
|
owner => $etc_icinga2_zonesd_owner,
|
|
group => $etc_icinga2_zonesd_group,
|
|
mode => $etc_icinga2_zonesd_mode,
|
|
}
|
|
|
|
} |