Added options to disable probe or remote to clarified::probe
This commit is contained in:
parent
b4148531fe
commit
3af6b4f0f7
1 changed files with 13 additions and 3 deletions
|
@ -141,10 +141,14 @@ class clarified::recorder inherits clarified {
|
||||||
# Remote port. Defaults to 10000.
|
# Remote port. Defaults to 10000.
|
||||||
# $collab:
|
# $collab:
|
||||||
# Use collab for authentication, format is "<collab name>:<page name>".
|
# Use collab for authentication, format is "<collab name>:<page name>".
|
||||||
|
# $probe:
|
||||||
|
# Enable probe. Defaults to true.
|
||||||
|
# $remote:
|
||||||
|
# Enable remote. Defaults to true.
|
||||||
#
|
#
|
||||||
define clarified::probe($interface="", $snaplen="65535", $keeptime="100GB",
|
define clarified::probe($interface="", $snaplen="65535", $keeptime="100GB",
|
||||||
$blocksize="1GB", $filter="", $remoteport="10000",
|
$blocksize="1GB", $filter="", $remoteport="10000",
|
||||||
$collab="") {
|
$collab="", $probe=true, $remote=true) {
|
||||||
|
|
||||||
if $interface {
|
if $interface {
|
||||||
$interface_real = $interface
|
$interface_real = $interface
|
||||||
|
@ -159,7 +163,10 @@ define clarified::probe($interface="", $snaplen="65535", $keeptime="100GB",
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/clarified/probe.d/${name}":
|
file { "/etc/clarified/probe.d/${name}":
|
||||||
ensure => present,
|
ensure => $probe ? {
|
||||||
|
true => present,
|
||||||
|
false => absent,
|
||||||
|
},
|
||||||
mode => 0755,
|
mode => 0755,
|
||||||
owner => root,
|
owner => root,
|
||||||
group => root,
|
group => root,
|
||||||
|
@ -169,7 +176,10 @@ define clarified::probe($interface="", $snaplen="65535", $keeptime="100GB",
|
||||||
}
|
}
|
||||||
|
|
||||||
file { "/etc/clarified/remote.d/${name}":
|
file { "/etc/clarified/remote.d/${name}":
|
||||||
ensure => present,
|
ensure => $remote ? {
|
||||||
|
true => present,
|
||||||
|
false => absent,
|
||||||
|
},
|
||||||
mode => 0755,
|
mode => 0755,
|
||||||
owner => root,
|
owner => root,
|
||||||
group => root,
|
group => root,
|
||||||
|
|
Loading…
Add table
Reference in a new issue