Recommit for updates in build 57
This commit is contained in:
@@ -69,6 +69,9 @@
|
|||||||
<p><a href="#warning">WARNING</a></p>
|
<p><a href="#warning">WARNING</a></p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p><a href="#features">Features</a></p>
|
<p><a href="#features">Features</a></p>
|
||||||
|
<ul><li>
|
||||||
|
<p><a href="#configuring-user-access">configuring user access</a></p>
|
||||||
|
</li></ul>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
||||||
</li><li>
|
</li><li>
|
||||||
@@ -106,6 +109,10 @@
|
|||||||
<p>if <code>ng_include_nrpe</code>is set to <code>true</code>, the confdroid_nrpe module is automatically applied on clients (<a href="https://sourcecode.confdroid.com/confdroid/confdroid_nrpe">confdroid_nrpe</a> must be in the catalogue then )</p>
|
<p>if <code>ng_include_nrpe</code>is set to <code>true</code>, the confdroid_nrpe module is automatically applied on clients (<a href="https://sourcecode.confdroid.com/confdroid/confdroid_nrpe">confdroid_nrpe</a> must be in the catalogue then )</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
|
<h3 id="label-configuring+user+access">configuring user access</h3>
|
||||||
|
|
||||||
|
<p>ToDo</p>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|
||||||
<p>See the full Puppet documentation including parameters in <code>docs/index.html</code></p>
|
<p>See the full Puppet documentation including parameters in <code>docs/index.html</code></p>
|
||||||
|
|||||||
@@ -69,6 +69,9 @@
|
|||||||
<p><a href="#warning">WARNING</a></p>
|
<p><a href="#warning">WARNING</a></p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p><a href="#features">Features</a></p>
|
<p><a href="#features">Features</a></p>
|
||||||
|
<ul><li>
|
||||||
|
<p><a href="#configuring-user-access">configuring user access</a></p>
|
||||||
|
</li></ul>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
<p><a href="#repo-documentation">Repo Documentation</a></p>
|
||||||
</li><li>
|
</li><li>
|
||||||
@@ -106,6 +109,10 @@
|
|||||||
<p>if <code>ng_include_nrpe</code>is set to <code>true</code>, the confdroid_nrpe module is automatically applied on clients (<a href="https://sourcecode.confdroid.com/confdroid/confdroid_nrpe">confdroid_nrpe</a> must be in the catalogue then )</p>
|
<p>if <code>ng_include_nrpe</code>is set to <code>true</code>, the confdroid_nrpe module is automatically applied on clients (<a href="https://sourcecode.confdroid.com/confdroid/confdroid_nrpe">confdroid_nrpe</a> must be in the catalogue then )</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
|
<h3 id="label-configuring+user+access">configuring user access</h3>
|
||||||
|
|
||||||
|
<p>ToDo</p>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
|
|
||||||
<p>See the full Puppet documentation including parameters in <code>docs/index.html</code></p>
|
<p>See the full Puppet documentation including parameters in <code>docs/index.html</code></p>
|
||||||
|
|||||||
@@ -297,6 +297,42 @@ inherited by all classes except defines.
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>Whether to configure the Nagios web interface to use HTTPS. Default is false. We recommend using a reverse proxy with SSL termination in front of the Nagios web interface, so this is disabled by default.</p>
|
<p>Whether to configure the Nagios web interface to use HTTPS. Default is false. We recommend using a reverse proxy with SSL termination in front of the Nagios web interface, so this is disabled by default.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ng_main_user</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>The username for the Nagios web interface. Default is ‘nagios’.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ng_main_password</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>The encrypted password for the Nagios web interface. Default is ‘nagios’.</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -312,10 +348,6 @@ inherited by all classes except defines.
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
32
|
|
||||||
33
|
|
||||||
34
|
|
||||||
35
|
|
||||||
36
|
36
|
||||||
37
|
37
|
||||||
38
|
38
|
||||||
@@ -418,10 +450,16 @@ inherited by all classes except defines.
|
|||||||
135
|
135
|
||||||
136
|
136
|
||||||
137
|
137
|
||||||
138</pre>
|
138
|
||||||
|
139
|
||||||
|
140
|
||||||
|
141
|
||||||
|
142
|
||||||
|
143
|
||||||
|
144</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 32</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 36</span>
|
||||||
|
|
||||||
class confdroid_nagios::params (
|
class confdroid_nagios::params (
|
||||||
|
|
||||||
@@ -431,6 +469,8 @@ class confdroid_nagios::params (
|
|||||||
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
|
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
|
||||||
String $ng_pkg_ensure = 'present',
|
String $ng_pkg_ensure = 'present',
|
||||||
Boolean $ng_include_nrpe = true,
|
Boolean $ng_include_nrpe = true,
|
||||||
|
String $ng_main_user = 'nagios',
|
||||||
|
String $ng_main_password = 'nagios',
|
||||||
|
|
||||||
# httpd
|
# httpd
|
||||||
Boolean $ng_use_https = false,
|
Boolean $ng_use_https = false,
|
||||||
|
|||||||
@@ -120,7 +120,14 @@
|
|||||||
22
|
22
|
||||||
23
|
23
|
||||||
24
|
24
|
||||||
25</pre>
|
25
|
||||||
|
26
|
||||||
|
27
|
||||||
|
28
|
||||||
|
29
|
||||||
|
30
|
||||||
|
31
|
||||||
|
32</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/access_rules.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/server/access_rules.pp', line 6</span>
|
||||||
@@ -143,6 +150,13 @@ class confdroid_nagios::server::access_rules (
|
|||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
notify => Service[$ng_nagios_service],
|
notify => Service[$ng_nagios_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# manage file header
|
||||||
|
concat::fragment { 'fle_header':
|
||||||
|
target => $ng_htpasswd_file,
|
||||||
|
content => template($ng_htpasswd_head),
|
||||||
|
order => '000',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -76,10 +76,15 @@
|
|||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h2>Summary</h2>
|
||||||
|
Class manages configuration files for the confdroid_nagios module.
|
||||||
|
|
||||||
<h2>Overview</h2>
|
<h2>Overview</h2>
|
||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
|
<p>confdroid_nagios::server::files.pp Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -96,10 +101,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
2
|
|
||||||
3
|
|
||||||
4
|
|
||||||
5
|
|
||||||
6
|
6
|
||||||
7
|
7
|
||||||
8
|
8
|
||||||
@@ -110,10 +111,14 @@
|
|||||||
13
|
13
|
||||||
14
|
14
|
||||||
15
|
15
|
||||||
16</pre>
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
19
|
||||||
|
20</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/server/files.pp', line 2</span>
|
<pre class="code"><span class="info file"># File 'manifests/server/files.pp', line 6</span>
|
||||||
|
|
||||||
class confdroid_nagios::server::files (
|
class confdroid_nagios::server::files (
|
||||||
|
|
||||||
|
|||||||
@@ -121,7 +121,8 @@
|
|||||||
23
|
23
|
||||||
24
|
24
|
||||||
25
|
25
|
||||||
26</pre>
|
26
|
||||||
|
27</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>
|
||||||
@@ -131,6 +132,7 @@ 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 {
|
||||||
|
require confdroid_nagios::server::access_rules
|
||||||
exec { 'reload_httpd':
|
exec { 'reload_httpd':
|
||||||
command => 'systemctl reload httpd',
|
command => 'systemctl reload httpd',
|
||||||
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
|
path => ['/bin', '/usr/bin', '/sbin', '/usr/sbin'],
|
||||||
|
|||||||
Reference in New Issue
Block a user