2021-09-09 13:16:51 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>
|
|
|
|
|
Puppet Class: cd_haproxy::params
|
|
|
|
|
|
2021-12-29 14:54:38 +01:00
|
|
|
— Documentation by YARD 0.9.26
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
</title>
|
|
|
|
|
|
2021-12-29 14:54:38 +01:00
|
|
|
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
2021-09-09 13:16:51 +02:00
|
|
|
|
2021-12-29 14:54:38 +01:00
|
|
|
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
2021-09-09 13:16:51 +02:00
|
|
|
|
2021-12-29 14:54:38 +01:00
|
|
|
<script type="text/javascript">
|
2021-09-09 13:16:51 +02:00
|
|
|
pathId = "puppet_classes::cd_haproxy::params";
|
|
|
|
|
relpath = '../';
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="nav_wrap">
|
|
|
|
|
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
|
|
|
|
|
<div id="resizer"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="main" tabindex="-1">
|
|
|
|
|
<div id="header">
|
|
|
|
|
<div id="menu">
|
|
|
|
|
|
|
|
|
|
<a href="../_index.html">Index (c)</a> »
|
|
|
|
|
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
|
|
|
»
|
|
|
|
|
<span class="title">cd_haproxy::params</span>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="search">
|
|
|
|
|
|
|
|
|
|
<a class="full_list_link" id="puppet_class_list_link"
|
|
|
|
|
href="../puppet_class_list.html">
|
|
|
|
|
|
|
|
|
|
<svg width="24" height="24">
|
|
|
|
|
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
|
|
|
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
|
|
|
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
|
|
|
</svg>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="content"><h1>Puppet Class: cd_haproxy::params</h1>
|
|
|
|
|
<div class="box_info">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
|
<dt>Inherited by:</dt>
|
|
|
|
|
<dd>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_haproxy::main::dirs (puppet_class)">cd_haproxy::main::dirs</a></span><br/>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Amain_3A_3Auser.html" title="puppet_classes::cd_haproxy::main::user (puppet_class)">cd_haproxy::main::user</a></span><br/>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::cd_haproxy::main::files (puppet_class)">cd_haproxy::main::files</a></span><br/>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_haproxy::main::config (puppet_class)">cd_haproxy::main::config</a></span><br/>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_haproxy::main::install (puppet_class)">cd_haproxy::main::install</a></span><br/>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_haproxy::server::service (puppet_class)">cd_haproxy::server::service</a></span><br/>
|
|
|
|
|
|
|
|
|
|
<span class='object_link'><a href="cd_haproxy_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::cd_haproxy::firewall::iptables (puppet_class)">cd_haproxy::firewall::iptables</a></span><br/>
|
|
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
|
<dt>Defined in:</dt>
|
|
|
|
|
<dd>
|
|
|
|
|
manifests/params.pp
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h2>Overview</h2>
|
|
|
|
|
<div class="docstring">
|
|
|
|
|
<div class="discussion">
|
|
|
|
|
|
|
|
|
|
<p>cd_haproxy::params.pp Module name: cd_haproxy Author: Arne Teuke
|
2025-01-30 00:07:51 +01:00
|
|
|
(arne_teuke@confdroid.com)</p>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tags">
|
|
|
|
|
<p class="tag_title">Parameters:</p>
|
|
|
|
|
<ul class="param">
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>pkg_ensure</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'latest'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>which <a href="https://confdroid.com/2017/05/puppet-type-package/">package
|
|
|
|
|
type</a> to choose, i.e. <code>latest</code> or <code>present</code>.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>reqpackages</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>['haproxy']</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>specify th epackages to be installed</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_host_fqdn</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
2025-01-27 11:55:05 +01:00
|
|
|
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the fqdn of the ha proxy host. mmust be fqdn, not cname. specify multiple
|
|
|
|
|
fqdns via array.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_manage_fw</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>true</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>whether to manage the firewall.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_fw_order_no</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'50'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the rule number to control the oder of the firewall rules.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_http_port</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'80'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the http port. used in firewall settings</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_https_port</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'443'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the https port. used in firewall settings</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_user_name</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'haproxy'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the name of the haproxy service user.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_user_comment</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'haproxy user'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the comment of the haproxy user, shows up in emails sent from haproxy.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_user_home</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'/var/lib/haproxy'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the home directory for the haprxy user.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_user_shell</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'/sbin/nologin'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the shell for the haproxy user.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_log_target</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'127.0.0.1'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Where to send the logs for this haproxy. Currently only local logging /
|
|
|
|
|
rsyslog forwarding supported.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_log_facility</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'local2'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>which logging facility to use.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_chroot</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'/var/lib/haproxy'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>where the chroot should be</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_pid</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'/var/run/haproxy.pid'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>the pid file to use.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_maxconn</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'4000'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>how many connections should we max allow.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_show_stats</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>true</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>whether we want to display the statistics page</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_stats_socket</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'/var/lib/haproxy/stats'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>name and path of the stats socket</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_default_mode</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'http'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>which mode to use in the defaults block</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_log_default</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'global'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>should be used when the instance's logging parameters are the same as
|
|
|
|
|
the global ones.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_use_httplog</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
2025-02-06 13:01:44 +01:00
|
|
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>whether to use httplogging option. Enable logging of HTTP request, session
|
|
|
|
|
state and timers</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_use_dontlognull</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>true</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Whether to enable or disable dontlognull option. true enables, false
|
|
|
|
|
disables.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_use_http_server_close</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
2025-02-06 13:06:04 +01:00
|
|
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Enable or disable HTTP connection closing on the server side</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_use_forward_for</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
2025-02-06 13:06:04 +01:00
|
|
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Enable insertion of the X-Forwarded-For header to requests sent to servers.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_use_redispatch</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>boolean</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
2025-02-06 13:06:04 +01:00
|
|
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Enable or disable session redistribution in case of connection failure.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_max_retries</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'3'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Set the number of retries to perform on a server after a connection
|
|
|
|
|
failure.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_timeout_http_request</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'10s'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Set the maximum allowed time to wait for a complete HTTP request.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_timeout_queue</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'1m'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Set the maximum time to wait in the queue for a connection slot to be free.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
2021-09-10 16:32:15 +02:00
|
|
|
<span class='name'>hy_timeout_connect</span>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
2021-09-10 16:32:15 +02:00
|
|
|
<em class="default">(defaults to: <tt>'10s'</tt>)</em>
|
|
|
|
|
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Set the maximum time to wait for a connection attempt to a server to
|
|
|
|
|
succeed.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_timeout_client</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'1m'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Set the maximum inactivity time on the client side.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_timeout_server</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'1m'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>Set the maximum inactivity time on the server side.</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_timeout_http_keep_alive</span>
|
|
|
|
|
|
|
|
|
|
|
2021-09-10 16:32:15 +02:00
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'10s'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
2021-09-10 16:32:15 +02:00
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>set the timeout value for keeping https connections alive</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-09-09 13:16:51 +02:00
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
|
|
|
|
|
|
<span class='name'>hy_timeout_check</span>
|
|
|
|
|
|
|
|
|
|
|
2021-09-10 16:32:15 +02:00
|
|
|
<span class='type'>(<tt>string</tt>)</span>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<em class="default">(defaults to: <tt>'10s'</tt>)</em>
|
|
|
|
|
|
|
|
|
|
|
2021-09-10 16:32:15 +02:00
|
|
|
—
|
|
|
|
|
<div class='inline'>
|
|
|
|
|
<p>set the timeout value for how long to check if the timeout has occured</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-09-09 13:16:51 +02:00
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
2021-12-29 14:54:38 +01:00
|
|
|
|
2021-09-09 13:16:51 +02:00
|
|
|
</div><div class="method_details_list">
|
|
|
|
|
<table class="source_code">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<pre class="lines">
|
|
|
|
|
|
|
|
|
|
|
2025-01-30 00:07:51 +01:00
|
|
|
58
|
|
|
|
|
59
|
|
|
|
|
60
|
|
|
|
|
61
|
|
|
|
|
62
|
|
|
|
|
63
|
|
|
|
|
64
|
|
|
|
|
65
|
|
|
|
|
66
|
|
|
|
|
67
|
|
|
|
|
68
|
|
|
|
|
69
|
|
|
|
|
70
|
|
|
|
|
71
|
|
|
|
|
72
|
|
|
|
|
73
|
|
|
|
|
74
|
|
|
|
|
75
|
|
|
|
|
76
|
|
|
|
|
77
|
2021-09-09 13:16:51 +02:00
|
|
|
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
|
2025-01-30 00:07:51 +01:00
|
|
|
135</pre>
|
2021-09-09 13:16:51 +02:00
|
|
|
</td>
|
|
|
|
|
<td>
|
2025-01-30 00:07:51 +01:00
|
|
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 58</span>
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
class cd_haproxy::params (
|
|
|
|
|
|
|
|
|
|
$pkg_ensure = 'latest',
|
|
|
|
|
$reqpackages = ['haproxy'],
|
|
|
|
|
|
2025-01-27 11:55:05 +01:00
|
|
|
$hy_host_fqdn = undef,
|
2021-09-09 13:16:51 +02:00
|
|
|
|
|
|
|
|
# firewall
|
|
|
|
|
$hy_manage_fw = true,
|
|
|
|
|
$hy_fw_order_no = '50',
|
|
|
|
|
|
|
|
|
|
# main config
|
|
|
|
|
$hy_http_port = '80',
|
|
|
|
|
$hy_https_port = '443',
|
|
|
|
|
$hy_chroot = '/var/lib/haproxy',
|
|
|
|
|
$hy_pid = '/var/run/haproxy.pid',
|
|
|
|
|
$hy_maxconn = '4000',
|
|
|
|
|
$hy_show_stats = true,
|
|
|
|
|
$hy_stats_socket = '/var/lib/haproxy/stats',
|
|
|
|
|
$hy_default_mode = 'http',
|
2025-02-06 13:06:04 +01:00
|
|
|
$hy_use_http_server_close = false,
|
|
|
|
|
$hy_use_forward_for = false,
|
|
|
|
|
$hy_use_redispatch = false,
|
2021-09-09 13:16:51 +02:00
|
|
|
$hy_max_retries = '3',
|
|
|
|
|
$hy_timeout_http_request = '10s',
|
|
|
|
|
$hy_timeout_queue = '1m',
|
|
|
|
|
$hy_timeout_connect = '10s',
|
|
|
|
|
$hy_timeout_client = '1m',
|
|
|
|
|
$hy_timeout_server = '1m',
|
|
|
|
|
$hy_timeout_http_keep_alive = '10s',
|
|
|
|
|
$hy_timeout_check = '10s',
|
|
|
|
|
|
|
|
|
|
# user
|
|
|
|
|
$hy_user_name = 'haproxy',
|
|
|
|
|
$hy_user_comment = 'haproxy user',
|
|
|
|
|
$hy_user_home = '/var/lib/haproxy',
|
|
|
|
|
$hy_user_shell = '/sbin/nologin',
|
|
|
|
|
|
|
|
|
|
# logging
|
|
|
|
|
$hy_log_target = '127.0.0.1',
|
|
|
|
|
$hy_log_facility = 'local2',
|
|
|
|
|
$hy_log_default = 'global',
|
2025-02-06 13:01:44 +01:00
|
|
|
$hy_use_httplog = false,
|
2021-09-09 13:16:51 +02:00
|
|
|
$hy_use_dontlognull = true,
|
|
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
# service
|
|
|
|
|
$hy_service = 'haproxy'
|
|
|
|
|
|
|
|
|
|
# directories
|
|
|
|
|
$hy_main_dir = '/etc/haproxy'
|
|
|
|
|
$hy_errors_dir = "${hy_main_dir}/errors"
|
|
|
|
|
|
|
|
|
|
# files
|
|
|
|
|
$hy_main_config = "${hy_main_dir}/haproxy.cfg"
|
|
|
|
|
$hy_config_head_erb = 'cd_haproxy/haproxy_head.erb'
|
2025-01-30 00:07:51 +01:00
|
|
|
$hy_config_tail_erb = 'cd_haproxy/haproxy_tail.erb'
|
2021-09-09 13:16:51 +02:00
|
|
|
$hy_400_file = "${hy_errors_dir}/400.http"
|
|
|
|
|
$hy_400_erb = 'cd_haproxy/errors/400_http.erb'
|
|
|
|
|
$hy_403_file = "${hy_errors_dir}/403.http"
|
|
|
|
|
$hy_403_erb = 'cd_haproxy/errors/403_http.erb'
|
|
|
|
|
$hy_408_file = "${hy_errors_dir}/408.http"
|
|
|
|
|
$hy_408_erb = 'cd_haproxy/errors/408_http.erb'
|
|
|
|
|
$hy_500_file = "${hy_errors_dir}/500.http"
|
|
|
|
|
$hy_500_erb = 'cd_haproxy/errors/500_http.erb'
|
|
|
|
|
$hy_502_file = "${hy_errors_dir}/502.http"
|
|
|
|
|
$hy_502_erb = 'cd_haproxy/errors/502_http.erb'
|
|
|
|
|
$hy_503_file = "${hy_errors_dir}/503.http"
|
|
|
|
|
$hy_503_erb = 'cd_haproxy/errors/503_http.erb'
|
|
|
|
|
$hy_504_file = "${hy_errors_dir}/504.http"
|
|
|
|
|
$hy_504_erb = 'cd_haproxy/errors/504_http.erb'
|
|
|
|
|
|
|
|
|
|
# includes must be last
|
|
|
|
|
|
|
|
|
|
include cd_haproxy::main::config
|
|
|
|
|
|
|
|
|
|
}</pre>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="footer">
|
|
|
|
|
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|