recommit for updates in build 1

This commit is contained in:
Jenkins ConfDroid
2025-03-02 16:30:34 +01:00
parent 638daffabc
commit 5e202a98c0
16 changed files with 3654 additions and 67 deletions

View File

@@ -64,57 +64,57 @@
<td valign='top' width="33%">
<ul id="alpha_C" class="alpha">
<li class="letter">C</li>
<ul id="alpha_H" class="alpha">
<li class="letter">H</li>
<ul>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy.html" title="puppet_classes::cd_haproxy (puppet_class)">cd_haproxy</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd.html" title="puppet_classes::haproxy_cd (puppet_class)">haproxy_cd</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::cd_haproxy::firewall::iptables (puppet_class)">cd_haproxy::firewall::iptables</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::haproxy_cd::firewall::iptables (puppet_class)">haproxy_cd::firewall::iptables</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_haproxy::main::config (puppet_class)">cd_haproxy::main::config</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::haproxy_cd::main::config (puppet_class)">haproxy_cd::main::config</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_haproxy::main::dirs (puppet_class)">cd_haproxy::main::dirs</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::haproxy_cd::main::dirs (puppet_class)">haproxy_cd::main::dirs</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::cd_haproxy::main::files (puppet_class)">cd_haproxy::main::files</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::haproxy_cd::main::files (puppet_class)">haproxy_cd::main::files</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_haproxy::main::install (puppet_class)">cd_haproxy::main::install</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::haproxy_cd::main::install (puppet_class)">haproxy_cd::main::install</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Auser.html" title="puppet_classes::cd_haproxy::main::user (puppet_class)">cd_haproxy::main::user</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::haproxy_cd::main::user (puppet_class)">haproxy_cd::main::user</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::cd_haproxy::monitoring::fail2ban (puppet_class)">cd_haproxy::monitoring::fail2ban</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::haproxy_cd::monitoring::fail2ban (puppet_class)">haproxy_cd::monitoring::fail2ban</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::params</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_haproxy::server::service (puppet_class)">cd_haproxy::server::service</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::haproxy_cd::server::service (puppet_class)">haproxy_cd::server::service</a></span>
</li>
@@ -135,12 +135,12 @@
<td valign='top' width="33%">
<ul id="alpha_C" class="alpha">
<li class="letter">C</li>
<ul id="alpha_H" class="alpha">
<li class="letter">H</li>
<ul>
<li>
<span class='object_link'><a href="puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html" title="puppet_defined_types::cd_haproxy::server::proxy (puppet_defined_type)">cd_haproxy::server::proxy</a></span>
<span class='object_link'><a href="puppet_defined_types/haproxy_cd_3A_3Aserver_3A_3Aproxy.html" title="puppet_defined_types::haproxy_cd::server::proxy (puppet_defined_type)">haproxy_cd::server::proxy</a></span>
</li>

View File

