3
0

Recommit for updates in build 2

This commit is contained in:
2025-12-13 13:26:32 +01:00
parent 782ad64f74
commit 4176216c9e
13 changed files with 2508 additions and 33 deletions

View File

@@ -64,52 +64,52 @@
<td valign='top' width="33%">
<ul id="alpha_P" class="alpha">
<li class="letter">P</li>
<ul id="alpha_C" class="alpha">
<li class="letter">C</li>
<ul>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd.html" title="puppet_classes::prometheus_cd (puppet_class)">prometheus_cd</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus.html" title="puppet_classes::confdroid_prometheus (puppet_class)">confdroid_prometheus</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::prometheus_cd::firewall::iptables (puppet_class)">prometheus_cd::firewall::iptables</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_prometheus::firewall::iptables (puppet_class)">confdroid_prometheus::firewall::iptables</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::prometheus_cd::main::config (puppet_class)">prometheus_cd::main::config</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_prometheus::main::config (puppet_class)">confdroid_prometheus::main::config</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::prometheus_cd::main::dirs (puppet_class)">prometheus_cd::main::dirs</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_prometheus::main::dirs (puppet_class)">confdroid_prometheus::main::dirs</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::prometheus_cd::main::files (puppet_class)">prometheus_cd::main::files</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_prometheus::main::files (puppet_class)">confdroid_prometheus::main::files</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::prometheus_cd::main::install (puppet_class)">prometheus_cd::main::install</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_prometheus::main::install (puppet_class)">confdroid_prometheus::main::install</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::prometheus_cd::main::service (puppet_class)">prometheus_cd::main::service</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_prometheus::main::service (puppet_class)">confdroid_prometheus::main::service</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::prometheus_cd::main::yumrepo (puppet_class)">prometheus_cd::main::yumrepo</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_prometheus::main::yumrepo (puppet_class)">confdroid_prometheus::main::yumrepo</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Aparams.html" title="puppet_classes::prometheus_cd::params (puppet_class)">prometheus_cd::params</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span>
</li>

View File

@@ -60,13 +60,13 @@
<div id="content"><div id='filecontents'>
<h1 id="label-Readme">Readme</h1>
<p><a href="https://jenkins.confdroid.com/job/prometheus_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=prometheus_cd"></a></p>
<p><a href="https://jenkins.confdroid.com/job/confdroid_prometheus/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_prometheus"></a></p>
<h2 id="label-Synopsis">Synopsis</h2>
<p>Prometheus is an open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.</p>
<p><code>prometheus_cd</code> is a Puppet module to automate installation and configuration of prometheus and node exporter. This module supports either managing prometheus or node_exporter or both. You need to set the parameters <code>$manage_prometheus</code>and / or <code>$manage_node_exporter</code>to true ( false by default)</p>
<p><code>confdroid_prometheus</code> is a Puppet module to automate installation and configuration of prometheus and node exporter. This module supports either managing prometheus or node_exporter or both. You need to set the parameters <code>$manage_prometheus</code>and / or <code>$manage_node_exporter</code>to true ( false by default)</p>
<h2 id="label-WARNING">WARNING</h2>

View File

@@ -60,13 +60,13 @@
<div id="content"><div id='filecontents'>
<h1 id="label-Readme">Readme</h1>
<p><a href="https://jenkins.confdroid.com/job/prometheus_cd/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=prometheus_cd"></a></p>
<p><a href="https://jenkins.confdroid.com/job/confdroid_prometheus/"><img src="https://jenkins.confdroid.com/buildStatus/icon?job=confdroid_prometheus"></a></p>
<h2 id="label-Synopsis">Synopsis</h2>
<p>Prometheus is an open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.</p>
<p><code>prometheus_cd</code> is a Puppet module to automate installation and configuration of prometheus and node exporter. This module supports either managing prometheus or node_exporter or both. You need to set the parameters <code>$manage_prometheus</code>and / or <code>$manage_node_exporter</code>to true ( false by default)</p>
<p><code>confdroid_prometheus</code> is a Puppet module to automate installation and configuration of prometheus and node exporter. This module supports either managing prometheus or node_exporter or both. You need to set the parameters <code>$manage_prometheus</code>and / or <code>$manage_node_exporter</code>to true ( false by default)</p>
<h2 id="label-WARNING">WARNING</h2>

