Puppet Class: tinyproxy

Defined in:
manifests/init.pp

Overview

Class: tinyproxy

Full description of class tinyproxy here.

Parameters


Document parameters here.

  • ‘sample parameter`

Explanation of what this parameter affects and what it defaults to. e.g. “Specify one or more upstream ntp servers as an array.”

Variables


Here you should define a list of variables that this module would require.

  • ‘sample variable`

Explanation of how this variable affects the function of this class and if
it has a default. e.g. "The parameter enc_ntp_servers must be set by the
External Node Classifier as a comma separated list of hostnames." (Note,
global variables should be avoided in favor of class parameters as
of Puppet 2.6.)

Examples


Authors


Author Name <author@domain.com>

Copyright


Copyright 2017 Your name here, unless otherwise noted.

Examples:

class { 'tinyproxy':
  servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
}

Parameters:

  • use_epel (Boolean)
  • package_ensure (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])
  • service_ensure (Enum['running','stopped'])
  • service_enable (Boolean)


45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'manifests/init.pp', line 45

class tinyproxy (
  Boolean $use_epel,
  String  $package_ensure,

  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,

  Enum['running','stopped'] $service_ensure,
  Boolean                   $service_enable,
){

  class { 'tinyproxy::install':
    use_epel       => $use_epel,
    package_ensure => $package_ensure,
  } ->

  class { 'tinyproxy::config':
    config_ensure          => $config_ensure,
    port                   => $port,
    listen                 => $listen,
    bind                   => $bind,
    bind_same              => $bind_same,
    timeout                => $timeout,
    error_files            => $error_files,
    default_error_file     => $default_error_file,
    stat_host              => $stat_host,
    stat_file              => $stat_file,
    log_file               => $log_file,
    use_syslog             => $use_syslog,
    pid_file               => $pid_file,
    use_xtinyproxy         => $use_xtinyproxy,
    default_upstreams      => $default_upstreams,
    upstreams              => $upstreams,
    no_upstreams           => $no_upstreams,
    max_clients            => $max_clients,
    min_spare_servers      => $min_spare_servers,
    max_spare_servers      => $max_spare_servers,
    start_servers          => $start_servers,
    max_requests_per_child => $max_requests_per_child,
    allow                  => $allow,
    deny                   => $deny,
    add_headers            => $add_headers,
    via_proxy_name         => $via_proxy_name,
    disable_via_header     => $disable_via_header,
    filter                 => $filter,
    filter_urls            => $filter_urls,
    filter_extended        => $filter_extended,
    filter_case_sensitive  => $filter_case_sensitive,
    filter_default_deny    => $filter_default_deny,
    log_level              => $log_level,
    anonymous              => $anonymous,
    connect_ports          => $connect_ports,
    reverse_paths          => $reverse_paths,
    reverse_only           => $reverse_only,
    reverse_magic          => $reverse_magic,
    reverse_baseurl        => $reverse_baseurl,
  } ~>

  class { 'tinyproxy::service':
    service_ensure => $service_ensure,
    service_enable => $service_enable,
  }

}