@@ -60,9 +60,8 @@
<div id="content"><div id='filecontents'>
<h1 id="label-Readme">Readme</h1>
<p>|<code>cd_haproxy</code>| 1.0.3.0 | <a
href="https://pipelines.confdroid.com/job/cd_haproxy/"><img
src="https://pipelines.confdroid.com/buildStatus/icon?job=cd_haproxy"></a>|</p>
<p><a href="https://pipelines.confdroid.com/job/haproxy_cd/"><img
src="https://pipelines.confdroid.com/buildStatus/icon?job=haproxy_cd"></a>|</p>
<p>[[<em>TOC</em>]]</p>
@@ -72,7 +71,7 @@ src="https://pipelines.confdroid.com/buildStatus/icon?job=cd_haproxy"></a>|</p>
balancer to balance incoming requests between multiple instances of web-,
application- or database servers etc.</p>
<p><code>cd_haproxy</code> automates installation and configuration of
<p><code>haproxy_cd</code> automates installation and configuration of
<code>HA proxy</code> including self-healing, monitoring and firewall etc.</p>
<h2 id="label-WARNING">WARNING</h2>
@@ -107,6 +106,8 @@ production</em></strong></p>
<p>back-end options</p>
</li><li>
<p>ACL options</p>
</li><li>
<p>manage fail2ban integration (optional, requires fail2ban_cd module)</p>
</li></ul>
<p>SERVICE</p>
@@ -137,7 +138,7 @@ managing file fragments</p>
<p>via site.pp or nodes.pp</p>
<pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; {
include cd_haproxy
include haproxy_cd
}
</code></pre>
<ul><li>
@@ -145,7 +146,7 @@ managing file fragments</p>
</li></ul>
<p>In order to apply parameters through Foreman,
<strong>cd_haproxy::params</strong> must be added to the host or host group
<strong>haproxy_cd::params</strong> must be added to the host or host group
in question.</p>
<p>See <a
@@ -164,7 +165,7 @@ concatenated from various templates through a define in this puppet module.
In order to create proxy instances, you will need an external class, which
addresses the define, like so:</p>
<pre class="code ruby"><code class="ruby">cd_haproxy::server::proxy { &#39;testing&#39;:
<pre class="code ruby"><code class="ruby">haproxy_cd::server::proxy { &#39;testing&#39;:
haproxy_fqdn =&gt; &#39;node.example.net&#39;,
frontend_name =&gt; &#39;test01-frontend&#39;,
frontend_mode =&gt; &#39;http&#39;,
@@ -191,9 +192,9 @@ selinux is disabled, these contexts are ignored.</p>
<h2 id="label-Support">Support</h2>
<ul><li>
<p>OS: CentOS 7, Rocky 9</p>
<p>OS: Rocky 9</p>
</li><li>
<p>Puppet 6</p>
<p>Puppet 8</p>
</li></ul>
<h2 id="label-Tests">Tests</h2>
@@ -222,12 +223,6 @@ block</code>, not per class.</p>
</li><li>
<p>ERB Template Parser</p>
</li><li>
<p>Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)</p>
</li><li>
<p>Markdown-lint</p>
</li><li>
<p>Spellcheck</p>
</li><li>
<p>Sonar Quality Gate</p>
</li></ul>

View File

@@ -60,9 +60,8 @@
<div id="content"><div id='filecontents'>
<h1 id="label-Readme">Readme</h1>
<p>|<code>cd_haproxy</code>| 1.0.3.0 | <a
href="https://pipelines.confdroid.com/job/cd_haproxy/"><img
src="https://pipelines.confdroid.com/buildStatus/icon?job=cd_haproxy"></a>|</p>
<p><a href="https://pipelines.confdroid.com/job/haproxy_cd/"><img
src="https://pipelines.confdroid.com/buildStatus/icon?job=haproxy_cd"></a>|</p>
<p>[[<em>TOC</em>]]</p>
@@ -72,7 +71,7 @@ src="https://pipelines.confdroid.com/buildStatus/icon?job=cd_haproxy"></a>|</p>
balancer to balance incoming requests between multiple instances of web-,
application- or database servers etc.</p>
<p><code>cd_haproxy</code> automates installation and configuration of
<p><code>haproxy_cd</code> automates installation and configuration of
<code>HA proxy</code> including self-healing, monitoring and firewall etc.</p>
<h2 id="label-WARNING">WARNING</h2>
@@ -107,6 +106,8 @@ production</em></strong></p>
<p>back-end options</p>
</li><li>
<p>ACL options</p>
</li><li>
<p>manage fail2ban integration (optional, requires fail2ban_cd module)</p>
</li></ul>
<p>SERVICE</p>
@@ -137,7 +138,7 @@ managing file fragments</p>
<p>via site.pp or nodes.pp</p>
<pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; {
include cd_haproxy
include haproxy_cd
}
</code></pre>
<ul><li>
@@ -145,7 +146,7 @@ managing file fragments</p>
</li></ul>
<p>In order to apply parameters through Foreman,
<strong>cd_haproxy::params</strong> must be added to the host or host group
<strong>haproxy_cd::params</strong> must be added to the host or host group
in question.</p>
<p>See <a
@@ -164,7 +165,7 @@ concatenated from various templates through a define in this puppet module.
In order to create proxy instances, you will need an external class, which
addresses the define, like so:</p>
<pre class="code ruby"><code class="ruby">cd_haproxy::server::proxy { &#39;testing&#39;:
<pre class="code ruby"><code class="ruby">haproxy_cd::server::proxy { &#39;testing&#39;:
haproxy_fqdn =&gt; &#39;node.example.net&#39;,
frontend_name =&gt; &#39;test01-frontend&#39;,
frontend_mode =&gt; &#39;http&#39;,
@@ -191,9 +192,9 @@ selinux is disabled, these contexts are ignored.</p>
<h2 id="label-Support">Support</h2>
<ul><li>
<p>OS: CentOS 7, Rocky 9</p>
<p>OS: Rocky 9</p>
</li><li>
<p>Puppet 6</p>
<p>Puppet 8</p>
</li></ul>
<h2 id="label-Tests">Tests</h2>
@@ -222,12 +223,6 @@ block</code>, not per class.</p>
</li><li>
<p>ERB Template Parser</p>
</li><li>
<p>Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)</p>
</li><li>
<p>Markdown-lint</p>
</li><li>
<p>Spellcheck</p>
</li><li>
<p>Sonar Quality Gate</p>
</li></ul>

View File

@@ -40,72 +40,72 @@
<ul id="full_list" class="puppet_class">
<li id="object_puppet_classes::cd_haproxy" class="odd">
<li id="object_puppet_classes::haproxy_cd" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy.html" title="puppet_classes::cd_haproxy (puppet_class)">cd_haproxy</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd.html" title="puppet_classes::haproxy_cd (puppet_class)">haproxy_cd</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::firewall::iptables" class="even">
<li id="object_puppet_classes::haproxy_cd::firewall::iptables" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::cd_haproxy::firewall::iptables (puppet_class)">cd_haproxy::firewall::iptables</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::haproxy_cd::firewall::iptables (puppet_class)">haproxy_cd::firewall::iptables</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::main::config" class="odd">
<li id="object_puppet_classes::haproxy_cd::main::config" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_haproxy::main::config (puppet_class)">cd_haproxy::main::config</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::haproxy_cd::main::config (puppet_class)">haproxy_cd::main::config</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::main::dirs" class="even">
<li id="object_puppet_classes::haproxy_cd::main::dirs" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_haproxy::main::dirs (puppet_class)">cd_haproxy::main::dirs</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::haproxy_cd::main::dirs (puppet_class)">haproxy_cd::main::dirs</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::main::files" class="odd">
<li id="object_puppet_classes::haproxy_cd::main::files" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::cd_haproxy::main::files (puppet_class)">cd_haproxy::main::files</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::haproxy_cd::main::files (puppet_class)">haproxy_cd::main::files</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::main::install" class="even">
<li id="object_puppet_classes::haproxy_cd::main::install" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_haproxy::main::install (puppet_class)">cd_haproxy::main::install</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::haproxy_cd::main::install (puppet_class)">haproxy_cd::main::install</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::main::user" class="odd">
<li id="object_puppet_classes::haproxy_cd::main::user" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amain_3A_3Auser.html" title="puppet_classes::cd_haproxy::main::user (puppet_class)">cd_haproxy::main::user</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::haproxy_cd::main::user (puppet_class)">haproxy_cd::main::user</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::monitoring::fail2ban" class="even">
<li id="object_puppet_classes::haproxy_cd::monitoring::fail2ban" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::cd_haproxy::monitoring::fail2ban (puppet_class)">cd_haproxy::monitoring::fail2ban</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::haproxy_cd::monitoring::fail2ban (puppet_class)">haproxy_cd::monitoring::fail2ban</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::params" class="odd">
<li id="object_puppet_classes::haproxy_cd::params" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::params</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span>
</div>
</li>
<li id="object_puppet_classes::cd_haproxy::server::service" class="even">
<li id="object_puppet_classes::haproxy_cd::server::service" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/cd_haproxy_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_haproxy::server::service (puppet_class)">cd_haproxy::server::service</a></span>
<span class='object_link'><a href="puppet_classes/haproxy_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::haproxy_cd::server::service (puppet_class)">haproxy_cd::server::service</a></span>
</div>
</li>

View File

@@ -0,0 +1,121 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd</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: haproxy_cd</h1>
<div class="box_info">
<dl>
<dt>Defined in:</dt>
<dd>
manifests/init.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class initializes the haproxy_cd module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::init.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 6</span>
class haproxy_cd {
include haproxy_cd::params
}</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>

View File

@@ -0,0 +1,162 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::firewall::iptables
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::firewall::iptables";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::firewall::iptables</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: haproxy_cd::firewall::iptables</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/firewall/iptables.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
manage firewall settings through cd_firewall or puppetlabs-firewall
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::firewall::iptables.pp Module name: haproxy_cd Author: Arne
Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/firewall/iptables.pp', line 6</span>
class haproxy_cd::firewall::iptables (
) inherits haproxy_cd::params {
if ($fqdn == $hy_host_fqdn) and ($hy_manage_fw == true) {
require haproxy_cd::main::files
firewall { &quot;${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}&quot;:
proto =&gt; &#39;tcp&#39;,
dport =&gt; $hy_http_port,
jump =&gt; &#39;accept&#39;,
}
firewall { &quot;${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}&quot;:
proto =&gt; &#39;tcp&#39;,
dport =&gt; $hy_https_port,
jump =&gt; &#39;accept&#39;,
}
}
}</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>

View File

@@ -0,0 +1,145 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::main::config
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::main::config";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::main::config</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: haproxy_cd::main::config</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/config.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages all aspects of configuring the module logic for
haproxy_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::main::config.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
7
8
9
10
11
12
13
14
15
16
17
18</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 7</span>
class haproxy_cd::main::config (
) inherits haproxy_cd::params {
include haproxy_cd::server::service
if $hy_manage_fail2ban == true {
include haproxy_cd::monitoring::fail2ban
}
}</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>

View File

@@ -0,0 +1,184 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::main::dirs
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::main::dirs";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::main::dirs</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: haproxy_cd::main::dirs</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/dirs.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages all directories required for haproxy_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::main::dirs.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
class haproxy_cd::main::dirs (
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require haproxy_cd::main::user
# main dir
file { $hy_main_dir:
ensure =&gt; directory,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0755&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
}
# errors dir
file { $hy_errors_dir:
ensure =&gt; directory,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0755&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
}
}
}</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>

View File

@@ -0,0 +1,432 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::main::files
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::main::files";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::main::files</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: haproxy_cd::main::files</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/files.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages all configuration files required for haproxy_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::main::files.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
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
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
class haproxy_cd::main::files (
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require haproxy_cd::main::dirs
# create the concat target
concat {$hy_main_config:
ensure =&gt; present,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0640&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
notify =&gt; Service[$hy_service],
}
# create the header
concat::fragment { &#39;header&#39;:
target =&gt; $hy_main_config,
content =&gt; template($hy_config_head_erb),
order =&gt; &#39;001&#39;,
}
# create the header
concat::fragment { &#39;tail&#39;:
target =&gt; $hy_main_config,
content =&gt; template($hy_config_tail_erb),
order =&gt; &#39;100&#39;,
}
# pid file
file { $hy_pid:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; haproxy_var_run_t,
seluser =&gt; system_u,
}
# error files
file { $hy_400_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_400_erb),
notify =&gt; Service[$hy_service],
}
file { $hy_403_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_403_erb),
notify =&gt; Service[$hy_service],
}
file { $hy_408_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_408_erb),
notify =&gt; Service[$hy_service],
}
file { $hy_500_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_500_erb),
notify =&gt; Service[$hy_service],
}
file { $hy_502_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_502_erb),
notify =&gt; Service[$hy_service],
}
file { $hy_503_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_503_erb),
notify =&gt; Service[$hy_service],
}
file { $hy_504_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template($hy_504_erb),
notify =&gt; Service[$hy_service],
}
# make sure rsyslog is logging haproxy logs
file { &#39;/etc/rsyslog.d/10-haproxy.conf&#39;:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; syslog_conf_t,
seluser =&gt; system_u,
content =&gt; template(&#39;haproxy_cd/rsyslog/10_haproxy.conf.erb&#39;),
# notify =&gt; Service[&#39;rsyslog&#39;], # only if using cd_rsyslog
}
}
}</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>

