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
firewall
Commits
648ed33c
Commit
648ed33c
authored
Feb 14, 2021
by
mh
Browse files
support multiple sources
parent
e7534f60
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/rules/munin.pp
View file @
648ed33c
# dispatch munin rules
# dispatch munin rules
class
firewall::rules::munin
(
class
firewall::rules::munin
(
Array
[
Stdlib
::
IP
::
Address
::
V4
]
$collector
=
[],
Array
[
Stdlib
::
IP
::
Address
::
V4
]
$collector
=
[],
Array
[
Stdlib
::
IP
::
Address
::
V6
]
$collector6
=
[],
Array
[
Stdlib
::
IP
::
Address
::
V6
]
$collector6
=
[],
Stdlib
::
Port
$port
=
4949
,
Stdlib
::
Port
$port
=
4949
,
Enum
[
'loc'
,
'net'
]
$collector_source
=
'net'
,
Array
[
Enum
[
'loc'
,
'net'
]
]
$collector_source
=
[
'net'
]
,
){
)
{
include
firewall
include
firewall
if
$firewall::use_nftables
{
if
$firewall::use_nftables
{
if
!
empty
(
$collector
)
{
if
!
empty
(
$collector
)
{
...
@@ -20,7 +20,7 @@ class firewall::rules::munin(
...
@@ -20,7 +20,7 @@ class firewall::rules::munin(
}
}
}
}
}
else
{
}
else
{
class
{
'shorewall::rules::munin'
:
class
{
'shorewall::rules::munin'
:
munin_port
=>
$port
,
munin_port
=>
$port
,
munin_collector
=>
$collector
,
munin_collector
=>
$collector
,
munin_collector6
=>
$collector6
,
munin_collector6
=>
$collector6
,
...
...
Write
Preview
Markdown
is supported
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