Compare commits
13 Commits
8685a0b589
...
45d371972c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45d371972c | ||
| fa133ffd63 | |||
| 44660e2b9e | |||
|
|
257ab516f3 | ||
|
|
0743e79bfd | ||
| 234c24d5f5 | |||
| f689b7038f | |||
| 8477cdf7f8 | |||
|
|
52f6420fa5 | ||
|
|
e9e68175c8 | ||
|
|
11134b2730 | ||
| 3feb7eb25a | |||
|
|
9017955d1c |
2
.puppet-lint.rc
Normal file
2
.puppet-lint.rc
Normal file
@@ -0,0 +1,2 @@
|
||||
--no-variable_scope-check
|
||||
--no-top_scope_facts
|
||||
13
.vscode/settings.json
vendored
13
.vscode/settings.json
vendored
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"cSpell.words": [
|
||||
"dontlognull",
|
||||
"dport",
|
||||
"httplog",
|
||||
"maxconn",
|
||||
"nologin",
|
||||
"redispatch",
|
||||
"sess",
|
||||
"tcplog",
|
||||
"userlist"
|
||||
]
|
||||
}
|
||||
105
Jenkinsfile
vendored
105
Jenkinsfile
vendored
@@ -1,105 +0,0 @@
|
||||
pipeline {
|
||||
agent {
|
||||
label 'puppet'
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
deleteDir() /* clean up our workspace */
|
||||
}
|
||||
success {
|
||||
updateGitlabCommitStatus state: 'success'
|
||||
}
|
||||
failure {
|
||||
updateGitlabCommitStatus state: 'failed'
|
||||
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'support@confdroid.com', sendToIndividuals: true])
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
gitLabConnection('gitlab.confdroid.com')
|
||||
}
|
||||
|
||||
stages {
|
||||
|
||||
stage('pull master') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
sh '''
|
||||
git config user.name "Jenkins Server"
|
||||
git config user.email jenkins@confdroid.com
|
||||
# Ensure we're on the development branch (triggered by push)
|
||||
git checkout development
|
||||
# Create jenkins branch from development
|
||||
git checkout -b jenkins-build-$BUILD_NUMBER
|
||||
# Optionally merge master into jenkins to ensure compatibility
|
||||
git merge origin/master --no-ff || { echo "Merge conflict detected"; exit 1; }
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('puppet parser') {
|
||||
steps {
|
||||
sh '''for file in $(find . -iname \'*.pp\'); do
|
||||
/opt/puppetlabs/bin/puppet parser validate --color false --render-as s --modulepath=modules $file || exit 1;
|
||||
done;'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('check templates') {
|
||||
steps{
|
||||
sh '''for file in $(find . -iname \'*.erb\');
|
||||
do erb -P -x -T "-" $file | ruby -c || exit 1;
|
||||
done;'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('puppet-lint') {
|
||||
steps {
|
||||
sh '''/usr/local/bin/puppet-lint . \\
|
||||
--no-variable_scope-check \\
|
||||
|| { echo "Puppet lint failed"; exit 1; }
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage('SonarScan') {
|
||||
steps {
|
||||
withCredentials([string(credentialsId: 'sonar-token', variable: 'SONAR_TOKEN')]) {
|
||||
sh '''
|
||||
/opt/sonar-scanner/bin/sonar-scanner \
|
||||
-Dsonar.projectKey=haproxy_cd \
|
||||
-Dsonar.sources=. \
|
||||
-Dsonar.host.url=https://sonarqube.confdroid.com \
|
||||
-Dsonar.token=$SONAR_TOKEN
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('create Puppet documentation') {
|
||||
steps {
|
||||
sh '/opt/puppetlabs/bin/puppet strings'
|
||||
}
|
||||
}
|
||||
|
||||
stage('update repo') {
|
||||
steps {
|
||||
sshagent(['edd05eb6-26b5-4c7b-a5cc-ea2ab899f4fa']) {
|
||||
sh '''
|
||||
git config user.name "Jenkins Server"
|
||||
git config user.email jenkins@confdroid.com
|
||||
git add -A && git commit -am "Recommit for updates in build $BUILD_NUMBER" || echo "No changes to commit"
|
||||
git push -o merge_request.create \
|
||||
-o merge_request.target=master \
|
||||
-o merge_request.title="Auto-merge for build $BUILD_NUMBER" \
|
||||
-o merge_request.description="Automated changes from Jenkins build $BUILD_NUMBER" \
|
||||
-o merge_request.merge_when_pipeline_succeeds=true \
|
||||
origin jenkins-build-$BUILD_NUMBER
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
77
README.md
77
README.md
@@ -1,14 +1,27 @@
|
||||
# Readme
|
||||
|
||||
[](https://jenkins.confdroid.com/job/haproxy_cd/)|
|
||||
[](https://jenkins.confdroid.com/job/confdroid_haproxy/)
|
||||
|
||||
[[_TOC_]]
|
||||
- [Readme](#readme)
|
||||
- [Synopsis](#synopsis)
|
||||
- [WARNING](#warning)
|
||||
- [Features](#features)
|
||||
- [Dependencies](#dependencies)
|
||||
- [Deployment](#deployment)
|
||||
- [Parameters](#parameters)
|
||||
- [Proxy Configuration](#proxy-configuration)
|
||||
- [SELINUX](#selinux)
|
||||
- [Known Problems](#known-problems)
|
||||
- [Support](#support)
|
||||
- [Tests](#tests)
|
||||
- [Contact Us](#contact-us)
|
||||
- [Disclaimer](#disclaimer)
|
||||
|
||||
## Synopsis
|
||||
|
||||
`HA Proxy` is a very powerful and popular open source load balancer to balance incoming requests between multiple instances of web-, application- or database servers etc.
|
||||
|
||||
`haproxy_cd` automates installation and configuration of `HA proxy` including self-healing, monitoring and firewall etc.
|
||||
`confdroid_haproxy` automates installation and configuration of `HA proxy` including self-healing, monitoring and firewall etc.
|
||||
|
||||
## WARNING
|
||||
|
||||
@@ -18,46 +31,46 @@
|
||||
|
||||
INSTALLATION
|
||||
|
||||
* install rpm binaries
|
||||
- install rpm binaries
|
||||
|
||||
CONFIGURATION
|
||||
|
||||
* manage haproxy user
|
||||
* manage directories (file system permissions, selinux context)
|
||||
* manage files (file system permissions, content, selinux context)
|
||||
* manage proxy instances through a define
|
||||
* front-end options
|
||||
* back-end options
|
||||
* ACL options
|
||||
* manage fail2ban integration (optional, requires fail2ban_cd module)
|
||||
- manage haproxy user
|
||||
- manage directories (file system permissions, selinux context)
|
||||
- manage files (file system permissions, content, selinux context)
|
||||
- manage proxy instances through a define
|
||||
- front-end options
|
||||
- back-end options
|
||||
- ACL options
|
||||
- manage fail2ban integration (optional, requires fail2ban_cd module)
|
||||
|
||||
SERVICE
|
||||
|
||||
* manage haproxy service
|
||||
* restart service after changes in the configuration
|
||||
- manage haproxy service
|
||||
- restart service after changes in the configuration
|
||||
|
||||
## Dependencies
|
||||
|
||||
All dependencies must be included in the catalogue.
|
||||
|
||||
* [cd_resources](https://gitlab.confdroid.com/puppet/cd_resources) for managing yum base repos
|
||||
* [concat](https://github.com/puppetlabs/puppetlabs-concat) for managing file fragments
|
||||
- [cd_resources](https://gitlab.confdroid.com/puppet/cd_resources) for managing yum base repos
|
||||
- [concat](https://github.com/puppetlabs/puppetlabs-concat) for managing file fragments
|
||||
|
||||
## Deployment
|
||||
|
||||
* native Puppet deployment
|
||||
- native Puppet deployment
|
||||
|
||||
via site.pp or nodes.pp
|
||||
|
||||
```bash
|
||||
node 'example.example.net' {
|
||||
include haproxy_cd
|
||||
include confdroid_haproxy
|
||||
}
|
||||
```
|
||||
|
||||
* through Foreman:
|
||||
- through Foreman:
|
||||
|
||||
In order to apply parameters through Foreman, **__haproxy_cd::params__** must be added to the host or host group in question.
|
||||
In order to apply parameters through Foreman, **confdroid_haproxy::params**- must be added to the host or host group in question.
|
||||
|
||||
See [more details about class deployment on Confdroid.com](https://confdroid.com/2017/05/deploying-our-puppet-modules/).
|
||||
|
||||
@@ -71,7 +84,7 @@ The proxy instances are configured in /etc/haproxy/haproxy.cfg, which is concate
|
||||
In order to create proxy instances, you will need an external class, which addresses the define, like so:
|
||||
|
||||
```bash
|
||||
haproxy_cd::server::proxy { 'testing':
|
||||
confdroid_haproxy::server::proxy { 'testing':
|
||||
haproxy_fqdn => 'node.example.net',
|
||||
frontend_name => 'test01-frontend',
|
||||
frontend_mode => 'http',
|
||||
@@ -82,7 +95,7 @@ In order to create proxy instances, you will need an external class, which addre
|
||||
```
|
||||
|
||||
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.
|
||||
`haproxy_fqdn` **__must__** contain the fqdn of the haproxy **__server__** where this should be configured, otherwise the templates are not being populated.
|
||||
`haproxy_fqdn` **must**- contain the fqdn of the haproxy **server**- 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.
|
||||
|
||||
## SELINUX
|
||||
@@ -93,22 +106,22 @@ All files and directories are configured with correct selinux context. If selinu
|
||||
|
||||
## Support
|
||||
|
||||
* OS: Rocky 9
|
||||
* Puppet 8
|
||||
- OS: Rocky 9
|
||||
- Puppet 8
|
||||
|
||||
## Tests
|
||||
|
||||
* Puppet Lint
|
||||
* excluded tests:
|
||||
* `--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.
|
||||
* Puppet Parser
|
||||
* ERB Template Parser
|
||||
* Sonar Quality Gate
|
||||
- Puppet Lint
|
||||
- excluded tests:
|
||||
- `--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.
|
||||
- Puppet Parser
|
||||
- ERB Template Parser
|
||||
- Sonar Quality Gate
|
||||
|
||||
## Contact Us
|
||||
|
||||
[contact Us](https://confdroid.com/contact/)
|
||||
[Feedback Portal](https://feedback.confdroid.com/)
|
||||
- [contact Us](https://confdroid.com/contact/)
|
||||
- [Feedback Portal](https://feedback.confdroid.com/)
|
||||
|
||||
## Disclaimer
|
||||
|
||||
|
||||
@@ -64,57 +64,57 @@
|
||||
<td valign='top' width="33%">
|
||||
|
||||
|
||||
<ul id="alpha_H" class="alpha">
|
||||
<li class="letter">H</li>
|
||||
<ul id="alpha_C" class="alpha">
|
||||
<li class="letter">C</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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy.html" title="puppet_classes::confdroid_haproxy (puppet_class)">confdroid_haproxy</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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_haproxy::firewall::iptables (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_haproxy::main::config (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_haproxy::main::dirs (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_haproxy::main::files (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_haproxy::main::install (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Auser.html" title="puppet_classes::confdroid_haproxy::main::user (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::confdroid_haproxy::monitoring::fail2ban (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::confdroid_haproxy::server::service (puppet_class)">confdroid_haproxy::server::service</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
@@ -135,12 +135,12 @@
|
||||
<td valign='top' width="33%">
|
||||
|
||||
|
||||
<ul id="alpha_H" class="alpha">
|
||||
<li class="letter">H</li>
|
||||
<ul id="alpha_C" class="alpha">
|
||||
<li class="letter">C</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>
|
||||
<span class='object_link'><a href="puppet_defined_types/confdroid_haproxy_3A_3Aserver_3A_3Aproxy.html" title="puppet_defined_types::confdroid_haproxy::server::proxy (puppet_defined_type)">confdroid_haproxy::server::proxy</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
@@ -60,15 +60,42 @@
|
||||
<div id="content"><div id='filecontents'>
|
||||
<h1 id="label-Readme">Readme</h1>
|
||||
|
||||
<p><a href="https://jenkins.confdroid.com/job/haproxy_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=haproxy_cd"></a>|</p>
|
||||
|
||||
<p>[[<em>TOC</em>]]</p>
|
||||
<p><a href="https://jenkins.confdroid.com/job/confdroid_haproxy/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_haproxy&style=plastic"></a></p>
|
||||
<ul><li>
|
||||
<p><a href="#readme">Readme</a></p>
|
||||
</li><li>
|
||||
<p><a href="#synopsis">Synopsis</a></p>
|
||||
</li><li>
|
||||
<p><a href="#warning">WARNING</a></p>
|
||||
</li><li>
|
||||
<p><a href="#features">Features</a></p>
|
||||
</li><li>
|
||||
<p><a href="#dependencies">Dependencies</a></p>
|
||||
</li><li>
|
||||
<p><a href="#deployment">Deployment</a></p>
|
||||
</li><li>
|
||||
<p><a href="#parameters">Parameters</a></p>
|
||||
</li><li>
|
||||
<p><a href="#proxy-configuration">Proxy Configuration</a></p>
|
||||
</li><li>
|
||||
<p><a href="#selinux">SELINUX</a></p>
|
||||
</li><li>
|
||||
<p><a href="#known-problems">Known Problems</a></p>
|
||||
</li><li>
|
||||
<p><a href="#support">Support</a></p>
|
||||
</li><li>
|
||||
<p><a href="#tests">Tests</a></p>
|
||||
</li><li>
|
||||
<p><a href="#contact-us">Contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="#disclaimer">Disclaimer</a></p>
|
||||
</li></ul>
|
||||
|
||||
<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>
|
||||
<p><code>confdroid_haproxy</code> automates installation and configuration of <code>HA proxy</code> including self-healing, monitoring and firewall etc.</p>
|
||||
|
||||
<h2 id="label-WARNING">WARNING</h2>
|
||||
|
||||
@@ -126,14 +153,14 @@
|
||||
<p>via site.pp or nodes.pp</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
||||
include haproxy_cd
|
||||
include confdroid_haproxy
|
||||
}
|
||||
</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>In order to apply parameters through Foreman, <strong>confdroid_haproxy::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>
|
||||
|
||||
@@ -145,7 +172,7 @@
|
||||
|
||||
<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':
|
||||
<pre class="code ruby"><code class="ruby">confdroid_haproxy::server::proxy { 'testing':
|
||||
haproxy_fqdn => 'node.example.net',
|
||||
frontend_name => 'test01-frontend',
|
||||
frontend_mode => 'http',
|
||||
@@ -155,7 +182,7 @@
|
||||
}
|
||||
</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>
|
||||
<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>
|
||||
|
||||
@@ -187,8 +214,11 @@
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Contact+Us">Contact Us</h2>
|
||||
|
||||
<p><a href="https://confdroid.com/contact/">contact Us</a> <a href="https://feedback.confdroid.com/">Feedback Portal</a></p>
|
||||
<ul><li>
|
||||
<p><a href="https://confdroid.com/contact/">contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="https://feedback.confdroid.com/">Feedback Portal</a></p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Disclaimer">Disclaimer</h2>
|
||||
|
||||
|
||||
@@ -60,15 +60,42 @@
|
||||
<div id="content"><div id='filecontents'>
|
||||
<h1 id="label-Readme">Readme</h1>
|
||||
|
||||
<p><a href="https://jenkins.confdroid.com/job/haproxy_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=haproxy_cd"></a>|</p>
|
||||
|
||||
<p>[[<em>TOC</em>]]</p>
|
||||
<p><a href="https://jenkins.confdroid.com/job/confdroid_haproxy/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_haproxy&style=plastic"></a></p>
|
||||
<ul><li>
|
||||
<p><a href="#readme">Readme</a></p>
|
||||
</li><li>
|
||||
<p><a href="#synopsis">Synopsis</a></p>
|
||||
</li><li>
|
||||
<p><a href="#warning">WARNING</a></p>
|
||||
</li><li>
|
||||
<p><a href="#features">Features</a></p>
|
||||
</li><li>
|
||||
<p><a href="#dependencies">Dependencies</a></p>
|
||||
</li><li>
|
||||
<p><a href="#deployment">Deployment</a></p>
|
||||
</li><li>
|
||||
<p><a href="#parameters">Parameters</a></p>
|
||||
</li><li>
|
||||
<p><a href="#proxy-configuration">Proxy Configuration</a></p>
|
||||
</li><li>
|
||||
<p><a href="#selinux">SELINUX</a></p>
|
||||
</li><li>
|
||||
<p><a href="#known-problems">Known Problems</a></p>
|
||||
</li><li>
|
||||
<p><a href="#support">Support</a></p>
|
||||
</li><li>
|
||||
<p><a href="#tests">Tests</a></p>
|
||||
</li><li>
|
||||
<p><a href="#contact-us">Contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="#disclaimer">Disclaimer</a></p>
|
||||
</li></ul>
|
||||
|
||||
<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>
|
||||
<p><code>confdroid_haproxy</code> automates installation and configuration of <code>HA proxy</code> including self-healing, monitoring and firewall etc.</p>
|
||||
|
||||
<h2 id="label-WARNING">WARNING</h2>
|
||||
|
||||
@@ -126,14 +153,14 @@
|
||||
<p>via site.pp or nodes.pp</p>
|
||||
|
||||
<pre class="code ruby"><code class="ruby">node 'example.example.net' {
|
||||
include haproxy_cd
|
||||
include confdroid_haproxy
|
||||
}
|
||||
</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>In order to apply parameters through Foreman, <strong>confdroid_haproxy::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>
|
||||
|
||||
@@ -145,7 +172,7 @@
|
||||
|
||||
<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':
|
||||
<pre class="code ruby"><code class="ruby">confdroid_haproxy::server::proxy { 'testing':
|
||||
haproxy_fqdn => 'node.example.net',
|
||||
frontend_name => 'test01-frontend',
|
||||
frontend_mode => 'http',
|
||||
@@ -155,7 +182,7 @@
|
||||
}
|
||||
</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>
|
||||
<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>
|
||||
|
||||
@@ -187,8 +214,11 @@
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Contact+Us">Contact Us</h2>
|
||||
|
||||
<p><a href="https://confdroid.com/contact/">contact Us</a> <a href="https://feedback.confdroid.com/">Feedback Portal</a></p>
|
||||
<ul><li>
|
||||
<p><a href="https://confdroid.com/contact/">contact Us</a></p>
|
||||
</li><li>
|
||||
<p><a href="https://feedback.confdroid.com/">Feedback Portal</a></p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Disclaimer">Disclaimer</h2>
|
||||
|
||||
|
||||
@@ -40,72 +40,72 @@
|
||||
<ul id="full_list" class="puppet_class">
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_haproxy" 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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy.html" title="puppet_classes::confdroid_haproxy (puppet_class)">confdroid_haproxy</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::firewall::iptables" class="even">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_haproxy::firewall::iptables (puppet_class)">confdroid_haproxy::firewall::iptables</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::main::config" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_haproxy::main::config (puppet_class)">confdroid_haproxy::main::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::main::dirs" class="even">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_haproxy::main::dirs (puppet_class)">confdroid_haproxy::main::dirs</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::main::files" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_haproxy::main::files (puppet_class)">confdroid_haproxy::main::files</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::main::install" class="even">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_haproxy::main::install (puppet_class)">confdroid_haproxy::main::install</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::main::user" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amain_3A_3Auser.html" title="puppet_classes::confdroid_haproxy::main::user (puppet_class)">confdroid_haproxy::main::user</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::monitoring::fail2ban" class="even">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::confdroid_haproxy::monitoring::fail2ban (puppet_class)">confdroid_haproxy::monitoring::fail2ban</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::params" class="odd">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::haproxy_cd::server::service" class="even">
|
||||
<li id="object_puppet_classes::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_classes/confdroid_haproxy_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::confdroid_haproxy::server::service (puppet_class)">confdroid_haproxy::server::service</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd
|
||||
Puppet Class: confdroid_haproxy
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd";
|
||||
pathId = "puppet_classes::confdroid_haproxy";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd</span>
|
||||
<span class="title">confdroid_haproxy</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
@@ -72,13 +72,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class initializes the haproxy_cd module.
|
||||
Class initializes the confdroid_haproxy 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>
|
||||
<p>confdroid_haproxy::init.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,8 +103,8 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 6</span>
|
||||
|
||||
class haproxy_cd {
|
||||
include haproxy_cd::params
|
||||
class confdroid_haproxy {
|
||||
include confdroid_haproxy::params
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::firewall::iptables
|
||||
Puppet Class: confdroid_haproxy::firewall::iptables
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::firewall::iptables";
|
||||
pathId = "puppet_classes::confdroid_haproxy::firewall::iptables";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::firewall::iptables</span>
|
||||
<span class="title">confdroid_haproxy::firewall::iptables</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::firewall::iptables</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>haproxy_cd::firewall::iptables.pp Module name: haproxy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_haproxy::firewall::iptables.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -128,9 +128,9 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/firewall/iptables.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::firewall::iptables (
|
||||
class confdroid_haproxy::firewall::iptables (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::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',
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::main::config
|
||||
Puppet Class: confdroid_haproxy::main::config
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::main::config";
|
||||
pathId = "puppet_classes::confdroid_haproxy::main::config";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::main::config</span>
|
||||
<span class="title">confdroid_haproxy::main::config</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::main::config</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages module logic for haproxy_cd.
|
||||
Class manages module logic for confdroid_haproxy.
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::main::config.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,13 +114,13 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::main::config (
|
||||
class confdroid_haproxy::main::config (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
include haproxy_cd::server::service
|
||||
) inherits confdroid_haproxy::params {
|
||||
include confdroid_haproxy::server::service
|
||||
|
||||
if $hy_manage_fail2ban == true {
|
||||
include haproxy_cd::monitoring::fail2ban
|
||||
include confdroid_haproxy::monitoring::fail2ban
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::main::dirs
|
||||
Puppet Class: confdroid_haproxy::main::dirs
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::main::dirs";
|
||||
pathId = "puppet_classes::confdroid_haproxy::main::dirs";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::main::dirs</span>
|
||||
<span class="title">confdroid_haproxy::main::dirs</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::main::dirs</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages all directories required for haproxy_cd.
|
||||
Class manages all directories required for confdroid_haproxy.
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::main::dirs.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -148,11 +148,11 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::main::dirs (
|
||||
class confdroid_haproxy::main::dirs (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::main::user
|
||||
require confdroid_haproxy::main::user
|
||||
|
||||
# main dir
|
||||
file { $hy_main_dir:
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::main::files
|
||||
Puppet Class: confdroid_haproxy::main::files
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::main::files";
|
||||
pathId = "puppet_classes::confdroid_haproxy::main::files";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::main::files</span>
|
||||
<span class="title">confdroid_haproxy::main::files</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::main::files</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages all configuration files required for haproxy_cd.
|
||||
Class manages all configuration files required for confdroid_haproxy.
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::main::files.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -258,11 +258,11 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::main::files (
|
||||
class confdroid_haproxy::main::files (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::main::dirs
|
||||
require confdroid_haproxy::main::dirs
|
||||
|
||||
# create the concat target
|
||||
concat { $hy_main_config:
|
||||
@@ -406,7 +406,7 @@ class haproxy_cd::main::files (
|
||||
selrole => object_r,
|
||||
seltype => syslog_conf_t,
|
||||
seluser => system_u,
|
||||
content => template('haproxy_cd/rsyslog/10_haproxy.conf.erb'),
|
||||
content => template('confdroid_haproxy/rsyslog/10_haproxy.conf.erb'),
|
||||
# notify => Service['rsyslog'], # only if using rsyslog_cd module
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::main::install
|
||||
Puppet Class: confdroid_haproxy::main::install
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::main::install";
|
||||
pathId = "puppet_classes::confdroid_haproxy::main::install";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::main::install</span>
|
||||
<span class="title">confdroid_haproxy::main::install</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::main::install</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class installs binaries required for haproxy_cd
|
||||
Class installs binaries required for confdroid_haproxy
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::main::install.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -114,9 +114,9 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::main::install (
|
||||
class confdroid_haproxy::main::install (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::main::user
|
||||
Puppet Class: confdroid_haproxy::main::user
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::main::user";
|
||||
pathId = "puppet_classes::confdroid_haproxy::main::user";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::main::user</span>
|
||||
<span class="title">confdroid_haproxy::main::user</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::main::user</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages service users for haproxy_cd.
|
||||
Class manages service users for confdroid_haproxy.
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::main::user.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@ConfDroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -130,11 +130,11 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/user.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::main::user (
|
||||
class confdroid_haproxy::main::user (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::main::install
|
||||
require confdroid_haproxy::main::install
|
||||
|
||||
# manage user
|
||||
user { $hy_user_name:
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::monitoring::fail2ban
|
||||
Puppet Class: confdroid_haproxy::monitoring::fail2ban
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::monitoring::fail2ban";
|
||||
pathId = "puppet_classes::confdroid_haproxy::monitoring::fail2ban";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::monitoring::fail2ban</span>
|
||||
<span class="title">confdroid_haproxy::monitoring::fail2ban</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::monitoring::fail2ban</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>Module name: haproxy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -140,9 +140,9 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/monitoring/fail2ban.pp', line 5</span>
|
||||
|
||||
class haproxy_cd::monitoring::fail2ban (
|
||||
class confdroid_haproxy::monitoring::fail2ban (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $hy_manage_fail2ban == true {
|
||||
require confdroid_fail2ban # (external module)
|
||||
|
||||
@@ -157,7 +157,7 @@ class haproxy_cd::monitoring::fail2ban (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('haproxy_cd/fail2ban/f2b_haproxy.conf.erb'),
|
||||
content => template('confdroid_haproxy/fail2ban/f2b_haproxy.conf.erb'),
|
||||
notify => Service['fail2ban'],
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ class haproxy_cd::monitoring::fail2ban (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('haproxy_cd/fail2ban/010_jail.d_haproxy.conf.erb'),
|
||||
content => template('confdroid_haproxy/fail2ban/010_jail.d_haproxy.conf.erb'),
|
||||
notify => Service['fail2ban'],
|
||||
}
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::params
|
||||
Puppet Class: confdroid_haproxy::params
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::params";
|
||||
pathId = "puppet_classes::confdroid_haproxy::params";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::params</span>
|
||||
<span class="title">confdroid_haproxy::params</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::params</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::params</h1>
|
||||
<div class="box_info">
|
||||
|
||||
|
||||
@@ -67,21 +67,21 @@
|
||||
<dt>Inherited by:</dt>
|
||||
<dd>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::haproxy_cd::main::dirs (puppet_class)">haproxy_cd::main::dirs</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_haproxy::main::dirs (puppet_class)">confdroid_haproxy::main::dirs</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Amain_3A_3Auser.html" title="puppet_classes::haproxy_cd::main::user (puppet_class)">haproxy_cd::main::user</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Amain_3A_3Auser.html" title="puppet_classes::confdroid_haproxy::main::user (puppet_class)">confdroid_haproxy::main::user</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::haproxy_cd::main::files (puppet_class)">haproxy_cd::main::files</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_haproxy::main::files (puppet_class)">confdroid_haproxy::main::files</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::haproxy_cd::main::config (puppet_class)">haproxy_cd::main::config</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_haproxy::main::config (puppet_class)">confdroid_haproxy::main::config</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::haproxy_cd::main::install (puppet_class)">haproxy_cd::main::install</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_haproxy::main::install (puppet_class)">confdroid_haproxy::main::install</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::haproxy_cd::server::service (puppet_class)">haproxy_cd::server::service</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::confdroid_haproxy::server::service (puppet_class)">confdroid_haproxy::server::service</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::haproxy_cd::firewall::iptables (puppet_class)">haproxy_cd::firewall::iptables</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_haproxy::firewall::iptables (puppet_class)">confdroid_haproxy::firewall::iptables</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="haproxy_cd_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::haproxy_cd::monitoring::fail2ban (puppet_class)">haproxy_cd::monitoring::fail2ban</a></span><br/>
|
||||
<span class='object_link'><a href="confdroid_haproxy_3A_3Amonitoring_3A_3Afail2ban.html" title="puppet_classes::confdroid_haproxy::monitoring::fail2ban (puppet_class)">confdroid_haproxy::monitoring::fail2ban</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -98,7 +98,7 @@
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>haproxy_cd::params.pp Module name: haproxy_cd Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
<p>confdroid_haproxy::params.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -969,7 +969,7 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 58</span>
|
||||
|
||||
class haproxy_cd::params (
|
||||
class confdroid_haproxy::params (
|
||||
|
||||
String $pkg_ensure = 'latest',
|
||||
Array $reqpackages = ['haproxy','httpd-tools'],
|
||||
@@ -1038,25 +1038,25 @@ class haproxy_cd::params (
|
||||
|
||||
# files
|
||||
$hy_main_config = "${hy_main_dir}/haproxy.cfg"
|
||||
$hy_config_head_erb = 'haproxy_cd/haproxy_head.erb'
|
||||
$hy_config_tail_erb = 'haproxy_cd/haproxy_tail.erb'
|
||||
$hy_config_head_erb = 'confdroid_haproxy/haproxy_head.erb'
|
||||
$hy_config_tail_erb = 'confdroid_haproxy/haproxy_tail.erb'
|
||||
$hy_400_file = "${hy_errors_dir}/400.http"
|
||||
$hy_400_erb = 'haproxy_cd/errors/400_http.erb'
|
||||
$hy_400_erb = 'confdroid_haproxy/errors/400_http.erb'
|
||||
$hy_403_file = "${hy_errors_dir}/403.http"
|
||||
$hy_403_erb = 'haproxy_cd/errors/403_http.erb'
|
||||
$hy_403_erb = 'confdroid_haproxy/errors/403_http.erb'
|
||||
$hy_408_file = "${hy_errors_dir}/408.http"
|
||||
$hy_408_erb = 'haproxy_cd/errors/408_http.erb'
|
||||
$hy_408_erb = 'confdroid_haproxy/errors/408_http.erb'
|
||||
$hy_500_file = "${hy_errors_dir}/500.http"
|
||||
$hy_500_erb = 'haproxy_cd/errors/500_http.erb'
|
||||
$hy_500_erb = 'confdroid_haproxy/errors/500_http.erb'
|
||||
$hy_502_file = "${hy_errors_dir}/502.http"
|
||||
$hy_502_erb = 'haproxy_cd/errors/502_http.erb'
|
||||
$hy_502_erb = 'confdroid_haproxy/errors/502_http.erb'
|
||||
$hy_503_file = "${hy_errors_dir}/503.http"
|
||||
$hy_503_erb = 'haproxy_cd/errors/503_http.erb'
|
||||
$hy_503_erb = 'confdroid_haproxy/errors/503_http.erb'
|
||||
$hy_504_file = "${hy_errors_dir}/504.http"
|
||||
$hy_504_erb = 'haproxy_cd/errors/504_http.erb'
|
||||
$hy_504_erb = 'confdroid_haproxy/errors/504_http.erb'
|
||||
|
||||
# includes must be last
|
||||
include haproxy_cd::main::config
|
||||
include confdroid_haproxy::main::config
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: haproxy_cd::server::service
|
||||
Puppet Class: confdroid_haproxy::server::service
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_classes::haproxy_cd::server::service";
|
||||
pathId = "puppet_classes::confdroid_haproxy::server::service";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::server::service</span>
|
||||
<span class="title">confdroid_haproxy::server::service</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Puppet Class: haproxy_cd::server::service</h1>
|
||||
<div id="content"><h1>Puppet Class: confdroid_haproxy::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>
|
||||
<dd><span class='object_link'><a href="confdroid_haproxy_3A_3Aparams.html" title="puppet_classes::confdroid_haproxy::params (puppet_class)">confdroid_haproxy::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -77,13 +77,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages the service(s) for haproxy_cd.
|
||||
Class manages the service(s) for confdroid_haproxy.
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::server::service.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -120,12 +120,12 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
|
||||
|
||||
class haproxy_cd::server::service (
|
||||
class confdroid_haproxy::server::service (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::firewall::iptables
|
||||
require haproxy_cd::main::files
|
||||
require confdroid_haproxy::firewall::iptables
|
||||
require confdroid_haproxy::main::files
|
||||
|
||||
service { $hy_service:
|
||||
ensure => running,
|
||||
@@ -40,9 +40,9 @@
|
||||
<ul id="full_list" class="puppet_defined_type">
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::haproxy_cd::server::proxy" class="odd">
|
||||
<li id="object_puppet_defined_types::confdroid_haproxy::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>
|
||||
<span class='object_link'><a href="puppet_defined_types/confdroid_haproxy_3A_3Aserver_3A_3Aproxy.html" title="puppet_defined_types::confdroid_haproxy::server::proxy (puppet_defined_type)">confdroid_haproxy::server::proxy</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Defined Type: haproxy_cd::server::proxy
|
||||
Defined Type: confdroid_haproxy::server::proxy
|
||||
|
||||
— Documentation by YARD 0.9.36
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||||
|
||||
<script type="text/javascript">
|
||||
pathId = "puppet_defined_types::haproxy_cd::server::proxy";
|
||||
pathId = "puppet_defined_types::confdroid_haproxy::server::proxy";
|
||||
relpath = '../';
|
||||
</script>
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
<div id="header">
|
||||
<div id="menu">
|
||||
|
||||
<a href="../_index.html">Index (h)</a> »
|
||||
<a href="../_index.html">Index (c)</a> »
|
||||
<span class='title'><span class='object_link'>Defined Types</span></span>
|
||||
»
|
||||
<span class="title">haproxy_cd::server::proxy</span>
|
||||
<span class="title">confdroid_haproxy::server::proxy</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
<div id="content"><h1>Defined Type: haproxy_cd::server::proxy</h1>
|
||||
<div id="content"><h1>Defined Type: confdroid_haproxy::server::proxy</h1>
|
||||
<div class="box_info">
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
@@ -70,13 +70,13 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Define manages the proxies for haproxy_cd.
|
||||
Define manages the proxies for confdroid_haproxy.
|
||||
|
||||
<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>
|
||||
<p>confdroid_haproxy::server::proxy.pp Module name: confdroid_haproxy Author: Arne Teuke (arne_teuke@ConfDroid.com)</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -615,7 +615,7 @@
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/server/proxy.pp', line 34</span>
|
||||
|
||||
define haproxy_cd::server::proxy (
|
||||
define confdroid_haproxy::server::proxy (
|
||||
|
||||
String $haproxy_fqdn = undef,
|
||||
String $frontend_name = undef,
|
||||
@@ -647,9 +647,9 @@ define haproxy_cd::server::proxy (
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
|
||||
$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'
|
||||
$hy_frontendrule = 'confdroid_haproxy/haproxy_frontend_rule.erb'
|
||||
$hy_backendrule = 'confdroid_haproxy/haproxy_backend_rule.erb'
|
||||
$hy_acl_rule = 'confdroid_haproxy/haproxy_acl_rule.erb'
|
||||
|
||||
# Ensure acl_rule_front and acl_rule_back are arrays
|
||||
$acl_rule_front_array = split($acl_rule_front, ';')
|
||||
@@ -1,11 +1,11 @@
|
||||
## haproxy_cd::firewall::iptables.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::firewall::iptables.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary manage firewall settings through cd_firewall or puppetlabs-firewall
|
||||
###############################################################################
|
||||
class haproxy_cd::firewall::iptables (
|
||||
class confdroid_haproxy::firewall::iptables (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::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',
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
## haproxy_cd::init.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::init.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class initializes the haproxy_cd module.
|
||||
# @summary Class initializes the confdroid_haproxy module.
|
||||
##############################################################################
|
||||
class haproxy_cd {
|
||||
include haproxy_cd::params
|
||||
class confdroid_haproxy {
|
||||
include confdroid_haproxy::params
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
## haproxy_cd::main::config.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::main::config.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages module logic for haproxy_cd.
|
||||
# @summary Class manages module logic for confdroid_haproxy.
|
||||
##############################################################################
|
||||
class haproxy_cd::main::config (
|
||||
class confdroid_haproxy::main::config (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
include haproxy_cd::server::service
|
||||
) inherits confdroid_haproxy::params {
|
||||
include confdroid_haproxy::server::service
|
||||
|
||||
if $hy_manage_fail2ban == true {
|
||||
include haproxy_cd::monitoring::fail2ban
|
||||
include confdroid_haproxy::monitoring::fail2ban
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
## haproxy_cd::main::dirs.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::main::dirs.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages all directories required for haproxy_cd.
|
||||
# @summary Class manages all directories required for confdroid_haproxy.
|
||||
###############################################################################
|
||||
class haproxy_cd::main::dirs (
|
||||
class confdroid_haproxy::main::dirs (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::main::user
|
||||
require confdroid_haproxy::main::user
|
||||
|
||||
# main dir
|
||||
file { $hy_main_dir:
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
## haproxy_cd::main::files.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::main::files.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages all configuration files required for haproxy_cd.
|
||||
# @summary Class manages all configuration files required for confdroid_haproxy.
|
||||
##############################################################################
|
||||
class haproxy_cd::main::files (
|
||||
class confdroid_haproxy::main::files (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::main::dirs
|
||||
require confdroid_haproxy::main::dirs
|
||||
|
||||
# create the concat target
|
||||
concat { $hy_main_config:
|
||||
@@ -151,7 +151,7 @@ class haproxy_cd::main::files (
|
||||
selrole => object_r,
|
||||
seltype => syslog_conf_t,
|
||||
seluser => system_u,
|
||||
content => template('haproxy_cd/rsyslog/10_haproxy.conf.erb'),
|
||||
content => template('confdroid_haproxy/rsyslog/10_haproxy.conf.erb'),
|
||||
# notify => Service['rsyslog'], # only if using rsyslog_cd module
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
## haproxy_cd::main::install.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::main::install.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class installs binaries required for haproxy_cd
|
||||
# @summary Class installs binaries required for confdroid_haproxy
|
||||
###############################################################################
|
||||
class haproxy_cd::main::install (
|
||||
class confdroid_haproxy::main::install (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
## haproxy_cd::main::user.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::main::user.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||
# @summary Class manages service users for haproxy_cd.
|
||||
# @summary Class manages service users for confdroid_haproxy.
|
||||
#############################################################################
|
||||
class haproxy_cd::main::user (
|
||||
class confdroid_haproxy::main::user (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::main::install
|
||||
require confdroid_haproxy::main::install
|
||||
|
||||
# manage user
|
||||
user { $hy_user_name:
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
# Module name: haproxy_cd
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages fail2ban settings
|
||||
##############################################################################
|
||||
class haproxy_cd::monitoring::fail2ban (
|
||||
class confdroid_haproxy::monitoring::fail2ban (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $hy_manage_fail2ban == true {
|
||||
require confdroid_fail2ban # (external module)
|
||||
|
||||
@@ -19,7 +19,7 @@ class haproxy_cd::monitoring::fail2ban (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('haproxy_cd/fail2ban/f2b_haproxy.conf.erb'),
|
||||
content => template('confdroid_haproxy/fail2ban/f2b_haproxy.conf.erb'),
|
||||
notify => Service['fail2ban'],
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class haproxy_cd::monitoring::fail2ban (
|
||||
selrole => object_r,
|
||||
seltype => etc_t,
|
||||
seluser => system_u,
|
||||
content => template('haproxy_cd/fail2ban/010_jail.d_haproxy.conf.erb'),
|
||||
content => template('confdroid_haproxy/fail2ban/010_jail.d_haproxy.conf.erb'),
|
||||
notify => Service['fail2ban'],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
## haproxy_cd::params.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::params.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @param [String] pkg_ensure
|
||||
# which [package type](https://confdroid.com/2017/05/puppet-type-package/)
|
||||
@@ -55,7 +55,7 @@
|
||||
# @param [String] hy_be_userlist backend userlist comment
|
||||
# @param [Boolean] hy_manage_be_users whether to manage backend users
|
||||
###############################################################################
|
||||
class haproxy_cd::params (
|
||||
class confdroid_haproxy::params (
|
||||
|
||||
String $pkg_ensure = 'latest',
|
||||
Array $reqpackages = ['haproxy','httpd-tools'],
|
||||
@@ -124,23 +124,23 @@ class haproxy_cd::params (
|
||||
|
||||
# files
|
||||
$hy_main_config = "${hy_main_dir}/haproxy.cfg"
|
||||
$hy_config_head_erb = 'haproxy_cd/haproxy_head.erb'
|
||||
$hy_config_tail_erb = 'haproxy_cd/haproxy_tail.erb'
|
||||
$hy_config_head_erb = 'confdroid_haproxy/haproxy_head.erb'
|
||||
$hy_config_tail_erb = 'confdroid_haproxy/haproxy_tail.erb'
|
||||
$hy_400_file = "${hy_errors_dir}/400.http"
|
||||
$hy_400_erb = 'haproxy_cd/errors/400_http.erb'
|
||||
$hy_400_erb = 'confdroid_haproxy/errors/400_http.erb'
|
||||
$hy_403_file = "${hy_errors_dir}/403.http"
|
||||
$hy_403_erb = 'haproxy_cd/errors/403_http.erb'
|
||||
$hy_403_erb = 'confdroid_haproxy/errors/403_http.erb'
|
||||
$hy_408_file = "${hy_errors_dir}/408.http"
|
||||
$hy_408_erb = 'haproxy_cd/errors/408_http.erb'
|
||||
$hy_408_erb = 'confdroid_haproxy/errors/408_http.erb'
|
||||
$hy_500_file = "${hy_errors_dir}/500.http"
|
||||
$hy_500_erb = 'haproxy_cd/errors/500_http.erb'
|
||||
$hy_500_erb = 'confdroid_haproxy/errors/500_http.erb'
|
||||
$hy_502_file = "${hy_errors_dir}/502.http"
|
||||
$hy_502_erb = 'haproxy_cd/errors/502_http.erb'
|
||||
$hy_502_erb = 'confdroid_haproxy/errors/502_http.erb'
|
||||
$hy_503_file = "${hy_errors_dir}/503.http"
|
||||
$hy_503_erb = 'haproxy_cd/errors/503_http.erb'
|
||||
$hy_503_erb = 'confdroid_haproxy/errors/503_http.erb'
|
||||
$hy_504_file = "${hy_errors_dir}/504.http"
|
||||
$hy_504_erb = 'haproxy_cd/errors/504_http.erb'
|
||||
$hy_504_erb = 'confdroid_haproxy/errors/504_http.erb'
|
||||
|
||||
# includes must be last
|
||||
include haproxy_cd::main::config
|
||||
include confdroid_haproxy::main::config
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
## haproxy_cd::server::proxy.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::server::proxy.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
|
||||
# @summary Define manages the proxies for haproxy_cd.
|
||||
# @summary Define manages the proxies for confdroid_haproxy.
|
||||
# @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_order where the concat should appear in the file.
|
||||
@@ -31,7 +31,7 @@
|
||||
# @param [String] be_http_request value for a backend http request
|
||||
# @param [String] be_acl_rule value for a backend acl rule
|
||||
###############################################################################
|
||||
define haproxy_cd::server::proxy (
|
||||
define confdroid_haproxy::server::proxy (
|
||||
|
||||
String $haproxy_fqdn = undef,
|
||||
String $frontend_name = undef,
|
||||
@@ -63,9 +63,9 @@ define haproxy_cd::server::proxy (
|
||||
$fqdn = $facts['networking']['fqdn']
|
||||
|
||||
$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'
|
||||
$hy_frontendrule = 'confdroid_haproxy/haproxy_frontend_rule.erb'
|
||||
$hy_backendrule = 'confdroid_haproxy/haproxy_backend_rule.erb'
|
||||
$hy_acl_rule = 'confdroid_haproxy/haproxy_acl_rule.erb'
|
||||
|
||||
# Ensure acl_rule_front and acl_rule_back are arrays
|
||||
$acl_rule_front_array = split($acl_rule_front, ';')
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
## haproxy_cd::server::service.pp
|
||||
# Module name: haproxy_cd
|
||||
## confdroid_haproxy::server::service.pp
|
||||
# Module name: confdroid_haproxy
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class manages the service(s) for haproxy_cd.
|
||||
# @summary Class manages the service(s) for confdroid_haproxy.
|
||||
#############################################################################
|
||||
class haproxy_cd::server::service (
|
||||
class confdroid_haproxy::server::service (
|
||||
|
||||
) inherits haproxy_cd::params {
|
||||
) inherits confdroid_haproxy::params {
|
||||
if $fqdn == $hy_host_fqdn {
|
||||
require haproxy_cd::firewall::iptables
|
||||
require haproxy_cd::main::files
|
||||
require confdroid_haproxy::firewall::iptables
|
||||
require confdroid_haproxy::main::files
|
||||
|
||||
service { $hy_service:
|
||||
ensure => running,
|
||||
|
||||
Reference in New Issue
Block a user