Compare commits

..

5 Commits

Author SHA1 Message Date
Jenkins Server
a49c2b4320 Recommit for updates in build 5 2026-09-05 12:59:49 +02:00
Jenkins Server
b9997604a2 Merge remote-tracking branch 'origin/master' into jenkins-build-5 2026-09-05 12:58:47 +02:00
2e46d610cb OP#669 fix head 2026-09-05 12:58:28 +02:00
af0ddb9f36 OP#669 add fw rule for stats port 2026-09-05 12:56:23 +02:00
Jenkins Server
aab08293a7 Recommit for updates in build 4 2026-09-05 12:54:02 +02:00
5 changed files with 50 additions and 5 deletions

View File

@@ -117,7 +117,15 @@
19 19
20 20
21 21
22</pre> 22
23
24
25
26
27
28
29
30</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/firewall/iptables.pp', line 6</span> <pre class="code"><span class="info file"># File 'manifests/firewall/iptables.pp', line 6</span>
@@ -137,6 +145,14 @@ class confdroid_haproxy::firewall::iptables (
dport =&gt; $hy_https_port, dport =&gt; $hy_https_port,
jump =&gt; &#39;accept&#39;, jump =&gt; &#39;accept&#39;,
} }
if $hy_show_stats == true {
firewall { &quot;${hy_fw_order_no}${hy_stats_port} tcp port ${hy_stats_port}&quot;:
proto =&gt; &#39;tcp&#39;,
dport =&gt; $hy_stats_port,
jump =&gt; &#39;accept&#39;,
}
}
} }
}</pre> }</pre>
</td> </td>

View File

@@ -879,6 +879,24 @@
&mdash; &mdash;
<div class='inline'> <div class='inline'>
<p>whether to allow stats in selinux</p> <p>whether to allow stats in selinux</p>
</div>
</li>
<li>
<span class='name'>hy_stats_port</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;8404&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the port to use for stats. used in firewall settings</p>
</div> </div>
</li> </li>
@@ -894,7 +912,6 @@
<pre class="lines"> <pre class="lines">
59
60 60
61 61
62 62
@@ -985,10 +1002,12 @@
147 147
148 148
149 149
150</pre> 150
151
152</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 59</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 60</span>
class confdroid_haproxy::params ( class confdroid_haproxy::params (
@@ -1010,6 +1029,7 @@ class confdroid_haproxy::params (
# main config # main config
String $hy_http_port = &#39;80&#39;, String $hy_http_port = &#39;80&#39;,
String $hy_https_port = &#39;443&#39;, String $hy_https_port = &#39;443&#39;,
String $hy_stats_port = &#39;8404&#39;,
String $hy_chroot = &#39;/var/lib/haproxy&#39;, String $hy_chroot = &#39;/var/lib/haproxy&#39;,
String $hy_pid = &#39;/var/run/haproxy.pid&#39;, String $hy_pid = &#39;/var/run/haproxy.pid&#39;,
String $hy_maxconn = &#39;4000&#39;, String $hy_maxconn = &#39;4000&#39;,

View File

@@ -18,5 +18,13 @@ class confdroid_haproxy::firewall::iptables (
dport => $hy_https_port, dport => $hy_https_port,
jump => 'accept', jump => 'accept',
} }
if $hy_show_stats == true {
firewall { "${hy_fw_order_no}${hy_stats_port} tcp port ${hy_stats_port}":
proto => 'tcp',
dport => $hy_stats_port,
jump => 'accept',
}
}
} }
} }

View File

@@ -55,6 +55,7 @@
# @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
# @param [Boolean] hy_selinux_allow_stats whether to allow stats in selinux # @param [Boolean] hy_selinux_allow_stats whether to allow stats in selinux
# @param [String] hy_stats_port the port to use for stats. used in firewall settings
############################################################################### ###############################################################################
class confdroid_haproxy::params ( class confdroid_haproxy::params (
@@ -76,6 +77,7 @@ class confdroid_haproxy::params (
# main config # main config
String $hy_http_port = '80', String $hy_http_port = '80',
String $hy_https_port = '443', String $hy_https_port = '443',
String $hy_stats_port = '8404',
String $hy_chroot = '/var/lib/haproxy', String $hy_chroot = '/var/lib/haproxy',
String $hy_pid = '/var/run/haproxy.pid', String $hy_pid = '/var/run/haproxy.pid',
String $hy_maxconn = '4000', String $hy_maxconn = '4000',

View File

@@ -61,7 +61,6 @@ listen stats
stats refresh 30s stats refresh 30s
stats admin if TRUE # Allow admin actions if logged in stats admin if TRUE # Allow admin actions if logged in
<% end -%> <% end -%>
listen stats
<% if @hy_manage_be_users == true -%> <% if @hy_manage_be_users == true -%>
<%= @hy_be_userlist %> <%= @hy_be_userlist %>