Puppet Class: profile::samplicator

Defined in:
modules/profile/manifests/samplicator.pp

Overview

Class profile::samplicator

Sets up Samplicator: UDP datagrams duplicator Actions:

* Calls the samplicator module
* Open ACL

Parameters

[*port*]
 Port to listen for datagrams on
[*targets*]
 List of "hostname(or IP)/port" to duplicate datagrams to

Example

include profile::samplicator

Parameters:

  • port (Stdlib::Port) (defaults to: lookup('profile::samplicator::port'))
  • targets (Array[String]) (defaults to: lookup('profile::samplicator::targets'))


13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'modules/profile/manifests/samplicator.pp', line 13

class profile::samplicator (
  Stdlib::Port $port = lookup('profile::samplicator::port'),
  Array[String] $targets = lookup('profile::samplicator::targets'),
  ) {

    class { '::samplicator':
        port    => $port,
        targets => $targets,
    }

    ferm::service { 'samplicator':
        proto => 'udp',
        port  => $port,
        desc  => 'samplicator',
      srange  => '($NETWORK_INFRA $MGMT_NETWORKS)',
    }
}