View File

@@ -36,65 +36,65 @@
<ul id="full_list" class="puppet_class">
<li id="object_puppet_classes::prometheus_cd" class="odd">
<li id="object_puppet_classes::confdroid_prometheus" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd.html" title="puppet_classes::prometheus_cd (puppet_class)">prometheus_cd</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus.html" title="puppet_classes::confdroid_prometheus (puppet_class)">confdroid_prometheus</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::firewall::iptables" class="even">
<li id="object_puppet_classes::confdroid_prometheus::firewall::iptables" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::prometheus_cd::firewall::iptables (puppet_class)">prometheus_cd::firewall::iptables</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::confdroid_prometheus::firewall::iptables (puppet_class)">confdroid_prometheus::firewall::iptables</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::main::config" class="odd">
<li id="object_puppet_classes::confdroid_prometheus::main::config" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::prometheus_cd::main::config (puppet_class)">prometheus_cd::main::config</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_prometheus::main::config (puppet_class)">confdroid_prometheus::main::config</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::main::dirs" class="even">
<li id="object_puppet_classes::confdroid_prometheus::main::dirs" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html" title="puppet_classes::prometheus_cd::main::dirs (puppet_class)">prometheus_cd::main::dirs</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_prometheus::main::dirs (puppet_class)">confdroid_prometheus::main::dirs</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::main::files" class="odd">
<li id="object_puppet_classes::confdroid_prometheus::main::files" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Afiles.html" title="puppet_classes::prometheus_cd::main::files (puppet_class)">prometheus_cd::main::files</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_prometheus::main::files (puppet_class)">confdroid_prometheus::main::files</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::main::install" class="even">
<li id="object_puppet_classes::confdroid_prometheus::main::install" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::prometheus_cd::main::install (puppet_class)">prometheus_cd::main::install</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_prometheus::main::install (puppet_class)">confdroid_prometheus::main::install</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::main::service" class="odd">
<li id="object_puppet_classes::confdroid_prometheus::main::service" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Aservice.html" title="puppet_classes::prometheus_cd::main::service (puppet_class)">prometheus_cd::main::service</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_prometheus::main::service (puppet_class)">confdroid_prometheus::main::service</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::main::yumrepo" class="even">
<li id="object_puppet_classes::confdroid_prometheus::main::yumrepo" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::prometheus_cd::main::yumrepo (puppet_class)">prometheus_cd::main::yumrepo</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::confdroid_prometheus::main::yumrepo (puppet_class)">confdroid_prometheus::main::yumrepo</a></span>
</div>
</li>
<li id="object_puppet_classes::prometheus_cd::params" class="odd">
<li id="object_puppet_classes::confdroid_prometheus::params" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/prometheus_cd_3A_3Aparams.html" title="puppet_classes::prometheus_cd::params (puppet_class)">prometheus_cd::params</a></span>
<span class='object_link'><a href="puppet_classes/confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span>
</div>
</li>

View File

