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.
|
||||
# $collab:
|
||||
# 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",
|
||||
$blocksize="1GB", $filter="", $remoteport="10000",
|
||||
$collab="") {
|
||||
$collab="", $probe=true, $remote=true) {
|
||||
|
||||
if $interface {
|
||||
$interface_real = $interface
|
||||
|
@ -159,7 +163,10 @@ define clarified::probe($interface="", $snaplen="65535", $keeptime="100GB",
|
|||
}
|
||||
|
||||
file { "/etc/clarified/probe.d/${name}":
|
||||
ensure => present,
|
||||
ensure => $probe ? {
|
||||
true => present,
|
||||
false => absent,
|
||||
},
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
@ -169,7 +176,10 @@ define clarified::probe($interface="", $snaplen="65535", $keeptime="100GB",
|
|||
}
|
||||
|
||||
file { "/etc/clarified/remote.d/${name}":
|
||||
ensure => present,
|
||||
ensure => $remote ? {
|
||||
true => present,
|
||||
false => absent,
|
||||
},
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
|
Loading…
Add table
Reference in a new issue