Compare commits

..

4 Commits

Author SHA1 Message Date
Jenkins Server
53d68b07bc Recommit for updates in build 3 2026-10-01 13:53:19 +02:00
Jenkins Server
c570d6dcc2 Merge remote-tracking branch 'origin/master' into jenkins-build-3 2026-10-01 13:52:29 +02:00
6291f8d510 OP#828 add basic structure and installation 2026-10-01 13:52:10 +02:00
Jenkins Server
0597d2c62f Recommit for updates in build 2 2026-10-01 13:39:30 +02:00
15 changed files with 688 additions and 8 deletions

View File

@@ -58,7 +58,7 @@ via site.pp or nodes.pp
```bash ```bash
node 'example.example.net' { node 'example.example.net' {
include confdroid_chrony include confdroid_ntp
} }
``` ```

View File

@@ -78,6 +78,26 @@
</li> </li>
<li>
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_ntp::main::dirs (puppet_class)">confdroid_ntp::main::dirs</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_ntp::main::files (puppet_class)">confdroid_ntp::main::files</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_ntp::main::install (puppet_class)">confdroid_ntp::main::install</a></span>
</li>
<li>
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_ntp::main::service (puppet_class)">confdroid_ntp::main::service</a></span>
</li>
<li> <li>
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_ntp::monitoring::target (puppet_class)">confdroid_ntp::monitoring::target</a></span> <span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_ntp::monitoring::target (puppet_class)">confdroid_ntp::monitoring::target</a></span>

View File

@@ -136,7 +136,7 @@
<p>via site.pp or nodes.pp</p> <p>via site.pp or nodes.pp</p>
<pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; { <pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; {
include confdroid_chrony include confdroid_ntp
} }
</code></pre> </code></pre>
<ul><li> <ul><li>

View File

@@ -136,7 +136,7 @@
<p>via site.pp or nodes.pp</p> <p>via site.pp or nodes.pp</p>
<pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; { <pre class="code ruby"><code class="ruby">node &#39;example.example.net&#39; {
include confdroid_chrony include confdroid_ntp
} }
</code></pre> </code></pre>
<ul><li> <ul><li>

View File

@@ -50,6 +50,34 @@
</li> </li>
<li id="object_puppet_classes::confdroid_ntp::main::dirs" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_ntp::main::dirs (puppet_class)">confdroid_ntp::main::dirs</a></span>
</div>
</li>
<li id="object_puppet_classes::confdroid_ntp::main::files" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_ntp::main::files (puppet_class)">confdroid_ntp::main::files</a></span>
</div>
</li>
<li id="object_puppet_classes::confdroid_ntp::main::install" class="odd">
<div class="item">
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_ntp::main::install (puppet_class)">confdroid_ntp::main::install</a></span>
</div>
</li>
<li id="object_puppet_classes::confdroid_ntp::main::service" class="even">
<div class="item">
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_ntp::main::service (puppet_class)">confdroid_ntp::main::service</a></span>
</div>
</li>
<li id="object_puppet_classes::confdroid_ntp::monitoring::target" class="odd"> <li id="object_puppet_classes::confdroid_ntp::monitoring::target" class="odd">
<div class="item"> <div class="item">
<span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_ntp::monitoring::target (puppet_class)">confdroid_ntp::monitoring::target</a></span> <span class='object_link'><a href="puppet_classes/confdroid_ntp_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_ntp::monitoring::target (puppet_class)">confdroid_ntp::monitoring::target</a></span>

View File

