Puppet Class: tinyproxy::config

Defined in:
manifests/config.pp

Overview

Parameters:

  • config_path (String)
  • user (String)
  • group (String)
  • config_ensure (Enum['file', 'absent'])
  • port (Integer)
  • listen (Optional[String])
  • bind (Optional[String])
  • bind_same (Optional[Boolean])
  • timeout (Integer)
  • error_files (Optional[Hash[Integer, String]])
  • default_error_file (String)
  • stat_host (Optional[String])
  • stat_file (String)
  • log_file (Optional[String])
  • use_syslog (Boolean)
  • pid_file (String)
  • use_xtinyproxy (Boolean)
  • default_upstreams (Optional[Array[String]])
  • upstreams (Optional[Hash[String, Variant[String, Array[String]]]])
  • no_upstreams (Optional[Array[String]])
  • max_clients (Integer)
  • min_spare_servers (Integer)
  • max_spare_servers (Integer)
  • start_servers (Integer)
  • max_requests_per_child (Integer)
  • allow (Optional[String])
  • deny (Optional[String])
  • add_headers (Optional[Hash[String, String]])
  • via_proxy_name (String)
  • disable_via_header (Boolean)
  • filter (Optional[String])
  • filter_urls (Optional[Boolean])
  • filter_extended (Optional[Boolean])
  • filter_case_sensitive (Optional[Boolean])
  • filter_default_deny (Optional[Boolean])
  • log_level (Enum['Critical', 'Error', 'Warning', 'Notice', 'Connect', 'Info'])
  • anonymous (Optional[Array[String]])
  • connect_ports (Optional[Array[Integer]])
  • reverse_paths (Optional[Hash[String, String]])
  • reverse_only (Optional[Boolean])
  • reverse_magic (Optional[Boolean])
  • reverse_baseurl (Optional[String])


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'manifests/config.pp', line 1

class tinyproxy::config (
  String $config_path,
  String $user,
  String $group,
  Enum['file', 'absent'] $config_ensure,
  Integer $port,
  Optional[String] $listen,
  Optional[String] $bind,
  Optional[Boolean] $bind_same,
  Integer $timeout,
  Optional[Hash[Integer, String]] $error_files,
  String $default_error_file,
  Optional[String] $stat_host,
  String $stat_file,
  Optional[String] $log_file,
  Boolean $use_syslog,
  String $pid_file,
  Boolean $use_xtinyproxy,
  Optional[Array[String]] $default_upstreams,
  Optional[Hash[String, Variant[String, Array[String]]]] $upstreams,
  Optional[Array[String]] $no_upstreams,
  Integer $max_clients,
  Integer $min_spare_servers,
  Integer $max_spare_servers,
  Integer $start_servers,
  Integer $max_requests_per_child,
  Optional[String] $allow,
  Optional[String] $deny,
  Optional[Hash[String, String]] $add_headers,
  String $via_proxy_name,
  Boolean $disable_via_header,
  Optional[String] $filter,
  Optional[Boolean] $filter_urls,
  Optional[Boolean] $filter_extended,
  Optional[Boolean] $filter_case_sensitive,
  Optional[Boolean] $filter_default_deny,
  Enum['Critical', 'Error', 'Warning', 'Notice', 'Connect', 'Info'] $log_level,
  Optional[Array[String]] $anonymous,
  Optional[Array[Integer]] $connect_ports,
  Optional[Hash[String, String]] $reverse_paths,
  Optional[Boolean] $reverse_only,
  Optional[Boolean] $reverse_magic,
  Optional[String] $reverse_baseurl,
){

  if $log_file != undef and $use_syslog == true {
    fail('$use_syslog and $log_logfile are mutually exclusive.')
  }

  file { $config_path:
    ensure  => $config_ensure,
    content => template('tinyproxy/tinyproxy.conf.erb'),
  }

}