Puppet Class: burp

Defined in:
manifests/init.pp

Overview

config_dir

Default: /etc/burp Path where all the BURP configuration files will be written to.

clients

Default: {} Hash of ‘::burp::client` instances. Will be passed to `create_resources`.

Authors

Tobias Brunner <tobias.brunner@vshn.ch>

Copyright 2015 Tobias Brunner, VSHN AG

Parameters:

  • manage_package (Any) (defaults to: true)
  • package_ensure (Any) (defaults to: 'installed')
  • package_name (Any) (defaults to: 'burp')
  • config_dir (Any) (defaults to: '/etc/burp')
  • clients (Any) (defaults to: {})


35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'manifests/init.pp', line 35

class burp (
  # package installation handling
  $manage_package = true,
  $package_ensure = 'installed',
  $package_name = 'burp',
  # general burp configuration handling (client/server)
  $config_dir = '/etc/burp',
  # clients
  $clients = {},
) {

  ## Input validation
  validate_bool($manage_package)
  validate_string($package_ensure)
  validate_string($package_name)
  validate_absolute_path($config_dir)
  validate_hash($clients)

  ## Install BURP
  class { '::burp::install': } ->
  class { '::burp::config': }
  contain ::burp::install
  contain ::burp::config

  ## Instantiate Clients
  create_resources('::burp::client',$clients)

}