@@ -0,0 +1,121 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus</h1>
<div class="box_info">
<dl>
<dt>Defined in:</dt>
<dd>
manifests/init.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class initializes the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::init.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/init.pp', line 6</span>
class confdroid_prometheus {
include confdroid_prometheus::params
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,142 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::firewall::iptables
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::firewall::iptables";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::firewall::iptables</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::firewall::iptables</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/firewall/iptables.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages the firewall rules for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::firewall::iptables.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/firewall/iptables.pp', line 6</span>
class confdroid_prometheus::firewall::iptables (
) inherits confdroid_prometheus::params {
if ($ps_prom_host == $fqdn) and ($ps_manage_fw == true) {
# main port
firewall { &quot;${ps_fw_prefix}${$ps_main_port} main port&quot;:
proto =&gt; &#39;tcp&#39;,
dport =&gt; $ps_main_port,
jump =&gt; &#39;accept&#39;,
}
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,140 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::main::config
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::main::config";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::main::config</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::main::config</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/config.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages the module logic for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::main::config.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
class confdroid_prometheus::main::config (
) inherits confdroid_prometheus::params {
include confdroid_prometheus::main::service
exec { &#39;systemd-daemon-reload&#39;:
command =&gt; &#39;/bin/systemctl daemon-reload&#39;,
path =&gt; [&#39;/bin&#39;, &#39;/usr/bin&#39;],
refreshonly =&gt; true,
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,210 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::main::dirs
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::main::dirs";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::main::dirs</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::main::dirs</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/dirs.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages directories for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::main::dirs.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
class confdroid_prometheus::main::dirs (
) inherits confdroid_prometheus::params {
require confdroid_prometheus::main::install
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
# prometheus directory
file { $ps_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,
}
# service system file directory
file { $ps_system_file_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; systemd_unit_file_t,
seluser =&gt; unconfined_u,
}
if $ps_enable_pruning == true {
file { $ps_pruning_dir:
ensure =&gt; directory,
owner =&gt; &#39;prometheus&#39;,
group =&gt; &#39;prometheus&#39;,
mode =&gt; &#39;0755&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; usr_,
seluser =&gt; unconfined_u,
}
}
if $ps_enable_pruning == false {
file { $ps_pruning_dir:
ensure =&gt; absent,
}
}
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,342 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::main::files
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::main::files";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::main::files</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::main::files</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/files.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages configuration files for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::main::files.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
class confdroid_prometheus::main::files (
) inherits confdroid_prometheus::params {
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
require confdroid_prometheus::main::dirs
file { $ps_main_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template(&#39;confdroid_prometheus/prometheus.yml.erb&#39;),
notify =&gt; Service[$ps_prom_service],
}
file { $ps_system_service_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; systemd_unit_file_t,
seluser =&gt; unconfined_u,
content =&gt; template(&#39;confdroid_prometheus/override.conf.erb&#39;),
notify =&gt; Service[$ps_prom_service],
}
file { $ps_web_config_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; etc_t,
seluser =&gt; system_u,
content =&gt; template(&#39;confdroid_prometheus/web.yml.erb&#39;),
notify =&gt; Service[$ps_prom_service],
}
if $ps_enable_pruning == true {
file { $ps_pruning_file:
ensure =&gt; file,
owner =&gt; &#39;prometheus&#39;,
group =&gt; &#39;prometheus&#39;,
mode =&gt; &#39;0750&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; usr_,
seluser =&gt; unconfined_u,
content =&gt; template(&#39;confdroid_prometheus/prune_blocks.erb&#39;),
# notify Service ToDo,
}
file { $ps_env_file:
ensure =&gt; file,
owner =&gt; &#39;prometheus&#39;,
group =&gt; &#39;prometheus&#39;,
mode =&gt; &#39;0440&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; usr_,
seluser =&gt; unconfined_u,
content =&gt; template(&#39;confdroid_prometheus/prune.env.erb&#39;),
}
file { $ps_pruning_svc_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; systemd_unit_file_t,
seluser =&gt; unconfined_u,
content =&gt; template(&#39;confdroid_prometheus/prometheus-prune-service.erb&#39;),
notify =&gt; Exec[&#39;systemd-daemon-reload&#39;],
}
file { $ps_pruning_timer_file:
ensure =&gt; file,
owner =&gt; &#39;root&#39;,
group =&gt; &#39;root&#39;,
mode =&gt; &#39;0644&#39;,
selrange =&gt; s0,
selrole =&gt; object_r,
seltype =&gt; systemd_unit_file_t,
seluser =&gt; unconfined_u,
content =&gt; template(&#39;confdroid_prometheus/prometheus-prune-timer.erb&#39;),
notify =&gt; Exec[&#39;systemd-daemon-reload&#39;],
}
file { $ps_prune_log_file:
ensure =&gt; file,
owner =&gt; &#39;prometheus&#39;,
group =&gt; &#39;prometheus&#39;,
mode =&gt; &#39;0644&#39;,
}
}
if $ps_enable_pruning == false {
file { $ps_pruning_file:
ensure =&gt; absent,
notify =&gt; Exec[&#39;systemd-daemon-reload&#39;],
}
file { $ps_env_file:
ensure =&gt; absent,
}
file { $ps_pruning_svc_file:
ensure =&gt; absent,
notify =&gt; Exec[&#39;systemd-daemon-reload&#39;],
}
}
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,148 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::main::install
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::main::install";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::main::install</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::main::install</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/install.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class install binaries for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::main::install.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
class confdroid_prometheus::main::install (
) inherits confdroid_prometheus::params {
require confdroid_prometheus::main::yumrepo
if $manage_prometheus == true {
package { $reqpackage_prom:
ensure =&gt; $pkg_ensure,
}
}
if $manage_node_exporter == true {
package { $reqpackage_ne:
ensure =&gt; $pkg_ensure,
}
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,208 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::main::service
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::main::service";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::main::service</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::main::service</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/service.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages the services for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::main::service.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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/service.pp', line 6</span>
class confdroid_prometheus::main::service (
) inherits confdroid_prometheus::params {
if ($ps_prom_host == $fqdn) and ($manage_prometheus == true) {
require confdroid_prometheus::main::files
require confdroid_prometheus::firewall::iptables
service { $ps_prom_service:
ensure =&gt; running,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; true,
}
}
if $manage_node_exporter == true {
service { $ps_ne_service:
ensure =&gt; running,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; true,
}
}
if $ps_enable_pruning == true {
service { $ps_prune_service:
hasstatus =&gt; true,
hasrestart =&gt; true,
}
service { $ps_prune_timer:
ensure =&gt; running,
hasstatus =&gt; true,
hasrestart =&gt; true,
enable =&gt; true,
subscribe =&gt; File[$ps_pruning_svc_file],
}
}
if $ps_enable_pruning == false {
service { $ps_prune_service:
ensure =&gt; stopped,
enable =&gt; false,
}
service { $ps_prune_timer:
ensure =&gt; stopped,
enable =&gt; false,
}
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,146 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_prometheus::main::yumrepo
&mdash; Documentation by YARD 0.9.36
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<script type="text/javascript">
pathId = "puppet_classes::confdroid_prometheus::main::yumrepo";
relpath = '../';
</script>
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
</head>
<body>
<div class="nav_wrap">
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
<div id="resizer"></div>
</div>
<div id="main" tabindex="-1">
<div id="header">
<div id="menu">
<a href="../_index.html">Index (c)</a> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">confdroid_prometheus::main::yumrepo</span>
</div>
<div id="search">
<a class="full_list_link" id="puppet_class_list_link"
href="../puppet_class_list.html">
<svg width="24" height="24">
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
</svg>
</a>
</div>
<div class="clear"></div>
</div>
<div id="content"><h1>Puppet Class: confdroid_prometheus::main::yumrepo</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_prometheus_3A_3Aparams.html" title="puppet_classes::confdroid_prometheus::params (puppet_class)">confdroid_prometheus::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/yumrepo.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages yumrepo for the confdroid_prometheus module.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_prometheus::main::yumrepo.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
</div>
</div>
<div class="tags">
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
6
7
8
9
10
11
12
13
14
15
16
17
18</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/yumrepo.pp', line 6</span>
class confdroid_prometheus::main::yumrepo (
) inherits confdroid_prometheus::params {
yumrepo { &#39;prometheus&#39;:
ensure =&gt; &#39;present&#39;,
name =&gt; &#39;prometheus&#39;,
descr =&gt; &#39;prometheus rpms&#39;,
baseurl =&gt; &#39;https://packagecloud.io/prometheus-rpm/release/el/9/$basearch&#39;,
gpgkey =&gt; &#39;https://packagecloud.io/prometheus-rpm/release/gpgkey&#39;,
enabled =&gt; &#39;1&#39;,
gpgcheck =&gt; &#39;0&#39;,
target =&gt; &#39;/etc/yum.repo.d/prometheus.repo&#39;,
}
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
</div>
</div>
</body>
</html>

File diff suppressed because it is too large Load Diff