Puppet Class: pf

Inherits:
::pf::params
Defined in:
manifests/init.pp

Overview

Manage the packet filter (pf).

Examples:

Declaring the class

class { '::pf':
  source => '/etc/examples/pf.conf',
}

Parameters:

  • conf_file (Stdlib::Absolutepath) (defaults to: $::pf::params::conf_file)
  • content (Optional[String]) (defaults to: undef)
  • source (Optional[String]) (defaults to: undef)

See Also:

Since:

  • 1.0.0



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'manifests/init.pp', line 15

class pf (
  Stdlib::Absolutepath $conf_file = $::pf::params::conf_file,
  Optional[String]     $content   = undef,
  Optional[String]     $source    = undef,
) inherits ::pf::params {

  unless $content or $source {
    fail('Either $content or $source must be specified.')
  }

  if $content and $source {
    fail('Only one of $content or $source should be specified.')
  }

  contain ::pf::config
}