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
chris
puppet-shorewall
Commits
74ea10a6
Commit
74ea10a6
authored
May 08, 2015
by
Jerome Charaoui
Browse files
Make sure MUNINCOLLECTOR join() gets an array in munin rule
parent
52006a80
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/rules/munin.pp
View file @
74ea10a6
class
shorewall::rules::munin
(
class
shorewall::rules::munin
(
$munin_port
=
'4949'
,
$munin_port
=
'4949'
,
$munin_collector
=
'127.0.0.1'
,
$munin_collector
=
[
'127.0.0.1'
]
,
$collector_source
=
'net'
$collector_source
=
'net'
){
){
shorewall::params
{
'MUNINPORT'
:
value
=>
$munin_port
}
shorewall::params
{
'MUNINPORT'
:
value
=>
$munin_port
}
shorewall::params
{
'MUNINCOLLECTOR'
:
value
=>
join
(
$munin_collector
,
','
)
}
shorewall::params
{
'MUNINCOLLECTOR'
:
value
=>
join
(
any2array
(
$munin_collector
)
,
','
)
}
shorewall::rule
{
'net-me-munin-tcp'
:
shorewall::rule
{
'net-me-munin-tcp'
:
source
=>
"
${collector_source}
:
\$
MUNINCOLLECTOR"
,
source
=>
"
${collector_source}
:
\$
MUNINCOLLECTOR"
,
destination
=>
'$FW'
,
destination
=>
'$FW'
,
...
...
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