Recommit for updates in build 52

This commit is contained in:
Jenkins Server
2026-02-14 20:38:09 +01:00
parent a4e4d258ba
commit 894146d4c7

View File

@@ -114,7 +114,14 @@
16 16
17 17
18 18
19</pre> 19
20
21
22
23
24
25
26</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span> <pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 6</span>
@@ -124,12 +131,19 @@ class confdroid_nagios::server::service (
) inherits confdroid_nagios::params { ) inherits confdroid_nagios::params {
require confdroid_nagios::server::files require confdroid_nagios::server::files
if $ng_nagios_server == $fqdn { if $ng_nagios_server == $fqdn {
exec { &#39;restart_httpd&#39;:
command =&gt; &#39;systemctl restart httpd&#39;,
path =&gt; [&#39;/bin&#39;, &#39;/usr/bin&#39;, &#39;/sbin&#39;, &#39;/usr/sbin&#39;],
refreshonly =&gt; true,
}
service { $ng_nagios_service: service { $ng_nagios_service:
ensure =&gt; running, ensure =&gt; running,
name =&gt; $ng_nagios_service, name =&gt; $ng_nagios_service,
enable =&gt; true, enable =&gt; true,
hasrestart =&gt; true, hasrestart =&gt; true,
hasstatus =&gt; true, hasstatus =&gt; true,
requires =&gt; Exec[&#39;restart_httpd&#39;],
} }
} }
}</pre> }</pre>