3
0

Recommit for updates in build 15

This commit is contained in:
2025-10-18 12:35:37 +02:00
parent 7edd5cf2e6
commit e56129baa9
6 changed files with 294 additions and 16 deletions

View File

@@ -79,6 +79,8 @@
<span class='object_link'><a href="prometheus_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::prometheus_cd::main::yumrepo (puppet_class)">prometheus_cd::main::yumrepo</a></span><br/>
<span class='object_link'><a href="prometheus_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::prometheus_cd::firewall::iptables (puppet_class)">prometheus_cd::firewall::iptables</a></span><br/>
</dd>
</dl>
@@ -194,6 +196,78 @@
&mdash;
<div class='inline'>
<p>whether to manage node exporter</p>
</div>
</li>
<li>
<span class='name'>ps_manage_fw</span>
<span class='type'>(<tt>Boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to manage the firewall</p>
</div>
</li>
<li>
<span class='name'>ps_prom_host</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;prometheus.example.net&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the fqdn of the prometheus server</p>
</div>
</li>
<li>
<span class='name'>ps_fw_prefix</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;50&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the firewall rule prefix</p>
</div>
</li>
<li>
<span class='name'>ps_main_port</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;9090&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the firewall main port for prometheus</p>
</div>
</li>
@@ -209,10 +283,6 @@
<pre class="lines">
11
12
13
14
15
16
17
@@ -226,18 +296,43 @@
25
26
27
28</pre>
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 11</span>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 15</span>
class prometheus_cd::params (
# installation
String $reqpackage_prom = &#39;prometheus2&#39;,
String $reqpackage_ne = &#39;node_exporter&#39;,
String $pkg_ensure = &#39;present&#39;,
# config logic
Boolean $manage_prometheus = false,
Boolean $manage_node_exporter = false,
Boolean $ps_manage_fw = false,
String $ps_prom_host = &#39;prometheus.example.net&#39;,
# firewall
String $ps_fw_prefix = &#39;50&#39;,
String $ps_main_port = &#39;9090&#39;,
) {
# defaults
@@ -246,6 +341,9 @@ class prometheus_cd::params (
$os_name = $facts[&#39;os&#39;][&#39;name&#39;]
$os_release = $facts[&#39;os&#39;][&#39;release&#39;][&#39;major&#39;]
# dirs
$ps_main_dir = &#39;/etc/prometheus&#39;
# includes must be last
include prometheus_cd::main::config
}</pre>