Compare commits
14 Commits
bffc0d03d0
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8662002dc | ||
|
|
313c6232ae | ||
| 5d2047a77e | |||
|
|
20b04bc1d4 | ||
|
|
777d4d0e91 | ||
| aa83361a8e | |||
| c2149834d3 | |||
|
|
7bb12d03c5 | ||
|
|
e2b61dea14 | ||
| 5db2481d76 | |||
|
|
ab99ef1c20 | ||
|
|
256fec2b64 | ||
| eefd846f7c | |||
|
|
921b332d5a |
@@ -44,6 +44,7 @@ CONFIGURATION
|
|||||||
- manages the main alloy pipeline for loki and prometheus
|
- manages the main alloy pipeline for loki and prometheus
|
||||||
- manages log rotation for rsyslog to allow adm membership
|
- manages log rotation for rsyslog to allow adm membership
|
||||||
- manage service
|
- manage service
|
||||||
|
- optional: include nagios target for the alloy service (set `ay_manage_nagios`to `true`)
|
||||||
|
|
||||||
## Repo Documentation
|
## Repo Documentation
|
||||||
|
|
||||||
@@ -53,6 +54,8 @@ See the full Puppet documentation including parameters in `docs/index.html`
|
|||||||
|
|
||||||
All dependencies must be included in the catalogue.
|
All dependencies must be included in the catalogue.
|
||||||
|
|
||||||
|
- [confdroid_nagios](https://sourcecode.confdroid.com/confdroid/confdroid_nagios) if nagios monitoring is desired
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
|
|
||||||
- native Puppet deployment
|
- native Puppet deployment
|
||||||
|
|||||||
@@ -119,6 +119,8 @@
|
|||||||
<p>manages log rotation for rsyslog to allow adm membership</p>
|
<p>manages log rotation for rsyslog to allow adm membership</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage service</p>
|
<p>manage service</p>
|
||||||
|
</li><li>
|
||||||
|
<p>optional: include nagios target for the alloy service (set <code>ay_manage_nagios</code>to <code>true</code>)</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
@@ -128,6 +130,9 @@
|
|||||||
<h2 id="label-Dependencies">Dependencies</h2>
|
<h2 id="label-Dependencies">Dependencies</h2>
|
||||||
|
|
||||||
<p>All dependencies must be included in the catalogue.</p>
|
<p>All dependencies must be included in the catalogue.</p>
|
||||||
|
<ul><li>
|
||||||
|
<p><a href="https://sourcecode.confdroid.com/confdroid/confdroid_nagios">confdroid_nagios</a> if nagios monitoring is desired</p>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Deployment">Deployment</h2>
|
<h2 id="label-Deployment">Deployment</h2>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
|
|||||||
@@ -119,6 +119,8 @@
|
|||||||
<p>manages log rotation for rsyslog to allow adm membership</p>
|
<p>manages log rotation for rsyslog to allow adm membership</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>manage service</p>
|
<p>manage service</p>
|
||||||
|
</li><li>
|
||||||
|
<p>optional: include nagios target for the alloy service (set <code>ay_manage_nagios</code>to <code>true</code>)</p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||||
@@ -128,6 +130,9 @@
|
|||||||
<h2 id="label-Dependencies">Dependencies</h2>
|
<h2 id="label-Dependencies">Dependencies</h2>
|
||||||
|
|
||||||
<p>All dependencies must be included in the catalogue.</p>
|
<p>All dependencies must be included in the catalogue.</p>
|
||||||
|
<ul><li>
|
||||||
|
<p><a href="https://sourcecode.confdroid.com/confdroid/confdroid_nagios">confdroid_nagios</a> if nagios monitoring is desired</p>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Deployment">Deployment</h2>
|
<h2 id="label-Deployment">Deployment</h2>
|
||||||
<ul><li>
|
<ul><li>
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ class confdroid_alloy::monitoring::target (
|
|||||||
) inherits confdroid_alloy::params {
|
) inherits confdroid_alloy::params {
|
||||||
if $ay_manage_nagios == true {
|
if $ay_manage_nagios == true {
|
||||||
@@nagios_service { "check_alloy_${fqdn}":
|
@@nagios_service { "check_alloy_${fqdn}":
|
||||||
check_command => "check_nrpe!check_alloy!${fn_procs_allowed}!alloy-server",
|
check_command => "check_nrpe!check_alloy!${ay_procs_allowed}!alloy",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
|
|||||||
@@ -412,6 +412,24 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>the contacts for nagios service exports</p>
|
<p>the contacts for nagios service exports</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>ay_procs_allowed</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>'1:'</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>the allowed number of processes for nagios service exports</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -427,7 +445,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
25
|
|
||||||
26
|
26
|
||||||
27
|
27
|
||||||
28
|
28
|
||||||
@@ -465,10 +482,15 @@
|
|||||||
60
|
60
|
||||||
61
|
61
|
||||||
62
|
62
|
||||||
63</pre>
|
63
|
||||||
|
64
|
||||||
|
65
|
||||||
|
66
|
||||||
|
67
|
||||||
|
68</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 25</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 26</span>
|
||||||
|
|
||||||
class confdroid_alloy::params (
|
class confdroid_alloy::params (
|
||||||
|
|
||||||
@@ -495,8 +517,12 @@ class confdroid_alloy::params (
|
|||||||
Boolean $ay_manage_nagios = false,
|
Boolean $ay_manage_nagios = false,
|
||||||
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
|
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
|
||||||
Array $ay_target_contacts = ['nagiosadmin'],
|
Array $ay_target_contacts = ['nagiosadmin'],
|
||||||
|
String $ay_procs_allowed = '1:'
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
# defaults
|
||||||
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$ay_service = 'alloy'
|
$ay_service = 'alloy'
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ class confdroid_alloy::monitoring::target (
|
|||||||
) inherits confdroid_alloy::params {
|
) inherits confdroid_alloy::params {
|
||||||
if $ay_manage_nagios == true {
|
if $ay_manage_nagios == true {
|
||||||
@@nagios_service { "check_alloy_${fqdn}":
|
@@nagios_service { "check_alloy_${fqdn}":
|
||||||
check_command => "check_nrpe!check_alloy!${fn_procs_allowed}!alloy-server",
|
check_command => "check_nrpe!check_alloy!${ay_procs_allowed}!alloy",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
# @param [Boolean] ay_manage_nagios whether to manage nagios service exports
|
# @param [Boolean] ay_manage_nagios whether to manage nagios service exports
|
||||||
# @param [String] ay_target_service the target file for nagios service exports
|
# @param [String] ay_target_service the target file for nagios service exports
|
||||||
# @param [Array] ay_target_contacts the contacts for nagios service exports
|
# @param [Array] ay_target_contacts the contacts for nagios service exports
|
||||||
|
# @param [String] ay_procs_allowed the allowed number of processes for nagios service exports
|
||||||
# @summary Class contains all parameters for the confdroid_alloy module.
|
# @summary Class contains all parameters for the confdroid_alloy module.
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class confdroid_alloy::params (
|
class confdroid_alloy::params (
|
||||||
@@ -47,8 +48,12 @@ class confdroid_alloy::params (
|
|||||||
Boolean $ay_manage_nagios = false,
|
Boolean $ay_manage_nagios = false,
|
||||||
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
|
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
|
||||||
Array $ay_target_contacts = ['nagiosadmin'],
|
Array $ay_target_contacts = ['nagiosadmin'],
|
||||||
|
String $ay_procs_allowed = '1:'
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
# defaults
|
||||||
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
|
||||||
# service
|
# service
|
||||||
$ay_service = 'alloy'
|
$ay_service = 'alloy'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user