@@ -0,0 +1,130 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_ntp::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_ntp::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_ntp::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_ntp::main::dirs</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_ntp_3A_3Aparams.html" title="puppet_classes::confdroid_ntp::params (puppet_class)">confdroid_ntp::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_ntp module
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_ntp::main::dirs.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
class confdroid_ntp::main::dirs (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::install
}</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,130 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_ntp::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_ntp::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_ntp::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_ntp::main::files</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_ntp_3A_3Aparams.html" title="puppet_classes::confdroid_ntp::params (puppet_class)">confdroid_ntp::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/files.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages files for the confdroid_ntp module
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_ntp::main::files.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
class confdroid_ntp::main::files (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::dirs
}</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,134 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_ntp::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_ntp::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_ntp::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_ntp::main::install</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_ntp_3A_3Aparams.html" title="puppet_classes::confdroid_ntp::params (puppet_class)">confdroid_ntp::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/install.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages installation for the confdroid_ntp module
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_ntp::main::install.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
class confdroid_ntp::main::install (
) inherits confdroid_ntp::params {
package { $cy_reqpackages:
ensure =&gt; $cy_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,130 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: confdroid_ntp::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_ntp::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_ntp::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_ntp::main::service</h1>
<div class="box_info">
<dl>
<dt>Inherits:</dt>
<dd><span class='object_link'><a href="confdroid_ntp_3A_3Aparams.html" title="puppet_classes::confdroid_ntp::params (puppet_class)">confdroid_ntp::params</a></span></dd>
</dl>
<dl>
<dt>Defined in:</dt>
<dd>
manifests/main/service.pp
</dd>
</dl>
</div>
<h2>Summary</h2>
Class manages services for the confdroid_ntp module
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>confdroid_ntp::main::service.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
class confdroid_ntp::main::service (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::files
}</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

@@ -67,8 +67,16 @@
<dt>Inherited by:</dt> <dt>Inherited by:</dt>
<dd> <dd>
<span class='object_link'><a href="confdroid_ntp_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_ntp::main::dirs (puppet_class)">confdroid_ntp::main::dirs</a></span><br/>
<span class='object_link'><a href="confdroid_ntp_3A_3Amain_3A_3Afiles.html" title="puppet_classes::confdroid_ntp::main::files (puppet_class)">confdroid_ntp::main::files</a></span><br/>
<span class='object_link'><a href="confdroid_ntp_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_ntp::main::config (puppet_class)">confdroid_ntp::main::config</a></span><br/> <span class='object_link'><a href="confdroid_ntp_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_ntp::main::config (puppet_class)">confdroid_ntp::main::config</a></span><br/>
<span class='object_link'><a href="confdroid_ntp_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_ntp::main::install (puppet_class)">confdroid_ntp::main::install</a></span><br/>
<span class='object_link'><a href="confdroid_ntp_3A_3Amain_3A_3Aservice.html" title="puppet_classes::confdroid_ntp::main::service (puppet_class)">confdroid_ntp::main::service</a></span><br/>
<span class='object_link'><a href="confdroid_ntp_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_ntp::monitoring::target (puppet_class)">confdroid_ntp::monitoring::target</a></span><br/> <span class='object_link'><a href="confdroid_ntp_3A_3Amonitoring_3A_3Atarget.html" title="puppet_classes::confdroid_ntp::monitoring::target (puppet_class)">confdroid_ntp::monitoring::target</a></span><br/>
</dd> </dd>
@@ -97,7 +105,47 @@
<div class="tags"> <div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>cy_reqpackages</span>
<span class='type'>(<tt>Array</tt>)</span>
<em class="default">(defaults to: <tt>[&#39;chrony&#39;]</tt>)</em>
&mdash;
<div class='inline'>
<p>List of required packages to install for the confdroid_ntp module.</p>
</div>
</li>
<li>
<span class='name'>cy_pkg_ensure</span>
<span class='type'>(<tt>String</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Ensure state of the required packages.</p>
</div>
</li>
</ul>
</div><div class="method_details_list"> </div><div class="method_details_list">
@@ -107,19 +155,29 @@
<pre class="lines"> <pre class="lines">
6
7
8
9 9
10 10
11 11
12 12
13</pre> 13
14
15
16
17
18
19
20
21</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 6</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 9</span>
class confdroid_ntp::params ( class confdroid_ntp::params (
# installation
Array $cy_reqpackages = [&#39;chrony&#39;],
String $cy_pkg_ensure = &#39;present&#39;,
) { ) {
# defaults # defaults
$fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;] $fqdn = $facts[&#39;networking&#39;][&#39;fqdn&#39;]

10
manifests/main/dirs.pp Normal file
View File

@@ -0,0 +1,10 @@
#### confdroid_ntp::main::dirs.pp
# Module name: confdroid_ntp
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages directories for the confdroid_ntp module
###############################################################################
class confdroid_ntp::main::dirs (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::install
}

10
manifests/main/files.pp Normal file
View File

@@ -0,0 +1,10 @@
#### confdroid_ntp::main::files.pp
# Module name: confdroid_ntp
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages files for the confdroid_ntp module
###############################################################################
class confdroid_ntp::main::files (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::dirs
}

12
manifests/main/install.pp Normal file
View File

@@ -0,0 +1,12 @@
#### confdroid_ntp::main::install.pp
# Module name: confdroid_ntp
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages installation for the confdroid_ntp module
###############################################################################
class confdroid_ntp::main::install (
) inherits confdroid_ntp::params {
package { $cy_reqpackages:
ensure => $cy_pkg_ensure,
}
}

10
manifests/main/service.pp Normal file
View File

@@ -0,0 +1,10 @@
#### confdroid_ntp::main::service.pp
# Module name: confdroid_ntp
# Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class manages services for the confdroid_ntp module
###############################################################################
class confdroid_ntp::main::service (
) inherits confdroid_ntp::params {
require confdroid_ntp::main::files
}

View File

@@ -2,8 +2,16 @@
# Module name: confdroid_ntp # Module name: confdroid_ntp
# Author: 12ww1160 (12ww1160@confdroid.com) # Author: 12ww1160 (12ww1160@confdroid.com)
# @summary Class contains all parameters for the confdroid_ntp module. # @summary Class contains all parameters for the confdroid_ntp module.
# @param [Array] cy_reqpackages List of required packages to install
# for the confdroid_ntp module.
# @param [String] cy_pkg_ensure Ensure state of the required packages.
############################################################################## ##############################################################################
class confdroid_ntp::params ( class confdroid_ntp::params (
# installation
Array $cy_reqpackages = ['chrony'],
String $cy_pkg_ensure = 'present',
) { ) {
# defaults # defaults
$fqdn = $facts['networking']['fqdn'] $fqdn = $facts['networking']['fqdn']