Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9125560
config.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
config.pp
View Options
# == Class: icinga2::config
#
# This class exists to manage general configuration files needed by Icinga2 to run.
#
# === Parameters
#
# This class does not provide any parameters.
#
# === Examples
#
# This class is private and should not be called by others than this module.
#
# === Authors
#
# Icinga Development Team <info@icinga.org>
#
class
icinga2
::
config
{
if
$module_name
!=
$caller_module_name
{
fail
(
"icinga2::config is a private class of the module icinga2, you're not permitted to use it."
)
}
$constants
=
merge
(
$::icinga2::params::constants,
$::icinga2::constants)
$conf_dir
=
$::icinga2::params::conf_dir
$plugins
=
$::icinga2::plugins
$confd
=
$::icinga2::_confd
if
$::kernel
!=
'windows'
{
$template_constants
=
template
(
'icinga2/constants.conf.erb'
)
$template_mainconfig
=
template
(
'icinga2/icinga2.conf.erb'
)
}
else
{
$template_constants
=
regsubst
(
template
(
'icinga2/constants.conf.erb'
),
'\n'
,
"\r\n"
,
'EMG'
)
$template_mainconfig
=
regsubst
(
template
(
'icinga2/icinga2.conf.erb'
),
'\n'
,
"\r\n"
,
'EMG'
)
}
file
{
"${conf_dir}/constants.conf"
:
ensure
=>
file
,
content
=>
$template_constants,
}
file
{
"${conf_dir}/icinga2.conf"
:
ensure
=>
file
,
content
=>
$template_mainconfig,
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Jun 21, 9:03 PM (4 w, 6 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3295870
Attached To
rSPICI Icinga 2 Puppet Module
Event Timeline
Log In to Comment