View File

@@ -0,0 +1,141 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::main::install
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::main::install";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::main::install</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: haproxy_cd::main::install</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/install.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manage all aspects of installing binaries required for
haproxy_cd
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::main::install.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
7
8
9
10
11
12
13
14
15
16</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 7</span>
class haproxy_cd::main::install (
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
package {$reqpackages:
ensure =&gt; $pkg_ensure,
}
}
}</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>

View File

@@ -0,0 +1,172 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::main::user
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::main::user";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::main::user</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: haproxy_cd::main::user</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/user.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages service users for haproxy_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::main::user.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@ConfDroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/user.pp', line 6</span>
class haproxy_cd::main::user (
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require haproxy_cd::main::install
# manage user
user { $hy_user_name:
ensure =&gt; present,
name =&gt; $hy_user_name,
allowdupe =&gt; false,
comment =&gt; $hy_user_comment,
gid =&gt; $hy_user_name,
managehome =&gt; true,
home =&gt; $hy_user_home,
shell =&gt; $hy_user_shell,
}
group { $hy_user_name:
ensure =&gt; present,
name =&gt; $hy_user_name,
allowdupe =&gt; false,
}
}
}</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>

View File

@@ -0,0 +1,193 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::monitoring::fail2ban
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::monitoring::fail2ban";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::monitoring::fail2ban</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: haproxy_cd::monitoring::fail2ban</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/monitoring/fail2ban.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages fail2ban settings
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>Module name: haproxy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/monitoring/fail2ban.pp', line 5</span>
class haproxy_cd::monitoring::fail2ban (
) inherits haproxy_cd::params {
if $hy_manage_fail2ban == true {
require cd_fail2ban
# configure filter
file { &#39;/etc/fail2ban/filter.d/haproxy.conf&#39;:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template(&#39;haproxy_cd/fail2ban/f2b_haproxy.conf.erb&#39;),
notify =&gt; Service[&#39;fail2ban&#39;],
}
file { &#39;/etc/fail2ban/jail.d/010-haproxy.conf&#39;:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template(&#39;haproxy_cd/fail2ban/010_jail.d_haproxy.conf.erb&#39;),
notify =&gt; Service[&#39;fail2ban&#39;],
}
}
}</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>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,152 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: haproxy_cd::server::service
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::haproxy_cd::server::service";
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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">haproxy_cd::server::service</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: haproxy_cd::server::service</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="haproxy_cd_3A_3Aparams.html" title="puppet_classes::haproxy_cd::params (puppet_class)">haproxy_cd::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/server/service.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages the service(s) for haproxy_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::server::service.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
class haproxy_cd::server::service (
) inherits haproxy_cd::params {
if $fqdn == $hy_host_fqdn {
require haproxy_cd::firewall::iptables
service { $hy_service:
ensure =&gt; running,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; true,
}
}
}</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>

View File

@@ -40,9 +40,9 @@
<ul id="full_list" class="puppet_defined_type">
<li id="object_puppet_defined_types::cd_haproxy::server::proxy" class="odd">
<li id="object_puppet_defined_types::haproxy_cd::server::proxy" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_defined_types/cd_haproxy_3A_3Aserver_3A_3Aproxy.html" title="puppet_defined_types::cd_haproxy::server::proxy (puppet_defined_type)">cd_haproxy::server::proxy</a></span>
<span class='object_link'><a href="puppet_defined_types/haproxy_cd_3A_3Aserver_3A_3Aproxy.html" title="puppet_defined_types::haproxy_cd::server::proxy (puppet_defined_type)">haproxy_cd::server::proxy</a></span>
</div>
</li>

View File

@@ -0,0 +1,658 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Defined Type: haproxy_cd::server::proxy
&mdash; Documentation by YARD 0.9.26
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_defined_types::haproxy_cd::server::proxy";
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_defined_type_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 (h)</a> &raquo;
<span class='title'><span class='object_link'>Defined Types</span></span>
&raquo;
<span class="title">haproxy_cd::server::proxy</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>Defined Type: haproxy_cd::server::proxy</h1>
<div class="box_info">
<dl>
<dt>Defined in:</dt>
<dd>
manifests/server/proxy.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Define manages the proxies for haproxy_cd.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>haproxy_cd::server::proxy.pp Module name: haproxy_cd Author: Arne Teuke
(arne_teuke@ConfDroid.com)</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>haproxy_fqdn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>the fqdn of the haproxy server in question.</p>
</div>
</li>
<li>
<span class='name'>frontend_name</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>the name for the frontend section rule.</p>
</div>
</li>
<li>
<span class='name'>frontend_order</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;010&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the order where the concat should appear in the file.</p>
</div>
</li>
<li>
<span class='name'>frontend_mode</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>mode for the loadbalancer instance: http or tcp</p>
</div>
</li>
<li>
<span class='name'>fe_use_backend</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>which backend to use. if left empty, the default backend will be used.</p>
</div>
</li>
<li>
<span class='name'>fe_bind_mode</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>which bind mode to use, i.e. to which interface and poort to bind.</p>
</div>
</li>
<li>
<span class='name'>acl_rule</span>
<span class='type'>(<tt>string</tt>)</span>
&mdash;
<div class='inline'>
<p>an ACL rule to be inserted if required. Empty values will not be populated.</p>
</div>
</li>
<li>
<span class='name'>acl_order</span>
<span class='type'>(<tt>string</tt>)</span>
&mdash;
<div class='inline'>
<p>the order where the acl rule should be inserted, so it will be within the
correct lb instance configuration.</p>
</div>
</li>
<li>
<span class='name'>backend_name</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the backend name to be used for the rule.</p>
</div>
</li>
<li>
<span class='name'>backend_order</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;030&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the order for the backend name, so it will be within the correct lb
instance configuration.</p>
</div>
</li>
<li>
<span class='name'>fe_maxconn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the maximum connections for the lb instance.</p>
</div>
</li>
<li>
<span class='name'>be_server_name</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>set the name for the backend server</p>
</div>
</li>
<li>
<span class='name'>fe_option</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>acl_rule_front</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>acl_rule_back</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_balance</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_mode</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>default_backend</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_option</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>fe_tcp_request</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>fe_http_request</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>backend_configs</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>[]</tt>)</em>
</li>
<li>
<span class='name'>be_stick_table</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_stick_on</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_http_check</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_http_request</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
<li>
<span class='name'>be_acl_rule</span>
<span class='type'>(<tt>Any</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
</li>
</ul>
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
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
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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/server/proxy.pp', line 24</span>
define haproxy_cd::server::proxy (
$haproxy_fqdn = undef,
$frontend_name = undef,
$frontend_mode = undef,
$fe_use_backend = &#39;&#39;,
$fe_bind_mode = undef,
$fe_option = &#39;&#39;,
$frontend_order = &#39;010&#39;,
$acl_rule_front = &#39;&#39;,
$acl_rule_back = &#39;&#39;,
$backend_name = &#39;&#39;,
$backend_order = &#39;030&#39;,
$fe_maxconn = &#39;&#39;,
$be_server_name = &#39;&#39;,
$be_balance = &#39;&#39;,
$be_mode = &#39;&#39;,
$default_backend = &#39;&#39;,
$be_option = &#39;&#39;,
$fe_tcp_request = &#39;&#39;,
$fe_http_request = &#39;&#39;,
$backend_configs = [],
$be_stick_table = &#39;&#39;,
$be_stick_on = &#39;&#39;,
$be_http_check = &#39;&#39;,
$be_http_request = &#39;&#39;,
$be_acl_rule = &#39;&#39;,
) {
$hy_main_config = &#39;/etc/haproxy/haproxy.cfg&#39;
$hy_frontendrule = &#39;haproxy_cd/haproxy_frontend_rule.erb&#39;
$hy_backendrule = &#39;haproxy_cd/haproxy_backend_rule.erb&#39;
$hy_acl_rule = &#39;haproxy_cd/haproxy_acl_rule.erb&#39;
# Ensure acl_rule_front and acl_rule_back are arrays
$acl_rule_front_array = split($acl_rule_front, &#39;;&#39;)
$acl_rule_back_array = split($acl_rule_back, &#39;;&#39;)
$fe_use_backend_array = split($fe_use_backend,&#39;;&#39;)
$backend_name_array = split($backend_name, &#39;;&#39;)
$be_server_name_array = split($be_server_name, &#39;;&#39;)
$be_option_array = split($be_option, &#39;;&#39;)
$fe_tcp_request_array = split($fe_tcp_request, &#39;;&#39;)
$fe_option_array = split($fe_option, &#39;;&#39;)
$fe_http_request_array = split($fe_http_request, &#39;;&#39;)
# create frontend section
concat::fragment { &quot;frontend_${name}&quot;:
target =&gt; $hy_main_config,
content =&gt; template($hy_frontendrule),
order =&gt; $frontend_order,
}
# Ensure backends are only created once
ensure_resource(&#39;concat::fragment&#39;, &quot;backends_${name}&quot;, {
&#39;target&#39; =&gt; $hy_main_config,
&#39;content&#39; =&gt; template($hy_backendrule),
&#39;order&#39; =&gt; $backend_order,
})
# open sepcific firewall ports
}</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>