Recommit for updates in build 9

This commit is contained in:
2026-02-12 16:50:43 +01:00
parent 8048857969
commit 2f5690f342
3 changed files with 46 additions and 6 deletions

View File

@@ -124,7 +124,7 @@
<p>through Foreman:</p> <p>through Foreman:</p>
</li></ul> </li></ul>
<p>In order to apply parameters through Foreman, <strong>confdroid_nagios::params</strong> must be added to the host or host group in question.</p> <p>In order to apply parameters through Foreman, *<strong><em>confdroid_nagios::params</em></strong>- must be added to the host or host group in question.</p>
<p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p> <p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p>
@@ -140,7 +140,7 @@
<ul><li> <ul><li>
<p>OS: Rocky 9</p> <p>OS: Rocky 9</p>
</li><li> </li><li>
<p>Puppet 8</p> <p>Puppet 7 # Puppet does not support Nagios in Puppet 8 anymore, although it still works</p>
</li></ul> </li></ul>
<h2 id="label-Tests">Tests</h2> <h2 id="label-Tests">Tests</h2>

View File

@@ -124,7 +124,7 @@
<p>through Foreman:</p> <p>through Foreman:</p>
</li></ul> </li></ul>
<p>In order to apply parameters through Foreman, <strong>confdroid_nagios::params</strong> must be added to the host or host group in question.</p> <p>In order to apply parameters through Foreman, *<strong><em>confdroid_nagios::params</em></strong>- must be added to the host or host group in question.</p>
<p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p> <p>See <a href="https://confdroid.com/2017/05/deploying-our-puppet-modules/">more details about class deployment on Confdroid.com</a>.</p>
@@ -140,7 +140,7 @@
<ul><li> <ul><li>
<p>OS: Rocky 9</p> <p>OS: Rocky 9</p>
</li><li> </li><li>
<p>Puppet 8</p> <p>Puppet 7 # Puppet does not support Nagios in Puppet 8 anymore, although it still works</p>
</li></ul> </li></ul>
<h2 id="label-Tests">Tests</h2> <h2 id="label-Tests">Tests</h2>

View File

@@ -108,7 +108,27 @@
10 10
11 11
12 12
13</pre> 13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/main/user.pp', line 6</span> <pre class="code"><span class="info file"># File 'manifests/main/user.pp', line 6</span>
@@ -118,7 +138,27 @@ class confdroid_nagios::main::user (
) inherits confdroid_nagios::params { ) inherits confdroid_nagios::params {
if $ng_nagios_server == $fqdn { if $ng_nagios_server == $fqdn {
require confdroid_nagios::main::install require confdroid_nagios::main::install
#config here
group { $ng_user:
ensure =&gt; present,
name =&gt; $ng_user,
gid =&gt; $ng_u_uid,
allowdupe =&gt; false,
}
user { $ng_user:
ensure =&gt; present,
name =&gt; $ng_user,
allowdupe =&gt; false,
comment =&gt; $ng_u_comment,
uid =&gt; $ng_u_uid,
gid =&gt; $ng_user,
groups =&gt; $ng_u_groups,
managehome =&gt; true,
home =&gt; $ng_user_home,
shell =&gt; $ng_user_shell,
require =&gt; Group[$ng_user],
}
} }
}</pre> }</pre>
</td> </td>