Recommit for updates in build 118
This commit is contained in:
@@ -129,7 +129,7 @@ class confdroid_nagios::nagios::config (
|
||||
require confdroid_nagios::nagios::objects::add_contactgroups_rules
|
||||
require confdroid_nagios::nagios::objects::add_hostgroup_rules
|
||||
require confdroid_nagios::nagios::objects::add_servicegroup_rules
|
||||
#require confdroid_nagios::nagios::objects::add_timeperiod_rules
|
||||
require confdroid_nagios::nagios::objects::add_timeperiod_rules
|
||||
require confdroid_nagios::nagios::resources::resource
|
||||
}
|
||||
}</pre>
|
||||
|
||||
@@ -0,0 +1,197 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: confdroid_nagios::nagios::objects::add_timeperiod_rules
|
||||
|
||||
— 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_nagios::nagios::objects::add_timeperiod_rules";
|
||||
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> »
|
||||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||||
»
|
||||
<span class="title">confdroid_nagios::nagios::objects::add_timeperiod_rules</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_nagios::nagios::objects::add_timeperiod_rules</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="confdroid_nagios_3A_3Aparams.html" title="puppet_classes::confdroid_nagios::params (puppet_class)">confdroid_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/add_timeperiod_rules.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages /etc/nagios_conf.d/nagios_timeperiods_add.cfg and
|
||||
add. hostgroups through external Puppet rules via define.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>confdroid_nagios::nagios::objects::add_timeperiod_rules.pp Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com) }</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="tags">
|
||||
|
||||
<div class="examples">
|
||||
<p class="tag_title">Examples:</p>
|
||||
|
||||
|
||||
<p class="example_title"><div class='inline'>
|
||||
<p>confdroid_nagios::nagios::objects::add_timeperiods { ‘example_timeperiod’:</p>
|
||||
</div></p>
|
||||
|
||||
<pre class="example code"><code>ng_timep_name => 'example_timeperiod',
|
||||
ng_timep_alias => 'Example timeperiod',
|
||||
ng_timep_monday => '00:00-00:00',
|
||||
ng_timep_tuesday => '00:00-00:00',
|
||||
ng_timep_wednesday => '00:00-00:00',
|
||||
ng_timep_thursday => '00:00-00:00',
|
||||
ng_timep_friday => '00:00-00:00',
|
||||
ng_timep_saturday => '00:00-00:00',
|
||||
ng_timep_sunday => '00:00-00:00',</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
18
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_timeperiod_rules.pp', line 18</span>
|
||||
|
||||
class confdroid_nagios::nagios::objects::add_timeperiod_rules (
|
||||
|
||||
) inherits confdroid_nagios::params {
|
||||
if $ng_nagios_server == $fqdn {
|
||||
# manage /etc/nagios/conf.d/nagios_timeperiods_add.cfg
|
||||
|
||||
concat { $ng_tgt_timep_add:
|
||||
ensure => present,
|
||||
path => $ng_tgt_timep_add,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => nagios_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[$ng_service],
|
||||
}
|
||||
|
||||
# manage file header
|
||||
|
||||
concat::fragment { 'timeperiods_header':
|
||||
target => $ng_tgt_timep_add,
|
||||
content => template($ng_tgt_timep_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
}
|
||||
}</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>
|
||||
@@ -93,6 +93,8 @@
|
||||
|
||||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroup_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_hostgroup_rules (puppet_class)">confdroid_nagios::nagios::objects::add_hostgroup_rules</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiod_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_timeperiod_rules (puppet_class)">confdroid_nagios::nagios::objects::add_timeperiod_rules</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroup_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_servicegroup_rules (puppet_class)">confdroid_nagios::nagios::objects::add_servicegroup_rules</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_contactgroups_rules (puppet_class)">confdroid_nagios::nagios::objects::add_contactgroups_rules</a></span><br/>
|
||||
|
||||
Reference in New Issue
Block a user