recommit for updates in build 6

This commit is contained in:
Jenkins ConfDroid
2018-12-10 15:58:34 +01:00
parent 5fbbb0ae72
commit 6d7fabe07d
7 changed files with 113 additions and 30 deletions

View File

@@ -8,6 +8,16 @@ Changelog of Git Changelog.
<h2> No issue </h2> <h2> No issue </h2>
<a href="https://gitlab.confdroid.com/12WW1160/git-changelog-lib/commit/19592e5d1921dd6">19592e5d1921dd6</a> Jenkins ConfDroid <i>2018-12-10 13:39:32</i>
<p>
<h3>recommit for updates in build 4</h3>
</p>
<a href="https://gitlab.confdroid.com/12WW1160/git-changelog-lib/commit/2f3afa420b80af8">2f3afa420b80af8</a> Arne Teuke <i>2018-12-10 13:36:54</i>
<p>
<h3>adds haproxy user</h3>
</p>
<a href="https://gitlab.confdroid.com/12WW1160/git-changelog-lib/commit/672d9954a008213">672d9954a008213</a> Jenkins ConfDroid <i>2018-12-07 14:09:55</i> <a href="https://gitlab.confdroid.com/12WW1160/git-changelog-lib/commit/672d9954a008213">672d9954a008213</a> Jenkins ConfDroid <i>2018-12-07 14:09:55</i>
<p> <p>
<h3>recommit for updates in build 3</h3> <h3>recommit for updates in build 3</h3>

View File

