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

@@ -125,7 +125,17 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
29
30
31
32</pre>
32
33
34
35
36
37
38
39
40
41
42</pre>
</td>
<td>
<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 {
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>
</td>
</tr>

View File

@@ -123,7 +123,26 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
27
28
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>
<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 {
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>
</td>

View File

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