File tree Expand file tree Collapse file tree 5 files changed +27
-0
lines changed
Expand file tree Collapse file tree 5 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 44class eit_haproxy::basic_config (
55 Eit_haproxy::Domains $domains,
66 Eit_haproxy::Listen $listens = {},
7+ Eit_haproxy::Timeout $frontend_timeout = {},
78 Boolean $ddos_protection = false ,
89 Boolean $https = true ,
910 Boolean $http = false ,
204205 { ' http-request' => ' deny deny_status 429 if !is_priority ww_rl_reached' },
205206 ]
206207
208+ $_frontend_timeout = Hash(
209+ $frontend_timeout .map |$k , $v | {
210+ [" timeout ${k} " , $v ]
211+ }
212+ )
207213
208214 haproxy::frontend { 'web' :
209215 mode => $mode ,
210216 bind => $binds ,
211217 options => [
212218 {' option' => " ${mode} log" },
219+ $_frontend_timeout,
213220 if $https and $use_lets_encrypt {
214221 { ' acl is_letsencrypt' => ' path_beg /.well-known/acme-challenge/' }
215222 },
Original file line number Diff line number Diff line change 55 Enum[' auto' , ' manual' ] $configure,
66 Eit_haproxy::Domains $domains,
77 Eit_haproxy::Listen $listens,
8+ Eit_haproxy::Timeout $frontend_timeout,
89 Hash[Eit_types::IP,Variant[
910 Array[Stdlib::Port],
1011 Stdlib::Port
6465 listens => $listens ,
6566 mode => $mode ,
6667 listen_on => $listen_on ,
68+ frontend_timeout => $frontend_timeout ,
6769 encryption_ciphers => $encryption_ciphers ,
6870 }
6971 }
Original file line number Diff line number Diff line change 1+ # Haproxy Timeouts
2+
3+ type Eit_haproxy::Timeout = Struct[{
4+ client => Optional[String],
5+ connect => Optional[String],
6+ server => Optional[String],
7+ queue => Optional[String],
8+ tunnel => Optional[String],
9+ check => Optional[String],
10+ http-request => Optional[String],
11+ http-keep-alive => Optional[String],
12+ http-connection => Optional[String],
13+ tarpit => Optional[String],
14+ }]
Original file line number Diff line number Diff line change 44 Optional[String] $manual_config,
55 Eit_haproxy::Domains $domains = {},
66 Eit_haproxy::Listen $listens = {},
7+ Eit_haproxy::Timeout $frontend_timeout = {},
78 Boolean $ddos_protection = false ,
89 Boolean $https = true ,
910 Boolean $http = false ,
4950 use_hsts => $use_hsts ,
5051 mode => $mode ,
5152 listen_on => $listen_on ,
53+ frontend_timeout => $frontend_timeout ,
5254 manual_config => $manual_config ,
5355 configure => $configure ,
5456 firewall => $firewall ,
Original file line number Diff line number Diff line change 5656 Optional[String] $manual_config = undef ,
5757 Eit_haproxy::Domains $domains = {},
5858 Eit_haproxy::Listen $listens = {},
59+ Eit_haproxy::Timeout $frontend_timeout = {},
5960 Boolean $ddos_protection = false ,
6061 Boolean $https = true ,
6162 Boolean $http = false ,
9192 version => $version ,
9293 configure => $configure ,
9394 listen_on => $listen_on ,
95+ frontend_timeout => $frontend_timeout ,
9496 encryption_ciphers => $encryption_ciphers ,
9597 firewall => $firewall ,
9698 service_options => $service_options ,
You can’t perform that action at this time.
0 commit comments