Compare commits
7 Commits
9f1a79708e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9bc61a5189 | ||
|
|
c6b2bb33f4 | ||
| ead6e46a90 | |||
|
|
e7e3a13258 | ||
|
|
6529ef4e2f | ||
| 3fa61bc874 | |||
|
|
457248aec9 |
@@ -135,7 +135,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<span class='object_link'><a href="puppet_defined_types/confdroid_alloy_3A_3Alog_targets.html" title="puppet_defined_types::confdroid_alloy::log_targets (puppet_defined_type)">confdroid_alloy::log_targets</a></span>
|
<span class='object_link'><a href="puppet_defined_types/confdroid_alloy_3A_3Amonitoring_3A_3Alog_targets.html" title="puppet_defined_types::confdroid_alloy::monitoring::log_targets (puppet_defined_type)">confdroid_alloy::monitoring::log_targets</a></span>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -169,8 +169,7 @@
|
|||||||
71
|
71
|
||||||
72
|
72
|
||||||
73
|
73
|
||||||
74
|
74</pre>
|
||||||
75</pre>
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||||
@@ -179,7 +178,6 @@ class confdroid_alloy::main::files (
|
|||||||
|
|
||||||
) inherits confdroid_alloy::params {
|
) inherits confdroid_alloy::params {
|
||||||
require confdroid_alloy::main::dirs
|
require confdroid_alloy::main::dirs
|
||||||
include concat
|
|
||||||
|
|
||||||
$log_targets_array = Array($confdroid_alloy::params::ay_log_targets, true)
|
$log_targets_array = Array($confdroid_alloy::params::ay_log_targets, true)
|
||||||
|
|
||||||
|
|||||||
@@ -40,9 +40,9 @@
|
|||||||
<ul id="full_list" class="puppet_defined_type">
|
<ul id="full_list" class="puppet_defined_type">
|
||||||
|
|
||||||
|
|
||||||
<li id="object_puppet_defined_types::confdroid_alloy::log_targets" class="odd">
|
<li id="object_puppet_defined_types::confdroid_alloy::monitoring::log_targets" class="odd">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<span class='object_link'><a href="puppet_defined_types/confdroid_alloy_3A_3Alog_targets.html" title="puppet_defined_types::confdroid_alloy::log_targets (puppet_defined_type)">confdroid_alloy::log_targets</a></span>
|
<span class='object_link'><a href="puppet_defined_types/confdroid_alloy_3A_3Amonitoring_3A_3Alog_targets.html" title="puppet_defined_types::confdroid_alloy::monitoring::log_targets (puppet_defined_type)">confdroid_alloy::monitoring::log_targets</a></span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,165 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>
|
||||||
|
Defined Type: confdroid_alloy::monitoring::log_targets
|
||||||
|
|
||||||
|
— 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_defined_types::confdroid_alloy::monitoring::log_targets";
|
||||||
|
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_defined_type_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'>Defined Types</span></span>
|
||||||
|
»
|
||||||
|
<span class="title">confdroid_alloy::monitoring::log_targets</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>Defined Type: confdroid_alloy::monitoring::log_targets</h1>
|
||||||
|
<div class="box_info">
|
||||||
|
<dl>
|
||||||
|
<dt>Defined in:</dt>
|
||||||
|
<dd>
|
||||||
|
manifests/monitoring/log_targets.pp
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Summary</h2>
|
||||||
|
Adds log file targets to the Alloy configuration.
|
||||||
|
|
||||||
|
<h2>Overview</h2>
|
||||||
|
<div class="docstring">
|
||||||
|
<div class="discussion">
|
||||||
|
|
||||||
|
<p>confdroid_alloy::monitoring::log_targets.pp Module name: confdroid_alloy</p>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="tags">
|
||||||
|
<p class="tag_title">Parameters:</p>
|
||||||
|
<ul class="param">
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>targets</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Array[String]</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>Paths to log files to scrape.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div><div class="method_details_list">
|
||||||
|
<table class="source_code">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
|
6
|
||||||
|
7
|
||||||
|
8
|
||||||
|
9
|
||||||
|
10
|
||||||
|
11
|
||||||
|
12
|
||||||
|
13
|
||||||
|
14
|
||||||
|
15
|
||||||
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
19
|
||||||
|
20</pre>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<pre class="code"><span class="info file"># File 'manifests/monitoring/log_targets.pp', line 6</span>
|
||||||
|
|
||||||
|
define confdroid_alloy::monitoring::log_targets (
|
||||||
|
|
||||||
|
Array[String] $targets = [],
|
||||||
|
|
||||||
|
) {
|
||||||
|
if $confdroid_alloy::params::ay_manage_loki == true and $targets != [] {
|
||||||
|
$log_targets_array = $targets
|
||||||
|
|
||||||
|
concat::fragment { "log_targets_${name}":
|
||||||
|
target => $confdroid_alloy::params::ay_main_file,
|
||||||
|
content => template('confdroid_alloy/log_targets.alloy.erb'),
|
||||||
|
order => '020',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}</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>
|
||||||
@@ -7,7 +7,6 @@ class confdroid_alloy::main::files (
|
|||||||
|
|
||||||
) inherits confdroid_alloy::params {
|
) inherits confdroid_alloy::params {
|
||||||
require confdroid_alloy::main::dirs
|
require confdroid_alloy::main::dirs
|
||||||
include concat
|
|
||||||
|
|
||||||
$log_targets_array = Array($confdroid_alloy::params::ay_log_targets, true)
|
$log_targets_array = Array($confdroid_alloy::params::ay_log_targets, true)
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
## confdroid_alloy::log_targets.pp
|
## confdroid_alloy::monitoring::log_targets.pp
|
||||||
# Module name: confdroid_alloy
|
# Module name: confdroid_alloy
|
||||||
# @summary Adds log file targets to the Alloy configuration.
|
# @summary Adds log file targets to the Alloy configuration.
|
||||||
# @param [Array[String]] targets Paths to log files to scrape.
|
# @param [Array[String]] targets Paths to log files to scrape.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
define confdroid_alloy::log_targets (
|
define confdroid_alloy::monitoring::log_targets (
|
||||||
|
|
||||||
Array[String] $targets = [],
|
Array[String] $targets = [],
|
||||||
|
|
||||||
Reference in New Issue
Block a user