adjust everything for compliance with puppet-lint
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -51,16 +51,9 @@ pipeline {
|
|||||||
|
|
||||||
stage('puppet-lint') {
|
stage('puppet-lint') {
|
||||||
steps {
|
steps {
|
||||||
sh '''find . -iname *.pp -exec /usr/local/rvm/gems/ruby-2.5.0/wrappers/puppet-lint \\
|
sh '''/usr/local/bin/puppet-lint . \\
|
||||||
--no-class_inherits_from_params_class-check \\
|
|
||||||
--no-variable_scope-check \\
|
--no-variable_scope-check \\
|
||||||
--no-80chars-check \\
|
|
||||||
--no-arrow_alignment-check \\
|
|
||||||
--no-autoloader_layout-check \\
|
|
||||||
--no-140chars-check \\
|
|
||||||
--log-format "%{path}:%{line}:%{check}:%{KIND}:%{message}" {} \\;
|
|
||||||
'''
|
'''
|
||||||
recordIssues aggregatingResults: true, tool: puppetLint()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,10 +100,7 @@ All files and directories are configured with correct selinux context. If selinu
|
|||||||
|
|
||||||
* Puppet Lint
|
* Puppet Lint
|
||||||
* excluded tests:
|
* excluded tests:
|
||||||
* `--no-class_inherits_from_params_class-check`:relevant only to non-supported outdated puppet versions
|
|
||||||
* `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
|
* `--no-variable_scope-check`: not applicable as we are inheriting parameters from params class. the lint check does not distinguish between facts and inherited parameters.
|
||||||
* `--no-80chars-check`: it is not always possible to stay within 80 characters, although typically only occurring on the parameter vault `params.pp`.
|
|
||||||
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
|
|
||||||
* Puppet Parser
|
* Puppet Parser
|
||||||
* ERB Template Parser
|
* ERB Template Parser
|
||||||
* Sonar Quality Gate
|
* Sonar Quality Gate
|
||||||
|
|||||||
182
doc/_index.html
182
doc/_index.html
@@ -1,182 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
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 = null;
|
|
||||||
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">
|
|
||||||
|
|
||||||
</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 class="noborder title">Documentation by YARD 0.9.26</h1>
|
|
||||||
<div id="listing">
|
|
||||||
<h1 class="alphaindex">Alphabetic Index</h1>
|
|
||||||
|
|
||||||
<h2>Puppet Class Listing A-Z</h2>
|
|
||||||
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td valign='top' width="33%">
|
|
||||||
|
|
||||||
|
|
||||||
<ul id="alpha_H" class="alpha">
|
|
||||||
<li class="letter">H</li>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<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/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/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/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/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/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/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/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/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/haproxy_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::haproxy_cd::server::service (puppet_class)">haproxy_cd::server::service</a></span>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h2>Defined Type Listing A-Z</h2>
|
|
||||||
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td valign='top' width="33%">
|
|
||||||
|
|
||||||
|
|
||||||
<ul id="alpha_H" class="alpha">
|
|
||||||
<li class="letter">H</li>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<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>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h2>File Listing</h2>
|
|
||||||
<ul id="files" class="index_inline_list">
|
|
||||||
|
|
||||||
|
|
||||||
<li class="r1"><a href="index.html" title="README">README</a></li>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
|
||||||
|
|
||||||
|
|
||||||
</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>
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/* Ensure the search bar doesn't overlap with links */
|
|
||||||
.fixed_header {
|
|
||||||
padding-bottom: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#full_list {
|
|
||||||
padding-top: 15px;
|
|
||||||
}
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
|
||||||
font-size: 13px;
|
|
||||||
height: 101%;
|
|
||||||
overflow-x: hidden;
|
|
||||||
background: #fafafa;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 { padding: 12px 10px; padding-bottom: 0; margin: 0; font-size: 1.4em; }
|
|
||||||
.clear { clear: both; }
|
|
||||||
.fixed_header { position: fixed; background: #fff; width: 100%; padding-bottom: 10px; margin-top: 0; top: 0; z-index: 9999; height: 70px; }
|
|
||||||
#search { position: absolute; right: 5px; top: 9px; padding-left: 24px; }
|
|
||||||
#content.insearch #search, #content.insearch #noresults { background: url(data:image/gif;base64,R0lGODlhEAAQAPYAAP///wAAAPr6+pKSkoiIiO7u7sjIyNjY2J6engAAAI6OjsbGxjIyMlJSUuzs7KamppSUlPLy8oKCghwcHLKysqSkpJqamvT09Pj4+KioqM7OzkRERAwMDGBgYN7e3ujo6Ly8vCoqKjY2NkZGRtTU1MTExDw8PE5OTj4+PkhISNDQ0MrKylpaWrS0tOrq6nBwcKysrLi4uLq6ul5eXlxcXGJiYoaGhuDg4H5+fvz8/KKiohgYGCwsLFZWVgQEBFBQUMzMzDg4OFhYWBoaGvDw8NbW1pycnOLi4ubm5kBAQKqqqiQkJCAgIK6urnJyckpKSjQ0NGpqatLS0sDAwCYmJnx8fEJCQlRUVAoKCggICLCwsOTk5ExMTPb29ra2tmZmZmhoaNzc3KCgoBISEiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCAAAACwAAAAAEAAQAAAHaIAAgoMgIiYlg4kACxIaACEJCSiKggYMCRselwkpghGJBJEcFgsjJyoAGBmfggcNEx0flBiKDhQFlIoCCA+5lAORFb4AJIihCRbDxQAFChAXw9HSqb60iREZ1omqrIPdJCTe0SWI09GBACH5BAkIAAAALAAAAAAQABAAAAdrgACCgwc0NTeDiYozCQkvOTo9GTmDKy8aFy+NOBA7CTswgywJDTIuEjYFIY0JNYMtKTEFiRU8Pjwygy4ws4owPyCKwsMAJSTEgiQlgsbIAMrO0dKDGMTViREZ14kYGRGK38nHguHEJcvTyIEAIfkECQgAAAAsAAAAABAAEAAAB2iAAIKDAggPg4iJAAMJCRUAJRIqiRGCBI0WQEEJJkWDERkYAAUKEBc4Po1GiKKJHkJDNEeKig4URLS0ICImJZAkuQAhjSi/wQyNKcGDCyMnk8u5rYrTgqDVghgZlYjcACTA1sslvtHRgQAh+QQJCAAAACwAAAAAEAAQAAAHZ4AAgoOEhYaCJSWHgxGDJCQARAtOUoQRGRiFD0kJUYWZhUhKT1OLhR8wBaaFBzQ1NwAlkIszCQkvsbOHL7Y4q4IuEjaqq0ZQD5+GEEsJTDCMmIUhtgk1lo6QFUwJVDKLiYJNUd6/hoEAIfkECQgAAAAsAAAAABAAEAAAB2iAAIKDhIWGgiUlh4MRgyQkjIURGRiGGBmNhJWHm4uen4ICCA+IkIsDCQkVACWmhwSpFqAABQoQF6ALTkWFnYMrVlhWvIKTlSAiJiVVPqlGhJkhqShHV1lCW4cMqSkAR1ofiwsjJyqGgQAh+QQJCAAAACwAAAAAEAAQAAAHZ4AAgoOEhYaCJSWHgxGDJCSMhREZGIYYGY2ElYebi56fhyWQniSKAKKfpaCLFlAPhl0gXYNGEwkhGYREUywag1wJwSkHNDU3D0kJYIMZQwk8MjPBLx9eXwuETVEyAC/BOKsuEjYFhoEAIfkECQgAAAAsAAAAABAAEAAAB2eAAIKDhIWGgiUlh4MRgyQkjIURGRiGGBmNhJWHm4ueICImip6CIQkJKJ4kigynKaqKCyMnKqSEK05StgAGQRxPYZaENqccFgIID4KXmQBhXFkzDgOnFYLNgltaSAAEpxa7BQoQF4aBACH5BAkIAAAALAAAAAAQABAAAAdogACCg4SFggJiPUqCJSWGgkZjCUwZACQkgxGEXAmdT4UYGZqCGWQ+IjKGGIUwPzGPhAc0NTewhDOdL7Ykji+dOLuOLhI2BbaFETICx4MlQitdqoUsCQ2vhKGjglNfU0SWmILaj43M5oEAOwAAAAAAAAAAAA==) no-repeat center left; }
|
|
||||||
#full_list { padding: 0; list-style: none; margin-left: 0; margin-top: 80px; font-size: 1.1em; }
|
|
||||||
#full_list ul { padding: 0; }
|
|
||||||
#full_list li { padding: 0; margin: 0; list-style: none; }
|
|
||||||
#full_list li .item { padding: 5px 5px 5px 12px; }
|
|
||||||
#noresults { padding: 7px 12px; background: #fff; }
|
|
||||||
#content.insearch #noresults { margin-left: 7px; }
|
|
||||||
li.collapsed ul { display: none; }
|
|
||||||
li a.toggle { cursor: default; position: relative; left: -5px; top: 4px; text-indent: -999px; width: 10px; height: 9px; margin-left: -10px; display: block; float: left; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAYAAABb0P4QAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK8AAACvABQqw0mAAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAAVdEVYdENyZWF0aW9uIFRpbWUAMy8xNC8wOeNZPpQAAAE2SURBVDiNrZTBccIwEEXfelIAHUA6CZ24BGaWO+FuzZAK4k6gg5QAdGAq+Bxs2Yqx7BzyL7Llp/VfzZeQhCTc/ezuGzKKnKSzpCxXJM8fwNXda3df5RZETlIt6YUzSQDs93sl8w3wBZxCCE10GM1OcWbWjB2mWgEH4Mfdyxm3PSepBHibgQE2wLe7r4HjEidpnXMYdQPKEMJcsZ4zs2POYQOcaPfwMVOo58zsAdMt18BuoVDPxUJRacELbXv3hUIX2vYmOUvi8C8ydz/ThjXrqKqqLbDIAdsCKBd+Wo7GWa7o9qzOQHVVVXeAbs+yHHCH4aTsaCOQqunmUy1yBUAXkdMIfMlgF5EXLo2OpV/c/Up7jG4hhHcYLgWzAZXUc2b2ixsfvc/RmNNfOXD3Q/oeL9axJE1yT9IOoUu6MGUkAAAAAElFTkSuQmCC) no-repeat bottom left; }
|
|
||||||
li.collapsed a.toggle { opacity: 0.5; cursor: default; background-position: top left; }
|
|
||||||
li { color: #888; cursor: pointer; }
|
|
||||||
li.deprecated { text-decoration: line-through; font-style: italic; }
|
|
||||||
li.odd { background: #f0f0f0; }
|
|
||||||
li.even { background: #fafafa; }
|
|
||||||
.item:hover { background: #ddd; }
|
|
||||||
li small:before { content: "("; }
|
|
||||||
li small:after { content: ")"; }
|
|
||||||
li small.search_info { display: none; }
|
|
||||||
a, a:visited { text-decoration: none; color: #05a; }
|
|
||||||
li.clicked > .item { background: #05a; color: #ccc; }
|
|
||||||
li.clicked > .item a, li.clicked > .item a:visited { color: #eee; }
|
|
||||||
li.clicked > .item a.toggle { opacity: 0.5; background-position: bottom right; }
|
|
||||||
li.collapsed.clicked a.toggle { background-position: top right; }
|
|
||||||
#search input { border: 1px solid #bbb; border-radius: 3px; }
|
|
||||||
#full_list_nav { margin-left: 10px; font-size: 0.9em; display: block; color: #aaa; }
|
|
||||||
#full_list_nav a, #nav a:visited { color: #358; }
|
|
||||||
#full_list_nav a:hover { background: transparent; color: #5af; }
|
|
||||||
#full_list_nav span:after { content: ' | '; }
|
|
||||||
#full_list_nav span:last-child:after { content: ''; }
|
|
||||||
|
|
||||||
#content h1 { margin-top: 0; }
|
|
||||||
li { white-space: nowrap; cursor: normal; }
|
|
||||||
li small { display: block; font-size: 0.8em; }
|
|
||||||
li small:before { content: ""; }
|
|
||||||
li small:after { content: ""; }
|
|
||||||
li small.search_info { display: none; }
|
|
||||||
#search { width: 170px; position: static; margin: 3px; margin-left: 10px; font-size: 0.9em; color: #888; padding-left: 0; padding-right: 24px; }
|
|
||||||
#content.insearch #search { background-position: center right; }
|
|
||||||
#search input { width: 110px; }
|
|
||||||
|
|
||||||
#full_list.insearch ul { display: block; }
|
|
||||||
#full_list.insearch .item { display: none; }
|
|
||||||
#full_list.insearch .found { display: block; padding-left: 11px !important; }
|
|
||||||
#full_list.insearch li a.toggle { display: none; }
|
|
||||||
#full_list.insearch li small.search_info { display: block; }
|
|
||||||
@@ -1,497 +0,0 @@
|
|||||||
html {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
|
||||||
font-size: 13px;
|
|
||||||
width: 100%;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
display: flex;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
}
|
|
||||||
|
|
||||||
#nav {
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
border: 0;
|
|
||||||
border-right: 1px dotted #eee;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
.nav_wrap {
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
width: 20%;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
flex-shrink: 0;
|
|
||||||
-webkit-flex-shrink: 0;
|
|
||||||
-ms-flex: 1 0;
|
|
||||||
}
|
|
||||||
#resizer {
|
|
||||||
position: absolute;
|
|
||||||
right: -5px;
|
|
||||||
top: 0;
|
|
||||||
width: 10px;
|
|
||||||
height: 100%;
|
|
||||||
cursor: col-resize;
|
|
||||||
z-index: 9999;
|
|
||||||
}
|
|
||||||
#main {
|
|
||||||
flex: 5 1;
|
|
||||||
-webkit-flex: 5 1;
|
|
||||||
-ms-flex: 5 1;
|
|
||||||
outline: none;
|
|
||||||
position: relative;
|
|
||||||
background: #fff;
|
|
||||||
padding: 1.2em;
|
|
||||||
padding-top: 0.2em;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 920px) {
|
|
||||||
.nav_wrap { width: 100%; top: 0; right: 0; overflow: visible; position: absolute; }
|
|
||||||
#resizer { display: none; }
|
|
||||||
#nav {
|
|
||||||
z-index: 9999;
|
|
||||||
background: #fff;
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
top: 40px;
|
|
||||||
right: 12px;
|
|
||||||
width: 500px;
|
|
||||||
max-width: 80%;
|
|
||||||
height: 80%;
|
|
||||||
overflow-y: scroll;
|
|
||||||
border: 1px solid #999;
|
|
||||||
border-collapse: collapse;
|
|
||||||
box-shadow: -7px 5px 25px #aaa;
|
|
||||||
border-radius: 2px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 920px) {
|
|
||||||
body { height: 100%; overflow: hidden; }
|
|
||||||
#main { height: 100%; overflow: auto; }
|
|
||||||
#search { display: none; }
|
|
||||||
}
|
|
||||||
|
|
||||||
#main img { max-width: 100%; }
|
|
||||||
h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
|
|
||||||
h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
|
|
||||||
h1.title { margin-bottom: 10px; }
|
|
||||||
h1.alphaindex { margin-top: 0; font-size: 22px; }
|
|
||||||
h2 {
|
|
||||||
padding: 0;
|
|
||||||
padding-bottom: 3px;
|
|
||||||
border-bottom: 1px #aaa solid;
|
|
||||||
font-size: 1.4em;
|
|
||||||
margin: 1.8em 0 0.5em;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
h2 small { font-weight: normal; font-size: 0.7em; display: inline; position: absolute; right: 0; }
|
|
||||||
h2 small a {
|
|
||||||
display: block;
|
|
||||||
height: 20px;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
border-bottom: 0;
|
|
||||||
border-top-left-radius: 5px;
|
|
||||||
background: #f8f8f8;
|
|
||||||
position: relative;
|
|
||||||
padding: 2px 7px;
|
|
||||||
}
|
|
||||||
.clear { clear: both; }
|
|
||||||
.inline { display: inline; }
|
|
||||||
.inline p:first-child { display: inline; }
|
|
||||||
.docstring, .tags, #filecontents { font-size: 15px; line-height: 1.5145em; }
|
|
||||||
.docstring p > code, .docstring p > tt, .tags p > code, .tags p > tt {
|
|
||||||
color: #c7254e; background: #f9f2f4; padding: 2px 4px; font-size: 1em;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
|
|
||||||
.docstring h1 { font-size: 1.2em; }
|
|
||||||
.docstring h2 { font-size: 1.1em; }
|
|
||||||
.docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
|
|
||||||
.summary_desc .object_link a, .docstring .object_link a {
|
|
||||||
font-family: monospace; font-size: 1.05em;
|
|
||||||
color: #05a; background: #EDF4FA; padding: 2px 4px; font-size: 1em;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
.rdoc-term { padding-right: 25px; font-weight: bold; }
|
|
||||||
.rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; }
|
|
||||||
.summary_desc pre.code .object_link a, .docstring pre.code .object_link a {
|
|
||||||
padding: 0px; background: inherit; color: inherit; border-radius: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* style for <table> */
|
|
||||||
#filecontents table, .docstring table { border-collapse: collapse; }
|
|
||||||
#filecontents table th, #filecontents table td,
|
|
||||||
.docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; }
|
|
||||||
#filecontents table tr:nth-child(odd),
|
|
||||||
.docstring table tr:nth-child(odd) { background: #eee; }
|
|
||||||
#filecontents table tr:nth-child(even),
|
|
||||||
.docstring table tr:nth-child(even) { background: #fff; }
|
|
||||||
#filecontents table th, .docstring table th { background: #fff; }
|
|
||||||
|
|
||||||
/* style for <ul> */
|
|
||||||
#filecontents li > p, .docstring li > p { margin: 0px; }
|
|
||||||
#filecontents ul, .docstring ul { padding-left: 20px; }
|
|
||||||
/* style for <dl> */
|
|
||||||
#filecontents dl, .docstring dl { border: 1px solid #ccc; }
|
|
||||||
#filecontents dt, .docstring dt { background: #ddd; font-weight: bold; padding: 3px 5px; }
|
|
||||||
#filecontents dd, .docstring dd { padding: 5px 0px; margin-left: 18px; }
|
|
||||||
#filecontents dd > p, .docstring dd > p { margin: 0px; }
|
|
||||||
|
|
||||||
.note {
|
|
||||||
color: #222;
|
|
||||||
margin: 20px 0;
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid #eee;
|
|
||||||
border-radius: 3px;
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
.docstring .note {
|
|
||||||
border-left-color: #ccc;
|
|
||||||
border-left-width: 5px;
|
|
||||||
}
|
|
||||||
.note.todo { background: #ffffc5; border-color: #ececaa; }
|
|
||||||
.note.returns_void { background: #efefef; }
|
|
||||||
.note.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
|
||||||
.note.title.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
|
||||||
.note.private { background: #ffffc5; border-color: #ececaa; }
|
|
||||||
.note.title { padding: 3px 6px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; display: inline; }
|
|
||||||
.summary_signature + .note.title { margin-left: 7px; }
|
|
||||||
h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
|
|
||||||
.note.title { background: #efefef; }
|
|
||||||
.note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
|
||||||
.note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
|
|
||||||
.note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
|
|
||||||
.note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
|
|
||||||
.note.title.not_defined_here { background: transparent; border: none; font-style: italic; }
|
|
||||||
.discussion .note { margin-top: 6px; }
|
|
||||||
.discussion .note:first-child { margin-top: 0; }
|
|
||||||
|
|
||||||
h3.inherited {
|
|
||||||
font-style: italic;
|
|
||||||
font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
|
|
||||||
font-weight: normal;
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
margin-top: 12px;
|
|
||||||
margin-bottom: 3px;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
p.inherited {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
margin-left: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.box_info dl {
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
width: 100%;
|
|
||||||
font-size: 1em;
|
|
||||||
display: flex;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: -ms-flexbox;
|
|
||||||
}
|
|
||||||
.box_info dl dt {
|
|
||||||
flex-shrink: 0;
|
|
||||||
-webkit-flex-shrink: 1;
|
|
||||||
-ms-flex-shrink: 1;
|
|
||||||
width: 100px;
|
|
||||||
text-align: right;
|
|
||||||
font-weight: bold;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
border-width: 1px 0px 0px 1px;
|
|
||||||
padding: 6px 0;
|
|
||||||
padding-right: 10px;
|
|
||||||
}
|
|
||||||
.box_info dl dd {
|
|
||||||
flex-grow: 1;
|
|
||||||
-webkit-flex-grow: 1;
|
|
||||||
-ms-flex: 1;
|
|
||||||
max-width: 420px;
|
|
||||||
padding: 6px 0;
|
|
||||||
padding-right: 20px;
|
|
||||||
border: 1px solid #aaa;
|
|
||||||
border-width: 1px 1px 0 0;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.box_info dl:last-child > * {
|
|
||||||
border-bottom: 1px solid #aaa;
|
|
||||||
}
|
|
||||||
.box_info dl:nth-child(odd) > * { background: #eee; }
|
|
||||||
.box_info dl:nth-child(even) > * { background: #fff; }
|
|
||||||
.box_info dl > * { margin: 0; }
|
|
||||||
|
|
||||||
ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
|
|
||||||
.index_inline_list { padding-left: 0; font-size: 1.1em; }
|
|
||||||
|
|
||||||
.index_inline_list li {
|
|
||||||
list-style: none;
|
|
||||||
display: inline-block;
|
|
||||||
padding: 0 12px;
|
|
||||||
line-height: 30px;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl.constants { margin-left: 10px; }
|
|
||||||
dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
|
|
||||||
dl.constants.compact dt { display: inline-block; font-weight: normal }
|
|
||||||
dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
|
|
||||||
dl.constants .docstring .note:first-child { margin-top: 5px; }
|
|
||||||
|
|
||||||
.summary_desc {
|
|
||||||
margin-left: 32px;
|
|
||||||
display: block;
|
|
||||||
font-family: sans-serif;
|
|
||||||
font-size: 1.1em;
|
|
||||||
margin-top: 8px;
|
|
||||||
line-height: 1.5145em;
|
|
||||||
margin-bottom: 0.8em;
|
|
||||||
}
|
|
||||||
.summary_desc tt { font-size: 0.9em; }
|
|
||||||
dl.constants .note { padding: 2px 6px; padding-right: 12px; margin-top: 6px; }
|
|
||||||
dl.constants .docstring { margin-left: 32px; font-size: 0.9em; font-weight: normal; }
|
|
||||||
dl.constants .tags { padding-left: 32px; font-size: 0.9em; line-height: 0.8em; }
|
|
||||||
dl.constants .discussion *:first-child { margin-top: 0; }
|
|
||||||
dl.constants .discussion *:last-child { margin-bottom: 0; }
|
|
||||||
|
|
||||||
.method_details { border-top: 1px dotted #ccc; margin-top: 25px; padding-top: 0; }
|
|
||||||
.method_details.first { border: 0; margin-top: 5px; }
|
|
||||||
.method_details.first h3.signature { margin-top: 1em; }
|
|
||||||
p.signature, h3.signature {
|
|
||||||
font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
|
|
||||||
padding: 6px 10px; margin-top: 1em;
|
|
||||||
background: #E8F4FF; border: 1px solid #d8d8e5; border-radius: 5px;
|
|
||||||
}
|
|
||||||
p.signature tt,
|
|
||||||
h3.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
|
|
||||||
p.signature .overload,
|
|
||||||
h3.signature .overload { display: block; }
|
|
||||||
p.signature .extras,
|
|
||||||
h3.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
|
|
||||||
p.signature .not_defined_here,
|
|
||||||
h3.signature .not_defined_here,
|
|
||||||
p.signature .aliases,
|
|
||||||
h3.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
|
|
||||||
p.signature .aliases .names,
|
|
||||||
h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
|
|
||||||
|
|
||||||
.tags .tag_title { font-size: 1.05em; margin-bottom: 0; font-weight: bold; }
|
|
||||||
.tags .tag_title tt { color: initial; padding: initial; background: initial; }
|
|
||||||
.tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
|
|
||||||
.tags ul li { margin-bottom: 3px; }
|
|
||||||
.tags ul .name { font-family: monospace; font-weight: bold; }
|
|
||||||
.tags ul .note { padding: 3px 6px; }
|
|
||||||
.tags { margin-bottom: 12px; }
|
|
||||||
|
|
||||||
.tags .examples .tag_title { margin-bottom: 10px; font-weight: bold; }
|
|
||||||
.tags .examples .inline p { padding: 0; margin: 0; font-weight: bold; font-size: 1em; }
|
|
||||||
.tags .examples .inline p:before { content: "▸"; font-size: 1em; margin-right: 5px; }
|
|
||||||
|
|
||||||
.tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
|
|
||||||
.tags .overload .overload_item .signature {
|
|
||||||
padding: 2px 8px;
|
|
||||||
background: #F1F8FF; border: 1px solid #d8d8e5; border-radius: 3px;
|
|
||||||
}
|
|
||||||
.tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
|
|
||||||
.tags .overload .docstring { margin-top: 15px; }
|
|
||||||
|
|
||||||
.defines { display: none; }
|
|
||||||
|
|
||||||
#method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
|
|
||||||
|
|
||||||
.showSource { font-size: 0.9em; }
|
|
||||||
.showSource a, .showSource a:visited { text-decoration: none; color: #666; }
|
|
||||||
|
|
||||||
#content a, #content a:visited { text-decoration: none; color: #05a; }
|
|
||||||
#content a:hover { background: #ffffa5; }
|
|
||||||
|
|
||||||
ul.summary {
|
|
||||||
list-style: none;
|
|
||||||
font-family: monospace;
|
|
||||||
font-size: 1em;
|
|
||||||
line-height: 1.5em;
|
|
||||||
padding-left: 0px;
|
|
||||||
}
|
|
||||||
ul.summary a, ul.summary a:visited {
|
|
||||||
text-decoration: none; font-size: 1.1em;
|
|
||||||
}
|
|
||||||
ul.summary li { margin-bottom: 5px; }
|
|
||||||
.summary_signature { padding: 4px 8px; background: #f8f8f8; border: 1px solid #f0f0f0; border-radius: 5px; }
|
|
||||||
.summary_signature:hover { background: #CFEBFF; border-color: #A4CCDA; cursor: pointer; }
|
|
||||||
.summary_signature.deprecated { background: #ffe5e5; border-color: #e9dada; }
|
|
||||||
ul.summary.compact li { display: inline-block; margin: 0px 5px 0px 0px; line-height: 2.6em;}
|
|
||||||
ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; }
|
|
||||||
#content .summary_signature:hover a,
|
|
||||||
#content .summary_signature:hover a:visited {
|
|
||||||
background: transparent;
|
|
||||||
color: #049;
|
|
||||||
}
|
|
||||||
|
|
||||||
p.inherited a { font-family: monospace; font-size: 0.9em; }
|
|
||||||
p.inherited { word-spacing: 5px; font-size: 1.2em; }
|
|
||||||
|
|
||||||
p.children { font-size: 1.2em; }
|
|
||||||
p.children a { font-size: 0.9em; }
|
|
||||||
p.children strong { font-size: 0.8em; }
|
|
||||||
p.children strong.modules { padding-left: 5px; }
|
|
||||||
|
|
||||||
ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
|
|
||||||
ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
|
|
||||||
ul.fullTree li { text-align: center; padding-top: 18px; padding-bottom: 12px; background: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAHtJREFUeNqMzrEJAkEURdGzuhgZbSoYWcAWoBVsB4JgZAGmphsZCZYzTQgWNCYrDN9RvMmHx+X916SUBFbo8CzD1idXrLErw1mQttgXtyrOcQ/Ny5p4Qh+2XqLYYazsPWNTiuMkRxa4vcV+evuNAUOLIx5+c2hyzv7hNQC67Q+/HHmlEwAAAABJRU5ErkJggg==) no-repeat top center; }
|
|
||||||
ul.fullTree li:first-child { padding-top: 0; background: transparent; }
|
|
||||||
ul.fullTree li:last-child { padding-bottom: 0; }
|
|
||||||
.showAll ul.fullTree { display: block; }
|
|
||||||
.showAll .inheritName { display: none; }
|
|
||||||
|
|
||||||
#search { position: absolute; right: 12px; top: 0px; z-index: 9000; }
|
|
||||||
#search a {
|
|
||||||
display: block; float: left;
|
|
||||||
padding: 4px 8px; text-decoration: none; color: #05a; fill: #05a;
|
|
||||||
border: 1px solid #d8d8e5;
|
|
||||||
border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;
|
|
||||||
background: #F1F8FF;
|
|
||||||
box-shadow: -1px 1px 3px #ddd;
|
|
||||||
}
|
|
||||||
#search a:hover { background: #f5faff; color: #06b; fill: #06b; }
|
|
||||||
#search a.active {
|
|
||||||
background: #568; padding-bottom: 20px; color: #fff; fill: #fff;
|
|
||||||
border: 1px solid #457;
|
|
||||||
border-top-left-radius: 5px; border-top-right-radius: 5px;
|
|
||||||
}
|
|
||||||
#search a.inactive { color: #999; fill: #999; }
|
|
||||||
.inheritanceTree, .toggleDefines {
|
|
||||||
float: right;
|
|
||||||
border-left: 1px solid #aaa;
|
|
||||||
position: absolute; top: 0; right: 0;
|
|
||||||
height: 100%;
|
|
||||||
background: #f6f6f6;
|
|
||||||
padding: 5px;
|
|
||||||
min-width: 55px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu { font-size: 1.3em; color: #bbb; }
|
|
||||||
#menu .title, #menu a { font-size: 0.7em; }
|
|
||||||
#menu .title a { font-size: 1em; }
|
|
||||||
#menu .title { color: #555; }
|
|
||||||
#menu a, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
|
||||||
#menu a:hover { color: #05a; }
|
|
||||||
|
|
||||||
#footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
|
|
||||||
#footer a, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
|
|
||||||
#footer a:hover { color: #05a; }
|
|
||||||
|
|
||||||
#listing ul.alpha { font-size: 1.1em; }
|
|
||||||
#listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
|
|
||||||
#listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
|
|
||||||
#listing ul.alpha ul { margin: 0; padding-left: 15px; }
|
|
||||||
#listing ul small { color: #666; font-size: 0.7em; }
|
|
||||||
|
|
||||||
li.r1 { background: #f0f0f0; }
|
|
||||||
li.r2 { background: #fafafa; }
|
|
||||||
|
|
||||||
#content ul.summary li.deprecated .summary_signature a,
|
|
||||||
#content ul.summary li.deprecated .summary_signature a:visited { text-decoration: line-through; font-style: italic; }
|
|
||||||
|
|
||||||
#toc {
|
|
||||||
position: relative;
|
|
||||||
float: right;
|
|
||||||
overflow-x: auto;
|
|
||||||
right: -3px;
|
|
||||||
margin-left: 20px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
padding: 20px; padding-right: 30px;
|
|
||||||
max-width: 300px;
|
|
||||||
z-index: 5000;
|
|
||||||
background: #fefefe;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
box-shadow: -2px 2px 6px #bbb;
|
|
||||||
}
|
|
||||||
#toc .title { margin: 0; }
|
|
||||||
#toc ol { padding-left: 1.8em; }
|
|
||||||
#toc li { font-size: 1.1em; line-height: 1.7em; }
|
|
||||||
#toc > ol > li { font-size: 1.1em; font-weight: bold; }
|
|
||||||
#toc ol > li > ol { font-size: 0.9em; }
|
|
||||||
#toc ol ol > li > ol { padding-left: 2.3em; }
|
|
||||||
#toc ol + li { margin-top: 0.3em; }
|
|
||||||
#toc.hidden { padding: 10px; background: #fefefe; box-shadow: none; }
|
|
||||||
#toc.hidden:hover { background: #fafafa; }
|
|
||||||
#filecontents h1 + #toc.nofloat { margin-top: 0; }
|
|
||||||
@media (max-width: 560px) {
|
|
||||||
#toc {
|
|
||||||
margin-left: 0;
|
|
||||||
margin-top: 16px;
|
|
||||||
float: none;
|
|
||||||
max-width: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* syntax highlighting */
|
|
||||||
.source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
|
|
||||||
#filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
|
|
||||||
#filecontents pre.code, .docstring pre.code { display: block; }
|
|
||||||
.source_code .lines { padding-right: 12px; color: #555; text-align: right; }
|
|
||||||
#filecontents pre.code, .docstring pre.code,
|
|
||||||
.tags pre.example {
|
|
||||||
padding: 9px 14px;
|
|
||||||
margin-top: 4px;
|
|
||||||
border: 1px solid #e1e1e8;
|
|
||||||
background: #f7f7f9;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 1em;
|
|
||||||
overflow-x: auto;
|
|
||||||
line-height: 1.2em;
|
|
||||||
}
|
|
||||||
pre.code { color: #000; tab-size: 2; }
|
|
||||||
pre.code .info.file { color: #555; }
|
|
||||||
pre.code .val { color: #036A07; }
|
|
||||||
pre.code .tstring_content,
|
|
||||||
pre.code .heredoc_beg, pre.code .heredoc_end,
|
|
||||||
pre.code .qwords_beg, pre.code .qwords_end, pre.code .qwords_sep,
|
|
||||||
pre.code .words_beg, pre.code .words_end, pre.code .words_sep,
|
|
||||||
pre.code .qsymbols_beg, pre.code .qsymbols_end, pre.code .qsymbols_sep,
|
|
||||||
pre.code .symbols_beg, pre.code .symbols_end, pre.code .symbols_sep,
|
|
||||||
pre.code .tstring, pre.code .dstring { color: #036A07; }
|
|
||||||
pre.code .fid, pre.code .rubyid_new, pre.code .rubyid_to_s,
|
|
||||||
pre.code .rubyid_to_sym, pre.code .rubyid_to_f,
|
|
||||||
pre.code .dot + pre.code .id,
|
|
||||||
pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
|
|
||||||
pre.code .comment { color: #0066FF; }
|
|
||||||
pre.code .const, pre.code .constant { color: #585CF6; }
|
|
||||||
pre.code .label,
|
|
||||||
pre.code .symbol { color: #C5060B; }
|
|
||||||
pre.code .kw,
|
|
||||||
pre.code .rubyid_require,
|
|
||||||
pre.code .rubyid_extend,
|
|
||||||
pre.code .rubyid_include { color: #0000FF; }
|
|
||||||
pre.code .ivar { color: #318495; }
|
|
||||||
pre.code .gvar,
|
|
||||||
pre.code .rubyid_backref,
|
|
||||||
pre.code .rubyid_nth_ref { color: #6D79DE; }
|
|
||||||
pre.code .regexp, .dregexp { color: #036A07; }
|
|
||||||
pre.code a { border-bottom: 1px dotted #bbf; }
|
|
||||||
/* inline code */
|
|
||||||
*:not(pre) > code {
|
|
||||||
padding: 1px 3px 1px 3px;
|
|
||||||
border: 1px solid #E1E1E8;
|
|
||||||
background: #F7F7F9;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Color fix for links */
|
|
||||||
#content .summary_desc pre.code .id > .object_link a, /* identifier */
|
|
||||||
#content .docstring pre.code .id > .object_link a { color: #0085FF; }
|
|
||||||
#content .summary_desc pre.code .const > .object_link a, /* constant */
|
|
||||||
#content .docstring pre.code .const > .object_link a { color: #585CF6; }
|
|
||||||
@@ -1,249 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
File: README
|
|
||||||
|
|
||||||
— 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 = "";
|
|
||||||
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="file_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</a> »
|
|
||||||
<span class="title">File: README</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"><div id='filecontents'>
|
|
||||||
<h1 id="label-Readme">Readme</h1>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<h2 id="label-Synopsis">Synopsis</h2>
|
|
||||||
|
|
||||||
<p><code>HA Proxy</code> is a very powerful and popular open source load
|
|
||||||
balancer to balance incoming requests between multiple instances of web-,
|
|
||||||
application- or database servers etc.</p>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<p><strong><em>Attention: Never use this puppet module on systems which have
|
|
||||||
been previously configured manually. It is impossible to predict how and
|
|
||||||
what would have been configured, hence previous configurations outside the
|
|
||||||
scope of this module may be overwritten! Automated configurations require a
|
|
||||||
test environment to verify that the module suits the purpose intended by
|
|
||||||
the user, as well as tune the parameters, before deploying into live
|
|
||||||
production</em></strong></p>
|
|
||||||
|
|
||||||
<h2 id="label-Features">Features</h2>
|
|
||||||
|
|
||||||
<p>INSTALLATION</p>
|
|
||||||
<ul><li>
|
|
||||||
<p>install rpm binaries</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<p>CONFIGURATION</p>
|
|
||||||
<ul><li>
|
|
||||||
<p>manage haproxy user</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage directories (file system permissions, selinux context)</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage files (file system permissions, content, selinux context)</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage proxy instances through a define</p>
|
|
||||||
</li><li>
|
|
||||||
<p>front-end options</p>
|
|
||||||
</li><li>
|
|
||||||
<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>
|
|
||||||
<ul><li>
|
|
||||||
<p>manage haproxy service</p>
|
|
||||||
</li><li>
|
|
||||||
<p>restart service after changes in the configuration</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Dependencies">Dependencies</h2>
|
|
||||||
|
|
||||||
<p>All dependencies must be included in the catalogue.</p>
|
|
||||||
<ul><li>
|
|
||||||
<p><a
|
|
||||||
href="https://sourcecode.confdroid.com/12WW1160/cd_resources">cd_resources</a>
|
|
||||||
for managing yum base repos</p>
|
|
||||||
</li><li>
|
|
||||||
<p><a href="https://sourcecode.confdroid.com/12ww1160/cd_concat">cd_concat</a>
|
|
||||||
or <a href="https://github.com/puppetlabs/puppetlabs-concat">concat</a> for
|
|
||||||
managing file fragments</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Deployment">Deployment</h2>
|
|
||||||
<ul><li>
|
|
||||||
<p>native Puppet deployment</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<p>via site.pp or nodes.pp</p>
|
|
||||||
|
|
||||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
|
||||||
include haproxy_cd
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
<ul><li>
|
|
||||||
<p>through Foreman:</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<p>In order to apply parameters through Foreman,
|
|
||||||
<strong>haproxy_cd::params</strong> must be added to the host or host group
|
|
||||||
in question.</p>
|
|
||||||
|
|
||||||
<p>See <a
|
|
||||||
href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more
|
|
||||||
details about class deployment on Confdroid.com</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="label-Parameters">Parameters</h2>
|
|
||||||
|
|
||||||
<p>The parameters are documented via puppet strings and <a
|
|
||||||
href="/docs/index.html">listed here</a>. Simply open in web browser.</p>
|
|
||||||
|
|
||||||
<h2 id="label-Proxy+Configuration">Proxy Configuration</h2>
|
|
||||||
|
|
||||||
<p>The proxy instances are configured in /etc/haproxy/haproxy.cfg, which is
|
|
||||||
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">haproxy_cd::server::proxy { 'testing':
|
|
||||||
haproxy_fqdn => 'node.example.net',
|
|
||||||
frontend_name => 'test01-frontend',
|
|
||||||
frontend_mode => 'http',
|
|
||||||
acl_rule => ['too_fast fe_sess_rate ge 10',
|
|
||||||
'network_allowed src 0.0.0.0/0'],
|
|
||||||
backend_name => 'test01-backend',
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p>This allows the puppet module to create the sections in the configuration
|
|
||||||
file as required. The haproxy service will be restarted after the changes
|
|
||||||
in the configuration file are made. <code>haproxy_fqdn</code>
|
|
||||||
<strong>must</strong> contain the fqdn of the haproxy
|
|
||||||
<strong>server</strong> where this should be configured, otherwise the
|
|
||||||
templates are not being populated. Multiple ACLs need to be added as array,
|
|
||||||
and will create one line each.</p>
|
|
||||||
|
|
||||||
<h2 id="label-SELINUX">SELINUX</h2>
|
|
||||||
|
|
||||||
<p>All files and directories are configured with correct selinux context. If
|
|
||||||
selinux is disabled, these contexts are ignored.</p>
|
|
||||||
|
|
||||||
<h2 id="label-Known+Problems">Known Problems</h2>
|
|
||||||
|
|
||||||
<h2 id="label-Support">Support</h2>
|
|
||||||
<ul><li>
|
|
||||||
<p>OS: Rocky 9</p>
|
|
||||||
</li><li>
|
|
||||||
<p>Puppet 8</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Tests">Tests</h2>
|
|
||||||
<ul><li>
|
|
||||||
<p>Puppet Lint</p>
|
|
||||||
</li><li>
|
|
||||||
<p>excluded tests:</p>
|
|
||||||
<ul><li>
|
|
||||||
<p><code>--no-class_inherits_from_params_class-check</code>:relevant only to
|
|
||||||
non-supported outdated puppet versions</p>
|
|
||||||
</li><li>
|
|
||||||
<p><code>--no-variable_scope-check</code>: not applicable as we are inheriting
|
|
||||||
parameters from params class. the lint check does not distinguish between
|
|
||||||
facts and inherited parameters.</p>
|
|
||||||
</li><li>
|
|
||||||
<p><code>--no-80chars-check</code>: it is not always possible to stay within
|
|
||||||
80 characters, although typically only occurring on the parameter vault
|
|
||||||
<code>params.pp</code>.</p>
|
|
||||||
</li><li>
|
|
||||||
<p><code>--no-arrow_alignment-check</code>: this check leads to actually not
|
|
||||||
having am easily readable arrow alignment, as this checks <code>per
|
|
||||||
block</code>, not per class.</p>
|
|
||||||
</li></ul>
|
|
||||||
</li><li>
|
|
||||||
<p>Puppet Parser</p>
|
|
||||||
</li><li>
|
|
||||||
<p>ERB Template Parser</p>
|
|
||||||
</li><li>
|
|
||||||
<p>Sonar Quality Gate</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Contact+Us">Contact Us</h2>
|
|
||||||
|
|
||||||
<p><a href="https://confdroid.com/contact/">contact Us</a></p>
|
|
||||||
|
|
||||||
<h2 id="label-Disclaimer">Disclaimer</h2>
|
|
||||||
|
|
||||||
<p>ConfDroid as entity is entirely independent from Puppet. We provide custom
|
|
||||||
configuration modules, written for specific purposes and specific
|
|
||||||
environments. The modules are tested and supported only as documented, and
|
|
||||||
require testing in designated environments (i.e. lab or development
|
|
||||||
environments) for parameter tuning etc. before deploying into production
|
|
||||||
environments.</p>
|
|
||||||
</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>
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Documentation by YARD 0.9.26</title>
|
|
||||||
</head>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
|
||||||
var name = match ? match[1] : 'index.html';
|
|
||||||
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
|
||||||
window.top.location = name;
|
|
||||||
</script>
|
|
||||||
<noscript>
|
|
||||||
<h1>Oops!</h1>
|
|
||||||
<h2>YARD requires JavaScript!</h2>
|
|
||||||
</noscript>
|
|
||||||
</html>
|
|
||||||
249
doc/index.html
249
doc/index.html
@@ -1,249 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
File: README
|
|
||||||
|
|
||||||
— 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 = "";
|
|
||||||
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</a> »
|
|
||||||
<span class="title">File: README</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"><div id='filecontents'>
|
|
||||||
<h1 id="label-Readme">Readme</h1>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<h2 id="label-Synopsis">Synopsis</h2>
|
|
||||||
|
|
||||||
<p><code>HA Proxy</code> is a very powerful and popular open source load
|
|
||||||
balancer to balance incoming requests between multiple instances of web-,
|
|
||||||
application- or database servers etc.</p>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<p><strong><em>Attention: Never use this puppet module on systems which have
|
|
||||||
been previously configured manually. It is impossible to predict how and
|
|
||||||
what would have been configured, hence previous configurations outside the
|
|
||||||
scope of this module may be overwritten! Automated configurations require a
|
|
||||||
test environment to verify that the module suits the purpose intended by
|
|
||||||
the user, as well as tune the parameters, before deploying into live
|
|
||||||
production</em></strong></p>
|
|
||||||
|
|
||||||
<h2 id="label-Features">Features</h2>
|
|
||||||
|
|
||||||
<p>INSTALLATION</p>
|
|
||||||
<ul><li>
|
|
||||||
<p>install rpm binaries</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<p>CONFIGURATION</p>
|
|
||||||
<ul><li>
|
|
||||||
<p>manage haproxy user</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage directories (file system permissions, selinux context)</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage files (file system permissions, content, selinux context)</p>
|
|
||||||
</li><li>
|
|
||||||
<p>manage proxy instances through a define</p>
|
|
||||||
</li><li>
|
|
||||||
<p>front-end options</p>
|
|
||||||
</li><li>
|
|
||||||
<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>
|
|
||||||
<ul><li>
|
|
||||||
<p>manage haproxy service</p>
|
|
||||||
</li><li>
|
|
||||||
<p>restart service after changes in the configuration</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Dependencies">Dependencies</h2>
|
|
||||||
|
|
||||||
<p>All dependencies must be included in the catalogue.</p>
|
|
||||||
<ul><li>
|
|
||||||
<p><a
|
|
||||||
href="https://sourcecode.confdroid.com/12WW1160/cd_resources">cd_resources</a>
|
|
||||||
for managing yum base repos</p>
|
|
||||||
</li><li>
|
|
||||||
<p><a href="https://sourcecode.confdroid.com/12ww1160/cd_concat">cd_concat</a>
|
|
||||||
or <a href="https://github.com/puppetlabs/puppetlabs-concat">concat</a> for
|
|
||||||
managing file fragments</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Deployment">Deployment</h2>
|
|
||||||
<ul><li>
|
|
||||||
<p>native Puppet deployment</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<p>via site.pp or nodes.pp</p>
|
|
||||||
|
|
||||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
|
||||||
include haproxy_cd
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
<ul><li>
|
|
||||||
<p>through Foreman:</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<p>In order to apply parameters through Foreman,
|
|
||||||
<strong>haproxy_cd::params</strong> must be added to the host or host group
|
|
||||||
in question.</p>
|
|
||||||
|
|
||||||
<p>See <a
|
|
||||||
href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more
|
|
||||||
details about class deployment on Confdroid.com</a>.</p>
|
|
||||||
|
|
||||||
<h2 id="label-Parameters">Parameters</h2>
|
|
||||||
|
|
||||||
<p>The parameters are documented via puppet strings and <a
|
|
||||||
href="/docs/index.html">listed here</a>. Simply open in web browser.</p>
|
|
||||||
|
|
||||||
<h2 id="label-Proxy+Configuration">Proxy Configuration</h2>
|
|
||||||
|
|
||||||
<p>The proxy instances are configured in /etc/haproxy/haproxy.cfg, which is
|
|
||||||
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">haproxy_cd::server::proxy { 'testing':
|
|
||||||
haproxy_fqdn => 'node.example.net',
|
|
||||||
frontend_name => 'test01-frontend',
|
|
||||||
frontend_mode => 'http',
|
|
||||||
acl_rule => ['too_fast fe_sess_rate ge 10',
|
|
||||||
'network_allowed src 0.0.0.0/0'],
|
|
||||||
backend_name => 'test01-backend',
|
|
||||||
}
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p>This allows the puppet module to create the sections in the configuration
|
|
||||||
file as required. The haproxy service will be restarted after the changes
|
|
||||||
in the configuration file are made. <code>haproxy_fqdn</code>
|
|
||||||
<strong>must</strong> contain the fqdn of the haproxy
|
|
||||||
<strong>server</strong> where this should be configured, otherwise the
|
|
||||||
templates are not being populated. Multiple ACLs need to be added as array,
|
|
||||||
and will create one line each.</p>
|
|
||||||
|
|
||||||
<h2 id="label-SELINUX">SELINUX</h2>
|
|
||||||
|
|
||||||
<p>All files and directories are configured with correct selinux context. If
|
|
||||||
selinux is disabled, these contexts are ignored.</p>
|
|
||||||
|
|
||||||
<h2 id="label-Known+Problems">Known Problems</h2>
|
|
||||||
|
|
||||||
<h2 id="label-Support">Support</h2>
|
|
||||||
<ul><li>
|
|
||||||
<p>OS: Rocky 9</p>
|
|
||||||
</li><li>
|
|
||||||
<p>Puppet 8</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Tests">Tests</h2>
|
|
||||||
<ul><li>
|
|
||||||
<p>Puppet Lint</p>
|
|
||||||
</li><li>
|
|
||||||
<p>excluded tests:</p>
|
|
||||||
<ul><li>
|
|
||||||
<p><code>--no-class_inherits_from_params_class-check</code>:relevant only to
|
|
||||||
non-supported outdated puppet versions</p>
|
|
||||||
</li><li>
|
|
||||||
<p><code>--no-variable_scope-check</code>: not applicable as we are inheriting
|
|
||||||
parameters from params class. the lint check does not distinguish between
|
|
||||||
facts and inherited parameters.</p>
|
|
||||||
</li><li>
|
|
||||||
<p><code>--no-80chars-check</code>: it is not always possible to stay within
|
|
||||||
80 characters, although typically only occurring on the parameter vault
|
|
||||||
<code>params.pp</code>.</p>
|
|
||||||
</li><li>
|
|
||||||
<p><code>--no-arrow_alignment-check</code>: this check leads to actually not
|
|
||||||
having am easily readable arrow alignment, as this checks <code>per
|
|
||||||
block</code>, not per class.</p>
|
|
||||||
</li></ul>
|
|
||||||
</li><li>
|
|
||||||
<p>Puppet Parser</p>
|
|
||||||
</li><li>
|
|
||||||
<p>ERB Template Parser</p>
|
|
||||||
</li><li>
|
|
||||||
<p>Sonar Quality Gate</p>
|
|
||||||
</li></ul>
|
|
||||||
|
|
||||||
<h2 id="label-Contact+Us">Contact Us</h2>
|
|
||||||
|
|
||||||
<p><a href="https://confdroid.com/contact/">contact Us</a></p>
|
|
||||||
|
|
||||||
<h2 id="label-Disclaimer">Disclaimer</h2>
|
|
||||||
|
|
||||||
<p>ConfDroid as entity is entirely independent from Puppet. We provide custom
|
|
||||||
configuration modules, written for specific purposes and specific
|
|
||||||
environments. The modules are tested and supported only as documented, and
|
|
||||||
require testing in designated environments (i.e. lab or development
|
|
||||||
environments) for parameter tuning etc. before deploying into production
|
|
||||||
environments.</p>
|
|
||||||
</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>
|
|
||||||
314
doc/js/app.js
314
doc/js/app.js
@@ -1,314 +0,0 @@
|
|||||||
(function() {
|
|
||||||
|
|
||||||
var localStorage = {}, sessionStorage = {};
|
|
||||||
try { localStorage = window.localStorage; } catch (e) { }
|
|
||||||
try { sessionStorage = window.sessionStorage; } catch (e) { }
|
|
||||||
|
|
||||||
function createSourceLinks() {
|
|
||||||
$('.method_details_list .source_code').
|
|
||||||
before("<span class='showSource'>[<a href='#' class='toggleSource'>View source</a>]</span>");
|
|
||||||
$('.toggleSource').toggle(function() {
|
|
||||||
$(this).parent().nextAll('.source_code').slideDown(100);
|
|
||||||
$(this).text("Hide source");
|
|
||||||
},
|
|
||||||
function() {
|
|
||||||
$(this).parent().nextAll('.source_code').slideUp(100);
|
|
||||||
$(this).text("View source");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function createDefineLinks() {
|
|
||||||
var tHeight = 0;
|
|
||||||
$('.defines').after(" <a href='#' class='toggleDefines'>more...</a>");
|
|
||||||
$('.toggleDefines').toggle(function() {
|
|
||||||
tHeight = $(this).parent().prev().height();
|
|
||||||
$(this).prev().css('display', 'inline');
|
|
||||||
$(this).parent().prev().height($(this).parent().height());
|
|
||||||
$(this).text("(less)");
|
|
||||||
},
|
|
||||||
function() {
|
|
||||||
$(this).prev().hide();
|
|
||||||
$(this).parent().prev().height(tHeight);
|
|
||||||
$(this).text("more...");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function createFullTreeLinks() {
|
|
||||||
var tHeight = 0;
|
|
||||||
$('.inheritanceTree').toggle(function() {
|
|
||||||
tHeight = $(this).parent().prev().height();
|
|
||||||
$(this).parent().toggleClass('showAll');
|
|
||||||
$(this).text("(hide)");
|
|
||||||
$(this).parent().prev().height($(this).parent().height());
|
|
||||||
},
|
|
||||||
function() {
|
|
||||||
$(this).parent().toggleClass('showAll');
|
|
||||||
$(this).parent().prev().height(tHeight);
|
|
||||||
$(this).text("show all");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function searchFrameButtons() {
|
|
||||||
$('.full_list_link').click(function() {
|
|
||||||
toggleSearchFrame(this, $(this).attr('href'));
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
window.addEventListener('message', function(e) {
|
|
||||||
if (e.data === 'navEscape') {
|
|
||||||
$('#nav').slideUp(100);
|
|
||||||
$('#search a').removeClass('active inactive');
|
|
||||||
$(window).focus();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$(window).resize(function() {
|
|
||||||
if ($('#search:visible').length === 0) {
|
|
||||||
$('#nav').removeAttr('style');
|
|
||||||
$('#search a').removeClass('active inactive');
|
|
||||||
$(window).focus();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function toggleSearchFrame(id, link) {
|
|
||||||
var frame = $('#nav');
|
|
||||||
$('#search a').removeClass('active').addClass('inactive');
|
|
||||||
if (frame.attr('src') === link && frame.css('display') !== "none") {
|
|
||||||
frame.slideUp(100);
|
|
||||||
$('#search a').removeClass('active inactive');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$(id).addClass('active').removeClass('inactive');
|
|
||||||
if (frame.attr('src') !== link) frame.attr('src', link);
|
|
||||||
frame.slideDown(100);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function linkSummaries() {
|
|
||||||
$('.summary_signature').click(function() {
|
|
||||||
document.location = $(this).find('a').attr('href');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function summaryToggle() {
|
|
||||||
$('.summary_toggle').click(function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
localStorage.summaryCollapsed = $(this).text();
|
|
||||||
$('.summary_toggle').each(function() {
|
|
||||||
$(this).text($(this).text() == "collapse" ? "expand" : "collapse");
|
|
||||||
var next = $(this).parent().parent().nextAll('ul.summary').first();
|
|
||||||
if (next.hasClass('compact')) {
|
|
||||||
next.toggle();
|
|
||||||
next.nextAll('ul.summary').first().toggle();
|
|
||||||
}
|
|
||||||
else if (next.hasClass('summary')) {
|
|
||||||
var list = $('<ul class="summary compact" />');
|
|
||||||
list.html(next.html());
|
|
||||||
list.find('.summary_desc, .note').remove();
|
|
||||||
list.find('a').each(function() {
|
|
||||||
$(this).html($(this).find('strong').html());
|
|
||||||
$(this).parent().html($(this)[0].outerHTML);
|
|
||||||
});
|
|
||||||
next.before(list);
|
|
||||||
next.toggle();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
if (localStorage.summaryCollapsed == "collapse") {
|
|
||||||
$('.summary_toggle').first().click();
|
|
||||||
} else { localStorage.summaryCollapsed = "expand"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
function constantSummaryToggle() {
|
|
||||||
$('.constants_summary_toggle').click(function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
localStorage.summaryCollapsed = $(this).text();
|
|
||||||
$('.constants_summary_toggle').each(function() {
|
|
||||||
$(this).text($(this).text() == "collapse" ? "expand" : "collapse");
|
|
||||||
var next = $(this).parent().parent().nextAll('dl.constants').first();
|
|
||||||
if (next.hasClass('compact')) {
|
|
||||||
next.toggle();
|
|
||||||
next.nextAll('dl.constants').first().toggle();
|
|
||||||
}
|
|
||||||
else if (next.hasClass('constants')) {
|
|
||||||
var list = $('<dl class="constants compact" />');
|
|
||||||
list.html(next.html());
|
|
||||||
list.find('dt').each(function() {
|
|
||||||
$(this).addClass('summary_signature');
|
|
||||||
$(this).text( $(this).text().split('=')[0]);
|
|
||||||
if ($(this).has(".deprecated").length) {
|
|
||||||
$(this).addClass('deprecated');
|
|
||||||
};
|
|
||||||
});
|
|
||||||
// Add the value of the constant as "Tooltip" to the summary object
|
|
||||||
list.find('pre.code').each(function() {
|
|
||||||
console.log($(this).parent());
|
|
||||||
var dt_element = $(this).parent().prev();
|
|
||||||
var tooltip = $(this).text();
|
|
||||||
if (dt_element.hasClass("deprecated")) {
|
|
||||||
tooltip = 'Deprecated. ' + tooltip;
|
|
||||||
};
|
|
||||||
dt_element.attr('title', tooltip);
|
|
||||||
});
|
|
||||||
list.find('.docstring, .tags, dd').remove();
|
|
||||||
next.before(list);
|
|
||||||
next.toggle();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
if (localStorage.summaryCollapsed == "collapse") {
|
|
||||||
$('.constants_summary_toggle').first().click();
|
|
||||||
} else { localStorage.summaryCollapsed = "expand"; }
|
|
||||||
}
|
|
||||||
|
|
||||||
function generateTOC() {
|
|
||||||
if ($('#filecontents').length === 0) return;
|
|
||||||
var _toc = $('<ol class="top"></ol>');
|
|
||||||
var show = false;
|
|
||||||
var toc = _toc;
|
|
||||||
var counter = 0;
|
|
||||||
var tags = ['h2', 'h3', 'h4', 'h5', 'h6'];
|
|
||||||
var i;
|
|
||||||
var curli;
|
|
||||||
if ($('#filecontents h1').length > 1) tags.unshift('h1');
|
|
||||||
for (i = 0; i < tags.length; i++) { tags[i] = '#filecontents ' + tags[i]; }
|
|
||||||
var lastTag = parseInt(tags[0][1], 10);
|
|
||||||
$(tags.join(', ')).each(function() {
|
|
||||||
if ($(this).parents('.method_details .docstring').length != 0) return;
|
|
||||||
if (this.id == "filecontents") return;
|
|
||||||
show = true;
|
|
||||||
var thisTag = parseInt(this.tagName[1], 10);
|
|
||||||
if (this.id.length === 0) {
|
|
||||||
var proposedId = $(this).attr('toc-id');
|
|
||||||
if (typeof(proposedId) != "undefined") this.id = proposedId;
|
|
||||||
else {
|
|
||||||
var proposedId = $(this).text().replace(/[^a-z0-9-]/ig, '_');
|
|
||||||
if ($('#' + proposedId).length > 0) { proposedId += counter; counter++; }
|
|
||||||
this.id = proposedId;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (thisTag > lastTag) {
|
|
||||||
for (i = 0; i < thisTag - lastTag; i++) {
|
|
||||||
if ( typeof(curli) == "undefined" ) {
|
|
||||||
curli = $('<li/>');
|
|
||||||
toc.append(curli);
|
|
||||||
}
|
|
||||||
toc = $('<ol/>');
|
|
||||||
curli.append(toc);
|
|
||||||
curli = undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (thisTag < lastTag) {
|
|
||||||
for (i = 0; i < lastTag - thisTag; i++) {
|
|
||||||
toc = toc.parent();
|
|
||||||
toc = toc.parent();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var title = $(this).attr('toc-title');
|
|
||||||
if (typeof(title) == "undefined") title = $(this).text();
|
|
||||||
curli =$('<li><a href="#' + this.id + '">' + title + '</a></li>');
|
|
||||||
toc.append(curli);
|
|
||||||
lastTag = thisTag;
|
|
||||||
});
|
|
||||||
if (!show) return;
|
|
||||||
html = '<div id="toc"><p class="title hide_toc"><a href="#"><strong>Table of Contents</strong></a></p></div>';
|
|
||||||
$('#content').prepend(html);
|
|
||||||
$('#toc').append(_toc);
|
|
||||||
$('#toc .hide_toc').toggle(function() {
|
|
||||||
$('#toc .top').slideUp('fast');
|
|
||||||
$('#toc').toggleClass('hidden');
|
|
||||||
$('#toc .title small').toggle();
|
|
||||||
}, function() {
|
|
||||||
$('#toc .top').slideDown('fast');
|
|
||||||
$('#toc').toggleClass('hidden');
|
|
||||||
$('#toc .title small').toggle();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function navResizeFn(e) {
|
|
||||||
if (e.which !== 1) {
|
|
||||||
navResizeFnStop();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
sessionStorage.navWidth = e.pageX.toString();
|
|
||||||
$('.nav_wrap').css('width', e.pageX);
|
|
||||||
$('.nav_wrap').css('-ms-flex', 'inherit');
|
|
||||||
}
|
|
||||||
|
|
||||||
function navResizeFnStop() {
|
|
||||||
$(window).unbind('mousemove', navResizeFn);
|
|
||||||
window.removeEventListener('message', navMessageFn, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
function navMessageFn(e) {
|
|
||||||
if (e.data.action === 'mousemove') navResizeFn(e.data.event);
|
|
||||||
if (e.data.action === 'mouseup') navResizeFnStop();
|
|
||||||
}
|
|
||||||
|
|
||||||
function navResizer() {
|
|
||||||
$('#resizer').mousedown(function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
$(window).mousemove(navResizeFn);
|
|
||||||
window.addEventListener('message', navMessageFn, false);
|
|
||||||
});
|
|
||||||
$(window).mouseup(navResizeFnStop);
|
|
||||||
|
|
||||||
if (sessionStorage.navWidth) {
|
|
||||||
navResizeFn({which: 1, pageX: parseInt(sessionStorage.navWidth, 10)});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function navExpander() {
|
|
||||||
var done = false, timer = setTimeout(postMessage, 500);
|
|
||||||
function postMessage() {
|
|
||||||
if (done) return;
|
|
||||||
clearTimeout(timer);
|
|
||||||
var opts = { action: 'expand', path: pathId };
|
|
||||||
document.getElementById('nav').contentWindow.postMessage(opts, '*');
|
|
||||||
done = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener('message', function(event) {
|
|
||||||
if (event.data === 'navReady') postMessage();
|
|
||||||
return false;
|
|
||||||
}, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
function mainFocus() {
|
|
||||||
var hash = window.location.hash;
|
|
||||||
if (hash !== '' && $(hash)[0]) {
|
|
||||||
$(hash)[0].scrollIntoView();
|
|
||||||
}
|
|
||||||
|
|
||||||
setTimeout(function() { $('#main').focus(); }, 10);
|
|
||||||
}
|
|
||||||
|
|
||||||
function navigationChange() {
|
|
||||||
// This works around the broken anchor navigation with the YARD template.
|
|
||||||
window.onpopstate = function() {
|
|
||||||
var hash = window.location.hash;
|
|
||||||
if (hash !== '' && $(hash)[0]) {
|
|
||||||
$(hash)[0].scrollIntoView();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
navResizer();
|
|
||||||
navExpander();
|
|
||||||
createSourceLinks();
|
|
||||||
createDefineLinks();
|
|
||||||
createFullTreeLinks();
|
|
||||||
searchFrameButtons();
|
|
||||||
linkSummaries();
|
|
||||||
summaryToggle();
|
|
||||||
constantSummaryToggle();
|
|
||||||
generateTOC();
|
|
||||||
mainFocus();
|
|
||||||
navigationChange();
|
|
||||||
});
|
|
||||||
|
|
||||||
})();
|
|
||||||
@@ -1,216 +0,0 @@
|
|||||||
(function() {
|
|
||||||
|
|
||||||
var $clicked = $(null);
|
|
||||||
var searchTimeout = null;
|
|
||||||
var searchCache = [];
|
|
||||||
var caseSensitiveMatch = false;
|
|
||||||
var ignoreKeyCodeMin = 8;
|
|
||||||
var ignoreKeyCodeMax = 46;
|
|
||||||
var commandKey = 91;
|
|
||||||
|
|
||||||
RegExp.escape = function(text) {
|
|
||||||
return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
||||||
}
|
|
||||||
|
|
||||||
function escapeShortcut() {
|
|
||||||
$(document).keydown(function(evt) {
|
|
||||||
if (evt.which == 27) {
|
|
||||||
window.parent.postMessage('navEscape', '*');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function navResizer() {
|
|
||||||
$(window).mousemove(function(e) {
|
|
||||||
window.parent.postMessage({
|
|
||||||
action: 'mousemove', event: {pageX: e.pageX, which: e.which}
|
|
||||||
}, '*');
|
|
||||||
}).mouseup(function(e) {
|
|
||||||
window.parent.postMessage({action: 'mouseup'}, '*');
|
|
||||||
});
|
|
||||||
window.parent.postMessage("navReady", "*");
|
|
||||||
}
|
|
||||||
|
|
||||||
function clearSearchTimeout() {
|
|
||||||
clearTimeout(searchTimeout);
|
|
||||||
searchTimeout = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
function enableLinks() {
|
|
||||||
// load the target page in the parent window
|
|
||||||
$('#full_list li').on('click', function(evt) {
|
|
||||||
$('#full_list li').removeClass('clicked');
|
|
||||||
$clicked = $(this);
|
|
||||||
$clicked.addClass('clicked');
|
|
||||||
evt.stopPropagation();
|
|
||||||
|
|
||||||
if (evt.target.tagName === 'A') return true;
|
|
||||||
|
|
||||||
var elem = $clicked.find('> .item .object_link a')[0];
|
|
||||||
var e = evt.originalEvent;
|
|
||||||
var newEvent = new MouseEvent(evt.originalEvent.type);
|
|
||||||
newEvent.initMouseEvent(e.type, e.canBubble, e.cancelable, e.view, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, e.button, e.relatedTarget);
|
|
||||||
elem.dispatchEvent(newEvent);
|
|
||||||
evt.preventDefault();
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function enableToggles() {
|
|
||||||
// show/hide nested classes on toggle click
|
|
||||||
$('#full_list a.toggle').on('click', function(evt) {
|
|
||||||
evt.stopPropagation();
|
|
||||||
evt.preventDefault();
|
|
||||||
$(this).parent().parent().toggleClass('collapsed');
|
|
||||||
highlight();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function populateSearchCache() {
|
|
||||||
$('#full_list li .item').each(function() {
|
|
||||||
var $node = $(this);
|
|
||||||
var $link = $node.find('.object_link a');
|
|
||||||
if ($link.length > 0) {
|
|
||||||
searchCache.push({
|
|
||||||
node: $node,
|
|
||||||
link: $link,
|
|
||||||
name: $link.text(),
|
|
||||||
fullName: $link.attr('title').split(' ')[0]
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function enableSearch() {
|
|
||||||
$('#search input').keyup(function(event) {
|
|
||||||
if (ignoredKeyPress(event)) return;
|
|
||||||
if (this.value === "") {
|
|
||||||
clearSearch();
|
|
||||||
} else {
|
|
||||||
performSearch(this.value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#full_list').after("<div id='noresults' style='display:none'></div>");
|
|
||||||
}
|
|
||||||
|
|
||||||
function ignoredKeyPress(event) {
|
|
||||||
if (
|
|
||||||
(event.keyCode > ignoreKeyCodeMin && event.keyCode < ignoreKeyCodeMax) ||
|
|
||||||
(event.keyCode == commandKey)
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function clearSearch() {
|
|
||||||
clearSearchTimeout();
|
|
||||||
$('#full_list .found').removeClass('found').each(function() {
|
|
||||||
var $link = $(this).find('.object_link a');
|
|
||||||
$link.text($link.text());
|
|
||||||
});
|
|
||||||
$('#full_list, #content').removeClass('insearch');
|
|
||||||
$clicked.parents().removeClass('collapsed');
|
|
||||||
highlight();
|
|
||||||
}
|
|
||||||
|
|
||||||
function performSearch(searchString) {
|
|
||||||
clearSearchTimeout();
|
|
||||||
$('#full_list, #content').addClass('insearch');
|
|
||||||
$('#noresults').text('').hide();
|
|
||||||
partialSearch(searchString, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
function partialSearch(searchString, offset) {
|
|
||||||
var lastRowClass = '';
|
|
||||||
var i = null;
|
|
||||||
for (i = offset; i < Math.min(offset + 50, searchCache.length); i++) {
|
|
||||||
var item = searchCache[i];
|
|
||||||
var searchName = (searchString.indexOf('::') != -1 ? item.fullName : item.name);
|
|
||||||
var matchString = buildMatchString(searchString);
|
|
||||||
var matchRegexp = new RegExp(matchString, caseSensitiveMatch ? "" : "i");
|
|
||||||
if (searchName.match(matchRegexp) == null) {
|
|
||||||
item.node.removeClass('found');
|
|
||||||
item.link.text(item.link.text());
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
item.node.addClass('found');
|
|
||||||
item.node.removeClass(lastRowClass).addClass(lastRowClass == 'r1' ? 'r2' : 'r1');
|
|
||||||
lastRowClass = item.node.hasClass('r1') ? 'r1' : 'r2';
|
|
||||||
item.link.html(item.name.replace(matchRegexp, "<strong>$&</strong>"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(i == searchCache.length) {
|
|
||||||
searchDone();
|
|
||||||
} else {
|
|
||||||
searchTimeout = setTimeout(function() {
|
|
||||||
partialSearch(searchString, i);
|
|
||||||
}, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function searchDone() {
|
|
||||||
searchTimeout = null;
|
|
||||||
highlight();
|
|
||||||
if ($('#full_list li:visible').size() === 0) {
|
|
||||||
$('#noresults').text('No results were found.').hide().fadeIn();
|
|
||||||
} else {
|
|
||||||
$('#noresults').text('').hide();
|
|
||||||
}
|
|
||||||
$('#content').removeClass('insearch');
|
|
||||||
}
|
|
||||||
|
|
||||||
function buildMatchString(searchString, event) {
|
|
||||||
caseSensitiveMatch = searchString.match(/[A-Z]/) != null;
|
|
||||||
var regexSearchString = RegExp.escape(searchString);
|
|
||||||
if (caseSensitiveMatch) {
|
|
||||||
regexSearchString += "|" +
|
|
||||||
$.map(searchString.split(''), function(e) { return RegExp.escape(e); }).
|
|
||||||
join('.+?');
|
|
||||||
}
|
|
||||||
return regexSearchString;
|
|
||||||
}
|
|
||||||
|
|
||||||
function highlight() {
|
|
||||||
$('#full_list li:visible').each(function(n) {
|
|
||||||
$(this).removeClass('even odd').addClass(n % 2 == 0 ? 'odd' : 'even');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Expands the tree to the target element and its immediate
|
|
||||||
* children.
|
|
||||||
*/
|
|
||||||
function expandTo(path) {
|
|
||||||
var $target = $(document.getElementById('object_' + path));
|
|
||||||
$target.addClass('clicked');
|
|
||||||
$target.removeClass('collapsed');
|
|
||||||
$target.parentsUntil('#full_list', 'li').removeClass('collapsed');
|
|
||||||
if($target[0]) {
|
|
||||||
window.scrollTo(window.scrollX, $target.offset().top - 250);
|
|
||||||
highlight();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function windowEvents(event) {
|
|
||||||
var msg = event.data;
|
|
||||||
if (msg.action === "expand") {
|
|
||||||
expandTo(msg.path);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
window.addEventListener("message", windowEvents, false);
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
escapeShortcut();
|
|
||||||
navResizer();
|
|
||||||
enableLinks();
|
|
||||||
enableToggles();
|
|
||||||
populateSearchCache();
|
|
||||||
enableSearch();
|
|
||||||
});
|
|
||||||
|
|
||||||
})();
|
|
||||||
4
doc/js/jquery.js
vendored
4
doc/js/jquery.js
vendored
File diff suppressed because one or more lines are too long
@@ -1,117 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<title>Puppet Class List</title>
|
|
||||||
<base id="base_target" target="_parent" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="content">
|
|
||||||
<div class="fixed_header">
|
|
||||||
<h1 id="full_list_header">Puppet Class List</h1>
|
|
||||||
<div id="full_list_nav">
|
|
||||||
|
|
||||||
<span><a target="_self" href="puppet_class_list.html">
|
|
||||||
Puppet Classes
|
|
||||||
</a></span>
|
|
||||||
|
|
||||||
<span><a target="_self" href="puppet_defined_type_list.html">
|
|
||||||
Defined Types
|
|
||||||
</a></span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="search">Search: <input type="text" /></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul id="full_list" class="puppet_class">
|
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_classes::haproxy_cd" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::firewall::iptables" class="even">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::main::config" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::main::dirs" class="even">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::main::files" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::main::install" class="even">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::main::user" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::monitoring::fail2ban" class="even">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::params" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<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::haproxy_cd::server::service" class="even">
|
|
||||||
<div class="item">
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,137 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy
|
|
||||||
|
|
||||||
— 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::cd_haproxy";
|
|
||||||
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</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</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Defined in:</dt>
|
|
||||||
<dd>
|
|
||||||
manifests/init.pp
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2>Summary</h2>
|
|
||||||
Class initializes the cd_haproxy module.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::init.pp Module name: cd_haproxy Author: Arne Teuke
|
|
||||||
(arne_teuke@confdroid.com) License: This file is part of cd_haproxy.</p>
|
|
||||||
|
|
||||||
<p>cd_haproxy is used for providing automatic configuration of HA proxy.
|
|
||||||
Copyright (C) 2017 confdroid (copyright@confdroid.com) This program is
|
|
||||||
free software: you can redistribute it and/or modify it under the terms of
|
|
||||||
the GNU General Public License as published by the Free Software
|
|
||||||
Foundation, either version 3 of the License, or (at your option) any later
|
|
||||||
version.</p>
|
|
||||||
|
|
||||||
<p>This program is distributed in the hope that it will be useful, but
|
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.</p>
|
|
||||||
|
|
||||||
<p>You should have received a copy of the GNU General Public License along
|
|
||||||
with this program. If not, see <a
|
|
||||||
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="tags">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><div class="method_details_list">
|
|
||||||
<table class="source_code">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<pre class="lines">
|
|
||||||
|
|
||||||
|
|
||||||
23
|
|
||||||
24
|
|
||||||
25</pre>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 23</span>
|
|
||||||
|
|
||||||
class cd_haproxy {
|
|
||||||
include cd_haproxy::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>
|
|
||||||
@@ -1,162 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::firewall::iptables
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::firewall::iptables</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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>cd_haproxy::firewall::iptables.pp Module name: cd_haproxy 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 cd_haproxy::firewall::iptables (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if ($fqdn == $hy_host_fqdn) and ($hy_manage_fw == true) {
|
|
||||||
|
|
||||||
require cd_haproxy::main::files
|
|
||||||
|
|
||||||
firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
|
|
||||||
proto => 'tcp',
|
|
||||||
dport => $hy_http_port,
|
|
||||||
jump => 'accept',
|
|
||||||
}
|
|
||||||
|
|
||||||
firewall { "${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}":
|
|
||||||
proto => 'tcp',
|
|
||||||
dport => $hy_https_port,
|
|
||||||
jump => 'accept',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</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>
|
|
||||||
@@ -1,145 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::main::config
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::main::config</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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
|
|
||||||
cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::main::config.pp Module name: cd_haproxy 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 cd_haproxy::main::config (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
include cd_haproxy::server::service
|
|
||||||
|
|
||||||
if $hy_manage_fail2ban == true {
|
|
||||||
|
|
||||||
include cd_haproxy::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>
|
|
||||||
@@ -1,184 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::main::dirs
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::main::dirs</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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 cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::main::dirs.pp Module name: cd_haproxy 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 cd_haproxy::main::dirs (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if $fqdn == $hy_host_fqdn {
|
|
||||||
require cd_haproxy::main::user
|
|
||||||
|
|
||||||
# main dir
|
|
||||||
file { $hy_main_dir:
|
|
||||||
ensure => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# errors dir
|
|
||||||
file { $hy_errors_dir:
|
|
||||||
ensure => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => 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>
|
|
||||||
@@ -1,432 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::main::files
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::main::files</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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 cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::main::files.pp Module name: cd_haproxy 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 cd_haproxy::main::files (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if $fqdn == $hy_host_fqdn {
|
|
||||||
require cd_haproxy::main::dirs
|
|
||||||
|
|
||||||
# create the concat target
|
|
||||||
concat {$hy_main_config:
|
|
||||||
ensure => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0640',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create the header
|
|
||||||
concat::fragment { 'header':
|
|
||||||
target => $hy_main_config,
|
|
||||||
content => template($hy_config_head_erb),
|
|
||||||
order => '001',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# create the header
|
|
||||||
concat::fragment { 'tail':
|
|
||||||
target => $hy_main_config,
|
|
||||||
content => template($hy_config_tail_erb),
|
|
||||||
order => '100',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# pid file
|
|
||||||
file { $hy_pid:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => haproxy_var_run_t,
|
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# error files
|
|
||||||
file { $hy_400_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_400_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_403_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_403_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_408_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_408_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_500_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_500_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_502_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_502_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_503_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_503_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_504_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_504_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# make sure rsyslog is logging haproxy logs
|
|
||||||
|
|
||||||
file { '/etc/rsyslog.d/10-haproxy.conf':
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => syslog_conf_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template('cd_haproxy/rsyslog/10_haproxy.conf.erb'),
|
|
||||||
# notify => Service['rsyslog'], # 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>
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::main::install
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::main::install</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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
|
|
||||||
cd_haproxy
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::main::install.pp Module name: cd_haproxy 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 cd_haproxy::main::install (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if $fqdn == $hy_host_fqdn {
|
|
||||||
package {$reqpackages:
|
|
||||||
ensure => $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>
|
|
||||||
@@ -1,172 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::main::user
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::main::user</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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 cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::main::user.pp Module name: cd_haproxy 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 cd_haproxy::main::user (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if $fqdn == $hy_host_fqdn {
|
|
||||||
require cd_haproxy::main::install
|
|
||||||
|
|
||||||
# manage user
|
|
||||||
user { $hy_user_name:
|
|
||||||
ensure => present,
|
|
||||||
name => $hy_user_name,
|
|
||||||
allowdupe => false,
|
|
||||||
comment => $hy_user_comment,
|
|
||||||
gid => $hy_user_name,
|
|
||||||
managehome => true,
|
|
||||||
home => $hy_user_home,
|
|
||||||
shell => $hy_user_shell,
|
|
||||||
}
|
|
||||||
|
|
||||||
group { $hy_user_name:
|
|
||||||
ensure => present,
|
|
||||||
name => $hy_user_name,
|
|
||||||
allowdupe => 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>
|
|
||||||
@@ -1,193 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::monitoring::fail2ban
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::monitoring::fail2ban</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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: cd_haproxy 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 cd_haproxy::monitoring::fail2ban (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if $hy_manage_fail2ban == true {
|
|
||||||
|
|
||||||
require cd_fail2ban
|
|
||||||
|
|
||||||
# configure filter
|
|
||||||
|
|
||||||
file { '/etc/fail2ban/filter.d/haproxy.conf':
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template('cd_haproxy/fail2ban/f2b_haproxy.conf.erb'),
|
|
||||||
notify => Service['fail2ban'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/fail2ban/jail.d/010-haproxy.conf':
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template('cd_haproxy/fail2ban/010_jail.d_haproxy.conf.erb'),
|
|
||||||
notify => Service['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>
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,174 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::server::proxy_test
|
|
||||||
|
|
||||||
— 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::cd_haproxy::server::proxy_test";
|
|
||||||
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::server::proxy_test</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::server::proxy_test</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::params</a></span></dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Defined in:</dt>
|
|
||||||
<dd>
|
|
||||||
manifests/server/proxy_test.pp
|
|
||||||
</dd>
|
|
||||||
</dl>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2>Summary</h2>
|
|
||||||
Define manages the proxies for cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::server::proxy_test.pp Module name: cd_haproxy Author: Arne
|
|
||||||
Teuke (arne_teuke@ConfDroid.com)</p>
|
|
||||||
|
|
||||||
<h1 id="label-License-3A">License:</h1>
|
|
||||||
|
|
||||||
<p>This file is part of cd_haproxy.</p>
|
|
||||||
|
|
||||||
<p>cd_haproxy is used for providing automatic configuration of HAProxy
|
|
||||||
Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com) This program is
|
|
||||||
free software: you can redistribute it and/or modify it under the terms of
|
|
||||||
the GNU General Public License as published by the Free Software
|
|
||||||
Foundation, either version 3 of the License, or (at your option) any later
|
|
||||||
version.</p>
|
|
||||||
|
|
||||||
<p>This program is distributed in the hope that it will be useful, but
|
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.</p>
|
|
||||||
|
|
||||||
<p>You should have received a copy of the GNU General Public License along
|
|
||||||
with this program. If not, see <a
|
|
||||||
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="tags">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><div class="method_details_list">
|
|
||||||
<table class="source_code">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<pre class="lines">
|
|
||||||
|
|
||||||
|
|
||||||
23
|
|
||||||
24
|
|
||||||
25
|
|
||||||
26
|
|
||||||
27
|
|
||||||
28
|
|
||||||
29
|
|
||||||
30
|
|
||||||
31
|
|
||||||
32
|
|
||||||
33
|
|
||||||
34
|
|
||||||
35
|
|
||||||
36
|
|
||||||
37
|
|
||||||
38
|
|
||||||
39</pre>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/proxy_test.pp', line 23</span>
|
|
||||||
|
|
||||||
class cd_haproxy::server::proxy_test (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
cd_haproxy::server::proxy { 'testing':
|
|
||||||
haproxy_fqdn => 'pxe703.studydivision.local',
|
|
||||||
frontend_name => 'test01-frontend',
|
|
||||||
frontend_mode => 'http',
|
|
||||||
acl_rule => ['too_fast fe_sess_rate ge 10',
|
|
||||||
'network_allowed src 0.0.0.0/0'],
|
|
||||||
fe_maxconn => '10000',
|
|
||||||
backend_name => 'test01-backend',
|
|
||||||
be_server_name => ['web01 web01.confdroid.com:80 check',
|
|
||||||
'web02 web02.confdroid.com:80 check'],
|
|
||||||
|
|
||||||
}
|
|
||||||
}</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>
|
|
||||||
@@ -1,152 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: cd_haproxy::server::service
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::server::service</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
<dl>
|
|
||||||
<dt>Inherits:</dt>
|
|
||||||
<dd><span class='object_link'><a href="cd_haproxy_3A_3Aparams.html" title="puppet_classes::cd_haproxy::params (puppet_class)">cd_haproxy::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 cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::server::service.pp Module name: cd_haproxy 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 cd_haproxy::server::service (
|
|
||||||
|
|
||||||
) inherits cd_haproxy::params {
|
|
||||||
|
|
||||||
if $fqdn == $hy_host_fqdn {
|
|
||||||
|
|
||||||
require cd_haproxy::firewall::iptables
|
|
||||||
|
|
||||||
service { $hy_service:
|
|
||||||
ensure => running,
|
|
||||||
hasstatus => true,
|
|
||||||
hasrestart => true,
|
|
||||||
enable => 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>
|
|
||||||
@@ -1,121 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Puppet Class: haproxy_cd
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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>
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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</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) {
|
|
||||||
firewall { "${hy_fw_order_no}${hy_http_port} tcp port ${hy_http_port}":
|
|
||||||
proto => 'tcp',
|
|
||||||
dport => $hy_http_port,
|
|
||||||
jump => 'accept',
|
|
||||||
}
|
|
||||||
|
|
||||||
firewall { "${hy_fw_order_no}${hy_https_port} tcp port ${hy_https_port}":
|
|
||||||
proto => 'tcp',
|
|
||||||
dport => $hy_https_port,
|
|
||||||
jump => 'accept',
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</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>
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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 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">
|
|
||||||
|
|
||||||
|
|
||||||
6
|
|
||||||
7
|
|
||||||
8
|
|
||||||
9
|
|
||||||
10
|
|
||||||
11
|
|
||||||
12
|
|
||||||
13
|
|
||||||
14</pre>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</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>
|
|
||||||
@@ -1,182 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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</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 => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# errors dir
|
|
||||||
file { $hy_errors_dir:
|
|
||||||
ensure => directory,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0755',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => 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>
|
|
||||||
@@ -1,426 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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</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 => present,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0640',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# create the header
|
|
||||||
concat::fragment { 'header':
|
|
||||||
target => $hy_main_config,
|
|
||||||
content => template($hy_config_head_erb),
|
|
||||||
order => '001',
|
|
||||||
}
|
|
||||||
|
|
||||||
# create the header
|
|
||||||
concat::fragment { 'tail':
|
|
||||||
target => $hy_main_config,
|
|
||||||
content => template($hy_config_tail_erb),
|
|
||||||
order => '100',
|
|
||||||
}
|
|
||||||
|
|
||||||
# pid file
|
|
||||||
file { $hy_pid:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => haproxy_var_run_t,
|
|
||||||
seluser => system_u,
|
|
||||||
}
|
|
||||||
|
|
||||||
# error files
|
|
||||||
file { $hy_400_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_400_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_403_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_403_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_408_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_408_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_500_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_500_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_502_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_502_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_503_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_503_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { $hy_504_file:
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template($hy_504_erb),
|
|
||||||
notify => Service[$hy_service],
|
|
||||||
}
|
|
||||||
|
|
||||||
# make sure syslog is logging haproxy logs
|
|
||||||
|
|
||||||
file { '/etc/rsyslog.d/10-haproxy.conf':
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => syslog_conf_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template('haproxy_cd/rsyslog/10_haproxy.conf.erb'),
|
|
||||||
# notify => Service['rsyslog'], # only if using rsyslog_cd module
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</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>
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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 installs 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">
|
|
||||||
|
|
||||||
|
|
||||||
6
|
|
||||||
7
|
|
||||||
8
|
|
||||||
9
|
|
||||||
10
|
|
||||||
11
|
|
||||||
12
|
|
||||||
13
|
|
||||||
14</pre>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
|
||||||
|
|
||||||
class haproxy_cd::main::install (
|
|
||||||
|
|
||||||
) inherits haproxy_cd::params {
|
|
||||||
if $fqdn == $hy_host_fqdn {
|
|
||||||
package { $reqpackages:
|
|
||||||
ensure => $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>
|
|
||||||
@@ -1,170 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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</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 => present,
|
|
||||||
name => $hy_user_name,
|
|
||||||
allowdupe => false,
|
|
||||||
comment => $hy_user_comment,
|
|
||||||
gid => $hy_user_name,
|
|
||||||
managehome => true,
|
|
||||||
home => $hy_user_home,
|
|
||||||
shell => $hy_user_shell,
|
|
||||||
}
|
|
||||||
|
|
||||||
group { $hy_user_name:
|
|
||||||
ensure => present,
|
|
||||||
name => $hy_user_name,
|
|
||||||
allowdupe => 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>
|
|
||||||
@@ -1,189 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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</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 fail2ban_cd # (external module)
|
|
||||||
|
|
||||||
# configure filter
|
|
||||||
|
|
||||||
file { '/etc/fail2ban/filter.d/haproxy.conf':
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template('haproxy_cd/fail2ban/f2b_haproxy.conf.erb'),
|
|
||||||
notify => Service['fail2ban'],
|
|
||||||
}
|
|
||||||
|
|
||||||
file { '/etc/fail2ban/jail.d/010-haproxy.conf':
|
|
||||||
ensure => file,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
mode => '0644',
|
|
||||||
selrange => s0,
|
|
||||||
selrole => object_r,
|
|
||||||
seltype => etc_t,
|
|
||||||
seluser => system_u,
|
|
||||||
content => template('haproxy_cd/fail2ban/010_jail.d_haproxy.conf.erb'),
|
|
||||||
notify => Service['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>
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,150 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
|
||||||
»
|
|
||||||
<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</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
|
|
||||||
require haproxy_cd::main::files
|
|
||||||
|
|
||||||
service { $hy_service:
|
|
||||||
ensure => running,
|
|
||||||
hasstatus => true,
|
|
||||||
hasrestart => true,
|
|
||||||
enable => 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>
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" />
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" />
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<title>Defined Type List</title>
|
|
||||||
<base id="base_target" target="_parent" />
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="content">
|
|
||||||
<div class="fixed_header">
|
|
||||||
<h1 id="full_list_header">Defined Type List</h1>
|
|
||||||
<div id="full_list_nav">
|
|
||||||
|
|
||||||
<span><a target="_self" href="puppet_class_list.html">
|
|
||||||
Puppet Classes
|
|
||||||
</a></span>
|
|
||||||
|
|
||||||
<span><a target="_self" href="puppet_defined_type_list.html">
|
|
||||||
Defined Types
|
|
||||||
</a></span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="search">Search: <input type="text" /></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ul id="full_list" class="puppet_defined_type">
|
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_defined_types::haproxy_cd::server::proxy" class="odd">
|
|
||||||
<div class="item">
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,658 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Defined Type: cd_haproxy::server::proxy
|
|
||||||
|
|
||||||
— 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::cd_haproxy::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 (c)</a> »
|
|
||||||
<span class='title'><span class='object_link'>Defined Types</span></span>
|
|
||||||
»
|
|
||||||
<span class="title">cd_haproxy::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: cd_haproxy::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 cd_haproxy.
|
|
||||||
|
|
||||||
<h2>Overview</h2>
|
|
||||||
<div class="docstring">
|
|
||||||
<div class="discussion">
|
|
||||||
|
|
||||||
<p>cd_haproxy::server::proxy.pp Module name: cd_haproxy 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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>'010'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>'030'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>acl_rule_front</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>acl_rule_back</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_balance</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_mode</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>default_backend</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_option</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>fe_tcp_request</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>fe_http_request</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_stick_on</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_http_check</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_http_request</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_acl_rule</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Any</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</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 cd_haproxy::server::proxy (
|
|
||||||
|
|
||||||
$haproxy_fqdn = undef,
|
|
||||||
$frontend_name = undef,
|
|
||||||
$frontend_mode = undef,
|
|
||||||
$fe_use_backend = '',
|
|
||||||
$fe_bind_mode = undef,
|
|
||||||
$fe_option = '',
|
|
||||||
$frontend_order = '010',
|
|
||||||
$acl_rule_front = '',
|
|
||||||
$acl_rule_back = '',
|
|
||||||
$backend_name = '',
|
|
||||||
$backend_order = '030',
|
|
||||||
$fe_maxconn = '',
|
|
||||||
$be_server_name = '',
|
|
||||||
$be_balance = '',
|
|
||||||
$be_mode = '',
|
|
||||||
$default_backend = '',
|
|
||||||
$be_option = '',
|
|
||||||
$fe_tcp_request = '',
|
|
||||||
$fe_http_request = '',
|
|
||||||
$backend_configs = [],
|
|
||||||
$be_stick_table = '',
|
|
||||||
$be_stick_on = '',
|
|
||||||
$be_http_check = '',
|
|
||||||
$be_http_request = '',
|
|
||||||
$be_acl_rule = '',
|
|
||||||
|
|
||||||
) {
|
|
||||||
|
|
||||||
$hy_main_config = '/etc/haproxy/haproxy.cfg'
|
|
||||||
$hy_frontendrule = 'cd_haproxy/haproxy_frontend_rule.erb'
|
|
||||||
$hy_backendrule = 'cd_haproxy/haproxy_backend_rule.erb'
|
|
||||||
$hy_acl_rule = 'cd_haproxy/haproxy_acl_rule.erb'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Ensure acl_rule_front and acl_rule_back are arrays
|
|
||||||
$acl_rule_front_array = split($acl_rule_front, ';')
|
|
||||||
$acl_rule_back_array = split($acl_rule_back, ';')
|
|
||||||
$fe_use_backend_array = split($fe_use_backend,';')
|
|
||||||
$backend_name_array = split($backend_name, ';')
|
|
||||||
$be_server_name_array = split($be_server_name, ';')
|
|
||||||
$be_option_array = split($be_option, ';')
|
|
||||||
$fe_tcp_request_array = split($fe_tcp_request, ';')
|
|
||||||
$fe_option_array = split($fe_option, ';')
|
|
||||||
$fe_http_request_array = split($fe_http_request, ';')
|
|
||||||
|
|
||||||
# create frontend section
|
|
||||||
concat::fragment { "frontend_${name}":
|
|
||||||
target => $hy_main_config,
|
|
||||||
content => template($hy_frontendrule),
|
|
||||||
order => $frontend_order,
|
|
||||||
}
|
|
||||||
|
|
||||||
# Ensure backends are only created once
|
|
||||||
ensure_resource('concat::fragment', "backends_${name}", {
|
|
||||||
'target' => $hy_main_config,
|
|
||||||
'content' => template($hy_backendrule),
|
|
||||||
'order' => $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>
|
|
||||||
@@ -1,690 +0,0 @@
|
|||||||
<!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
|
|
||||||
|
|
||||||
— 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> »
|
|
||||||
<span class='title'><span class='object_link'>Defined Types</span></span>
|
|
||||||
»
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>'010'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>which bind mode to use, i.e. to which interface and port to bind.</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>backend_name</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>'030'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<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>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>set the name for the backend server</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_balance</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>what kind of balance should be used</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_mode</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>which backend mode should be used</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>default_backend</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for the default backend</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_option</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a backend option</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>fe_tcp_request</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a frontend tcp request</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>fe_http_request</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a frontend http request</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>fe_option</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a frontend option</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>acl_rule_front</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a frontend acl rule</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>acl_rule_back</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a backend acl rule</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>backend_configs</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>Array</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>array of values for the backend</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_stick_table</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for the backend stickiness</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_stick_on</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for th backend stickiness</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_http_check</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for backend http check</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_http_request</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a backend http request</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>be_acl_rule</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
—
|
|
||||||
<div class='inline'>
|
|
||||||
<p>value for a backend acl rule</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div><div class="method_details_list">
|
|
||||||
<table class="source_code">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<pre class="lines">
|
|
||||||
|
|
||||||
|
|
||||||
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</pre>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/proxy.pp', line 34</span>
|
|
||||||
|
|
||||||
define haproxy_cd::server::proxy (
|
|
||||||
|
|
||||||
String $haproxy_fqdn = undef,
|
|
||||||
String $frontend_name = undef,
|
|
||||||
String $frontend_mode = undef,
|
|
||||||
String $fe_use_backend = '',
|
|
||||||
String $fe_bind_mode = undef,
|
|
||||||
String $fe_option = '',
|
|
||||||
String $frontend_order = '010',
|
|
||||||
String $acl_rule_front = '',
|
|
||||||
String $acl_rule_back = '',
|
|
||||||
String $backend_name = '',
|
|
||||||
String $backend_order = '030',
|
|
||||||
String $fe_maxconn = '',
|
|
||||||
String $be_server_name = '',
|
|
||||||
String $be_balance = '',
|
|
||||||
String $be_mode = '',
|
|
||||||
String $default_backend = '',
|
|
||||||
String $be_option = '',
|
|
||||||
String $fe_tcp_request = '',
|
|
||||||
String $fe_http_request = '',
|
|
||||||
Array $backend_configs = [],
|
|
||||||
String $be_stick_table = '',
|
|
||||||
String $be_stick_on = '',
|
|
||||||
String $be_http_check = '',
|
|
||||||
String $be_http_request = '',
|
|
||||||
String $be_acl_rule = '',
|
|
||||||
|
|
||||||
) {
|
|
||||||
$hy_main_config = '/etc/haproxy/haproxy.cfg'
|
|
||||||
$hy_frontendrule = 'haproxy_cd/haproxy_frontend_rule.erb'
|
|
||||||
$hy_backendrule = 'haproxy_cd/haproxy_backend_rule.erb'
|
|
||||||
$hy_acl_rule = 'haproxy_cd/haproxy_acl_rule.erb'
|
|
||||||
|
|
||||||
# Ensure acl_rule_front and acl_rule_back are arrays
|
|
||||||
$acl_rule_front_array = split($acl_rule_front, ';')
|
|
||||||
$acl_rule_back_array = split($acl_rule_back, ';')
|
|
||||||
$fe_use_backend_array = split($fe_use_backend,';')
|
|
||||||
$backend_name_array = split($backend_name, ';')
|
|
||||||
$be_server_name_array = split($be_server_name, ';')
|
|
||||||
$be_option_array = split($be_option, ';')
|
|
||||||
$fe_tcp_request_array = split($fe_tcp_request, ';')
|
|
||||||
$fe_option_array = split($fe_option, ';')
|
|
||||||
$fe_http_request_array = split($fe_http_request, ';')
|
|
||||||
|
|
||||||
# create frontend section
|
|
||||||
concat::fragment { "frontend_${name}":
|
|
||||||
target => $hy_main_config,
|
|
||||||
content => template($hy_frontendrule),
|
|
||||||
order => $frontend_order,
|
|
||||||
}
|
|
||||||
|
|
||||||
# Ensure backends are only created once
|
|
||||||
ensure_resource('concat::fragment', "backends_${name}", {
|
|
||||||
'target' => $hy_main_config,
|
|
||||||
'content' => template($hy_backendrule),
|
|
||||||
'order' => $backend_order,
|
|
||||||
})
|
|
||||||
|
|
||||||
# open specific 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>
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>
|
|
||||||
Top Level Namespace
|
|
||||||
|
|
||||||
— 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 = "";
|
|
||||||
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</a> »
|
|
||||||
|
|
||||||
|
|
||||||
<span class="title">Top Level Namespace</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>Top Level Namespace
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h1>
|
|
||||||
<div class="box_info">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</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>
|
|
||||||
@@ -1,77 +1,59 @@
|
|||||||
## haproxy_cd::params.pp
|
## haproxy_cd::params.pp
|
||||||
# Module name: haproxy_cd
|
# Module name: haproxy_cd
|
||||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||||
# @param [string] pkg_ensure
|
# @param [String] pkg_ensure
|
||||||
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
|
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
|
||||||
# to choose, i.e. `latest` or `present`.
|
# to choose, i.e. `latest` or `present`.
|
||||||
# @param [array] reqpackages specify the packages to be installed
|
# @param [array] reqpackages specify the packages to be installed
|
||||||
# @param [string] hy_host_fqdn the fqdn of the ha proxy host. must be fqdn,
|
# @param [String] hy_host_fqdn the fqdn of the ha proxy host. must be fqdn,
|
||||||
# not cname. specify multiple fqdns via array.
|
# not cname. specify multiple fqdns via array.
|
||||||
# @param [boolean] hy_manage_fw whether to manage the firewall.
|
# @param [Boolean] hy_manage_fw whether to manage the firewall.
|
||||||
# @param [string] hy_fw_order_no the rule number to control the order of the
|
# @param [String] hy_fw_order_no the rule number to control the order of the
|
||||||
# firewall rules.
|
# firewall rules.
|
||||||
# @param [string] hy_http_port the http port. used in firewall settings
|
# @param [String] hy_http_port the http port. used in firewall settings
|
||||||
# @param [string] hy_https_port the https port. used in firewall settings
|
# @param [String] hy_https_port the https port. used in firewall settings
|
||||||
# @param [string] hy_user_name the name of the haproxy service user.
|
# @param [String] hy_user_name the name of the haproxy service user.
|
||||||
# @param [string] hy_user_comment the comment of the haproxy user, shows up
|
# @param [String] hy_user_comment the comment of the haproxy user, shows up
|
||||||
# in emails sent from haproxy.
|
# in emails sent from haproxy.
|
||||||
# @param [string] hy_user_home the home directory for the haproxy user.
|
# @param [String] hy_user_home the home directory for the haproxy user.
|
||||||
# @param [string] hy_user_shell the shell for the haproxy user.
|
# @param [String] hy_user_shell the shell for the haproxy user.
|
||||||
# @param [string] hy_log_target Where to send the logs for this haproxy.
|
# @param [String] hy_log_target Where to send the logs for this haproxy.
|
||||||
# Currently only local logging / rsyslog forwarding supported.
|
# Currently only local logging / rsyslog forwarding supported.
|
||||||
# @param [string] hy_log_facility which logging facility to use.
|
# @param [String] hy_log_facility which logging facility to use.
|
||||||
# @param [string] hy_chroot where the chroot should be
|
# @param [String] hy_chroot where the chroot should be
|
||||||
# @param [string] hy_pid the pid file to use.
|
# @param [String] hy_pid the pid file to use.
|
||||||
# @param [string] hy_maxconn how many connections should we max allow.
|
# @param [String] hy_maxconn how many connections should we max allow.
|
||||||
# @param [boolean] hy_show_stats whether we want to display the statistics page
|
# @param [Boolean] hy_show_stats whether we want to display the statistics page
|
||||||
# @param [string] hy_stats_socket name and path of the stats socket
|
# @param [String] hy_stats_socket name and path of the stats socket
|
||||||
# @param [string] hy_default_mode which mode to use in the defaults block
|
# @param [String] hy_default_mode which mode to use in the defaults block
|
||||||
# @param [string] hy_log_default should be used when the instance's logging
|
# @param [String] hy_log_default should be used when the instance's logging
|
||||||
# parameters are the same as the global ones.
|
# parameters are the same as the global ones.
|
||||||
# @param [boolean] hy_use_httplog whether to use httplogging option. Enable
|
# @param [String] hy_timeout_http_request Set the maximum allowed time to wait
|
||||||
# logging of HTTP request, session state and timers
|
|
||||||
# @param [boolean] hy_use_dontlognull Whether to enable or disable dontlognull
|
|
||||||
# option. true enables, false disables.
|
|
||||||
# @param [boolean] hy_use_http_server_close Enable or disable HTTP connection
|
|
||||||
# closing on the server side
|
|
||||||
# @param [boolean] hy_use_forward_for Enable insertion of the
|
|
||||||
# X-Forwarded-For header to requests sent to servers.
|
|
||||||
# @param [boolean] hy_use_redispatch Enable or disable session redistribution
|
|
||||||
# in case of connection failure.
|
|
||||||
# @param [string] hy_max_retries Set the number of retries to perform on a
|
|
||||||
# server after a connection failure.
|
|
||||||
# @param [string] hy_timeout_http_request Set the maximum allowed time to wait
|
|
||||||
# for a complete HTTP request.
|
# for a complete HTTP request.
|
||||||
# @param [string] hy_timeout_queue Set the maximum time to wait in the queue
|
# @param [String] hy_timeout_queue Set the maximum time to wait in the queue
|
||||||
# for a connection slot to be free.
|
# for a connection slot to be free.
|
||||||
# @param [string] hy_timeout_connect Set the maximum time to wait for a
|
# @param [String] hy_timeout_http_keep_alive set the timeout value for
|
||||||
# connection attempt to a server to succeed.
|
|
||||||
# @param [string] hy_timeout_client Set the maximum inactivity time on the
|
|
||||||
# client side.
|
|
||||||
# @param [string] hy_timeout_server Set the maximum inactivity time on the
|
|
||||||
# server side.
|
|
||||||
# @param [string] hy_timeout_http_keep_alive set the timeout value for
|
|
||||||
# keeping https connections alive
|
# keeping https connections alive
|
||||||
# @param [string] hy_timeout_check set the timeout value for how long to check
|
# @param [String] hy_timeout_check set the timeout value for how long to check
|
||||||
# if the timeout has occurred
|
# if the timeout has occurred
|
||||||
# @param [boolean] hy_manage_fail2ban whether to integrate fail2ban
|
# @param [Boolean] hy_manage_fail2ban whether to integrate fail2ban
|
||||||
# @param [boolean] hy_use_http_server_close whether to use this in global mode
|
# @param [Boolean] hy_use_http_server_close whether to use this in global mode
|
||||||
# @param [boolean] hy_use_forward_for whether to use this in global mode
|
# @param [Boolean] hy_use_forward_for whether to use this in global mode
|
||||||
# @param [boolean] hy_use_redispatch whether to use this in global mode
|
# @param [Boolean] hy_use_redispatch whether to use this in global mode
|
||||||
# @param [string] hy_max_retries max retries value
|
# @param [String] hy_max_retries max retries value
|
||||||
# @param [string] hy_timeout_connect timeout for connections
|
# @param [String] hy_timeout_connect timeout for connections
|
||||||
# @param [string] hy_timeout_client timeout for client connections
|
# @param [String] hy_timeout_client timeout for client connections
|
||||||
# @param [string] hy_timeout_server timeout for server response
|
# @param [String] hy_timeout_server timeout for server response
|
||||||
# @param [boolean] hy_hard_stop whether to use hard stop for service restart
|
# @param [Boolean] hy_hard_stop whether to use hard stop for service restart
|
||||||
# @param [string] hy_hard_stop_value which value to use for hard stop
|
# @param [String] hy_hard_stop_value which value to use for hard stop
|
||||||
# @param [string] hy_stats_auth credentials to use for stats authentication
|
# @param [String] hy_stats_auth credentials to use for stats authentication
|
||||||
# @param [string] hy_log_local0 settings for logging to local0
|
# @param [String] hy_log_local0 settings for logging to local0
|
||||||
# @param [string] hy_log_local1 settings for logging to local1
|
# @param [String] hy_log_local1 settings for logging to local1
|
||||||
# @param [boolean] hy_use_tcplog whether to use tcplog as default
|
# @param [Boolean] hy_use_tcplog whether to use tcplog as default
|
||||||
# @param [boolean] hy_use_httplog whether to use httplog as default
|
# @param [Boolean] hy_use_httplog whether to use httplog as default
|
||||||
# @param [boolean] hy_use_dontlognull whether to use dontlognull as default
|
# @param [Boolean] hy_use_dontlognull whether to use dontlognull as default
|
||||||
# @param [string] hy_be_userlist backend userlist comment
|
# @param [String] hy_be_userlist backend userlist comment
|
||||||
# @param [boolean] hy_manage_be_users whether to manage backend users
|
# @param [Boolean] hy_manage_be_users whether to manage backend users
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class haproxy_cd::params (
|
class haproxy_cd::params (
|
||||||
|
|
||||||
|
|||||||
@@ -2,34 +2,34 @@
|
|||||||
# Module name: haproxy_cd
|
# Module name: haproxy_cd
|
||||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||||
# @summary Define manages the proxies for haproxy_cd.
|
# @summary Define manages the proxies for haproxy_cd.
|
||||||
# @param [string] haproxy_fqdn the fqdn of the haproxy server in question.
|
# @param [String] haproxy_fqdn the fqdn of the haproxy server in question.
|
||||||
# @param [string] frontend_name the name for the frontend section rule.
|
# @param [String] frontend_name the name for the frontend section rule.
|
||||||
# @param [string] frontend_order where the concat should appear in the file.
|
# @param [String] frontend_order where the concat should appear in the file.
|
||||||
# @param [string] frontend_mode mode for the loadbalancer instance: http or tcp
|
# @param [String] frontend_mode mode for the loadbalancer instance: http or tcp
|
||||||
# @param [string] fe_use_backend which backend to use. if left empty, the
|
# @param [String] fe_use_backend which backend to use. if left empty, the
|
||||||
# default backend will be used.
|
# default backend will be used.
|
||||||
# @param [string] fe_bind_mode which bind mode to use, i.e. to which interface
|
# @param [String] fe_bind_mode which bind mode to use, i.e. to which interface
|
||||||
# and port to bind.
|
# and port to bind.
|
||||||
# @param [string] backend_name the backend name to be used for the rule.
|
# @param [String] backend_name the backend name to be used for the rule.
|
||||||
# @param [string] backend_order the order for the backend name, so it will be
|
# @param [String] backend_order the order for the backend name, so it will be
|
||||||
# within the correct lb instance configuration.
|
# within the correct lb instance configuration.
|
||||||
# @param [string] fe_maxconn the maximum connections for the lb instance.
|
# @param [String] fe_maxconn the maximum connections for the lb instance.
|
||||||
# @param [string] be_server_name set the name for the backend server
|
# @param [String] be_server_name set the name for the backend server
|
||||||
# @param [string] be_balance what kind of balance should be used
|
# @param [String] be_balance what kind of balance should be used
|
||||||
# @param [string] be_mode which backend mode should be used
|
# @param [String] be_mode which backend mode should be used
|
||||||
# @param [string] default_backend value for the default backend
|
# @param [String] default_backend value for the default backend
|
||||||
# @param [string] be_option value for a backend option
|
# @param [String] be_option value for a backend option
|
||||||
# @param [string] fe_tcp_request value for a frontend tcp request
|
# @param [String] fe_tcp_request value for a frontend tcp request
|
||||||
# @param [string] fe_http_request value for a frontend http request
|
# @param [String] fe_http_request value for a frontend http request
|
||||||
# @param [string] fe_option value for a frontend option
|
# @param [String] fe_option value for a frontend option
|
||||||
# @param [string] acl_rule_front value for a frontend acl rule
|
# @param [String] acl_rule_front value for a frontend acl rule
|
||||||
# @param [string] acl_rule_back value for a backend acl rule
|
# @param [String] acl_rule_back value for a backend acl rule
|
||||||
# @param [array] backend_configs array of values for the backend
|
# @param [Array] backend_configs array of values for the backend
|
||||||
# @param [string] be_stick_table value for the backend stickiness
|
# @param [String] be_stick_table value for the backend stickiness
|
||||||
# @param [string] be_stick_on value for th backend stickiness
|
# @param [String] be_stick_on value for th backend stickiness
|
||||||
# @param [string] be_http_check value for backend http check
|
# @param [String] be_http_check value for backend http check
|
||||||
# @param [string] be_http_request value for a backend http request
|
# @param [String] be_http_request value for a backend http request
|
||||||
# @param [string] be_acl_rule value for a backend acl rule
|
# @param [String] be_acl_rule value for a backend acl rule
|
||||||
###############################################################################
|
###############################################################################
|
||||||
define haproxy_cd::server::proxy (
|
define haproxy_cd::server::proxy (
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user