@@ -14,14 +14,18 @@
| | |-- cd_haproxy_3A_3Amain_3A_3Adirs.html | | |-- cd_haproxy_3A_3Amain_3A_3Adirs.html
| | |-- cd_haproxy_3A_3Amain_3A_3Afiles.html | | |-- cd_haproxy_3A_3Amain_3A_3Afiles.html
| | |-- cd_haproxy_3A_3Amain_3A_3Ainstall.html | | |-- cd_haproxy_3A_3Amain_3A_3Ainstall.html
| | |-- cd_haproxy_3A_3Amain_3A_3Auser.html
| | |-- cd_haproxy_3A_3Aparams.html | | |-- cd_haproxy_3A_3Aparams.html
| | |-- cd_haproxy_3A_3Aserver_3A_3Aservice.html | | |-- cd_haproxy_3A_3Aserver_3A_3Aservice.html
| | `-- cd_haproxy.html | | `-- cd_haproxy.html
| |-- puppet_defined_types
| | `-- cd_haproxy_3A_3Aserver_3A_3Aproxy.html
| |-- file.README.html | |-- file.README.html
| |-- frames.html | |-- frames.html
| |-- _index.html | |-- _index.html
| |-- index.html | |-- index.html
| |-- puppet_class_list.html | |-- puppet_class_list.html
| |-- puppet_defined_type_list.html
| `-- top-level-namespace.html | `-- top-level-namespace.html
|-- manifests |-- manifests
| |-- firewall | |-- firewall
@@ -38,7 +42,8 @@
| |-- init.pp | |-- init.pp
| `-- params.pp | `-- params.pp
|-- templates |-- templates
| `-- haproxy.cfg | |-- haproxy.cfg
| `-- haproxy_head.erb
|-- tests |-- tests
| `-- UTF_Files | `-- UTF_Files
|-- CHANGELOG.md |-- CHANGELOG.md
@@ -48,4 +53,4 @@
|-- LICENSE |-- LICENSE
`-- README.md `-- README.md
10 directories, 38 files 11 directories, 42 files

View File

@@ -123,11 +123,13 @@ href="https://gitlab.confdroid.com/12WW1160/cd_haproxy/blob/master/CHANGELOG.md"
<h3 id="label-Features">Features</h3> <h3 id="label-Features">Features</h3>
<p>INSTALLATION * install binaries</p> <p>INSTALLATION * install rpm binaries</p>
<p>CONFIGURATION</p> <p>CONFIGURATION * manage haproxy user * manage directories (file system
permissions, selinux context) * manage files (file system permissions,
content, selinux context)</p>
<p>SERVICE * manage service</p> <p>SERVICE * manage haproxy service</p>
<h3 id="label-Repo+Structure">Repo Structure</h3> <h3 id="label-Repo+Structure">Repo Structure</h3>
@@ -145,8 +147,9 @@ href="https://gitlab.confdroid.com/12WW1160/cd_haproxy/blob/master/CHANGELOG.md"
href="https://gitlab.confdroid.com/12WW1160/cd_resources">cd_resources</a> href="https://gitlab.confdroid.com/12WW1160/cd_resources">cd_resources</a>
for managing yum base repos</p> for managing yum base repos</p>
</li><li> </li><li>
<p><a href="https://gitlab.confdroid.com/12WW1160/certbot">cd_certbot</a> for <p><a href="https://gitlab.confdroid.com/12ww1160/cd_concat">cd_concat</a> or
automating TLS certificates for https</p> <a href="https://github.com/puppetlabs/puppetlabs-concat">concat</a> for
managing file fragments</p>
</li></ul> </li></ul>
<h3 id="label-Deployment">Deployment</h3> <h3 id="label-Deployment">Deployment</h3>

View File

@@ -123,11 +123,13 @@ href="https://gitlab.confdroid.com/12WW1160/cd_haproxy/blob/master/CHANGELOG.md"
<h3 id="label-Features">Features</h3> <h3 id="label-Features">Features</h3>
<p>INSTALLATION * install binaries</p> <p>INSTALLATION * install rpm binaries</p>
<p>CONFIGURATION</p> <p>CONFIGURATION * manage haproxy user * manage directories (file system
permissions, selinux context) * manage files (file system permissions,
content, selinux context)</p>
<p>SERVICE * manage service</p> <p>SERVICE * manage haproxy service</p>
<h3 id="label-Repo+Structure">Repo Structure</h3> <h3 id="label-Repo+Structure">Repo Structure</h3>
@@ -145,8 +147,9 @@ href="https://gitlab.confdroid.com/12WW1160/cd_haproxy/blob/master/CHANGELOG.md"
href="https://gitlab.confdroid.com/12WW1160/cd_resources">cd_resources</a> href="https://gitlab.confdroid.com/12WW1160/cd_resources">cd_resources</a>
for managing yum base repos</p> for managing yum base repos</p>
</li><li> </li><li>
<p><a href="https://gitlab.confdroid.com/12WW1160/certbot">cd_certbot</a> for <p><a href="https://gitlab.confdroid.com/12ww1160/cd_concat">cd_concat</a> or
automating TLS certificates for https</p> <a href="https://github.com/puppetlabs/puppetlabs-concat">concat</a> for
managing file fragments</p>
</li></ul> </li></ul>
<h3 id="label-Deployment">Deployment</h3> <h3 id="label-Deployment">Deployment</h3>

View File

@@ -125,7 +125,17 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
29 29
30 30
31 31
32</pre> 32
33
34
35
36
37
38
39
40
41
42</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 23</span> <pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 23</span>
@@ -136,9 +146,19 @@ class cd_haproxy::main::dirs (
if $fqdn == $hy_host_fqdn { if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::user require cd_haproxy::main::user
# main dir
file { $hy_main_dir:
ensure =&gt; directory,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0755&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
}
} }
}</pre> }</pre>
</td> </td>
</tr> </tr>

View File

@@ -123,7 +123,26 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
27 27
28 28
29 29
30</pre> 30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 23</span> <pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 23</span>
@@ -134,6 +153,25 @@ class cd_haproxy::main::files (
if $fqdn == $hy_host_fqdn { if $fqdn == $hy_host_fqdn {
require cd_haproxy::main::dirs require cd_haproxy::main::dirs
# create the concat target
concat {$hy_main_config:
ensure =&gt; present,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0640&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
}
# create the header
concat::fragment { &#39;header&#39;:
target =&gt; $hy_main_config,
content =&gt; $hy_config_head_erb,
order =&gt; &#39;001&#39;,
}
} }
}</pre> }</pre>
</td> </td>

View File

@@ -395,41 +395,45 @@ to <code>tcp</code>.</p>
73 73
74 74
75 75
76</pre> 76
77
78</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 40</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 40</span>
class cd_haproxy::params ( class cd_haproxy::params (
$pkg_ensure = &#39;latest&#39;, $pkg_ensure = &#39;latest&#39;,
$reqpackages = [&#39;haproxy&#39;], $reqpackages = [&#39;haproxy&#39;],
$hy_host_fqdn = &quot;proxy.${::domain}&quot;, $hy_host_fqdn = &quot;proxy.${::domain}&quot;,
# firewall # firewall
$hy_manage_fw = true, $hy_manage_fw = true,
$hy_fw_order_no = &#39;50&#39;, $hy_fw_order_no = &#39;50&#39;,
# main config # main config
$hy_http_port = &#39;80&#39;, $hy_http_port = &#39;80&#39;,
$hy_https_port = &#39;443&#39;, $hy_https_port = &#39;443&#39;,
# user # user
$hy_user_name = &#39;haproxy&#39;, $hy_user_name = &#39;haproxy&#39;,
$hy_user_comment = &#39;haproxy user&#39;, $hy_user_comment = &#39;haproxy user&#39;,
$hy_user_home = &#39;/var/lib/haproxy&#39;, $hy_user_home = &#39;/var/lib/haproxy&#39;,
$hy_user_shell = &#39;/sbin/nologin&#39;, $hy_user_shell = &#39;/sbin/nologin&#39;,
) { ) {
# service # service
$hy_service = &#39;haproxy&#39; $hy_service = &#39;haproxy&#39;
# directories # directories
$hy_main_dir = &#39;/etc/haproxy&#39;
# files # files
$hy_main_config = &quot;${hy_main_dir}/haproxy.cfg&quot;
$hy_config_head_erb = &#39;cd_puppet/haproxy_head.erb&#39;
# includes must be last # includes must be last