Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
webhosting
Commits
396b4273
Commit
396b4273
authored
Apr 13, 2020
by
mh
Browse files
add a way to pass additional nagios checks
parent
371798ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/common.pp
View file @
396b4273
...
...
@@ -27,7 +27,8 @@ define webhosting::common(
$user_scripts
=
'absent'
,
$user_scripts_options
=
{},
$nagios_check
=
'ensure'
,
$nagios_check_domain
=
'absent'
,
Variant
[
String
,
Array
[
String
]]
$nagios_check_domain
=
'absent'
,
$nagios_check_url
=
'/'
,
$nagios_check_code
=
'200'
,
$nagios_use
=
'generic-service'
,
...
...
@@ -234,6 +235,14 @@ define webhosting::common(
use
=>
$nagios_use
,
check_code
=>
$real_nagios_check_code
,
}
if
'additional_nagios_checks'
in
$configuration
{
$configuration
[
'additional_nagios_checks'
]
.
each
|
$n
,
$values
|
{
nagios::service::http
{
"
${name}
-
${n}
"
:
*
=>
$values
,
}
}
}
}
$watch_webfiles_ensure
=
$ensure
?
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment