Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7450838
api.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
api.pp
View Options
# == Class: icinga2::feature::api
#
# This module configures the Icinga2 feature api.
#
# === Parameters
#
# [*ensure*]
# Set to present enables the feature api, absent disabled it. Default is present.
#
# [*accept_config*]
# Accept zone configuration. Default to false.
#
# [*accept_commands*]
# Accept remote commands. Default to false.
#
# === Variables
#
# [*NodeName*]
# Certname and Keyname based on constant NodeName.
#
# === Authors
#
# Icinga Development Team <info@icinga.org>
#
class
icinga2
::
feature
::
api
(
$ensure
=
present
,
$accept_config
=
false
,
$accept_commands
=
false
,
)
{
include
::
icinga2
::
params
validate_re
(
$ensure,
[
'^present$'
,
'^absent$'
],
"${ensure} isn't supported. Valid values are 'present' and 'absent'."
)
validate_bool
(
$accept_config)
validate_bool
(
$accept_commands)
$conf_dir
=
$::icinga2::params::conf_dir
$user
=
$::icinga2::params::user
$group
=
$::icinga2::params::group
$node_name
=
$::icinga2::_constants
[
'NodeName'
]
file
{
"${conf_dir}/pki"
:
ensure
=>
directory
,
owner
=>
$user,
group
=>
$group,
}
icinga2
::
feature
{
'api'
:
ensure
=>
$ensure,
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 17, 8:53 AM (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3287714
Attached To
rSPICI Icinga 2 Puppet Module
Event Timeline
Log In to Comment