recommit for updates in build 37
This commit is contained in:
@@ -173,12 +173,6 @@ block</code>, not per class.</p>
|
||||
</li><li>
|
||||
<p>ERB Template Parser</p>
|
||||
</li><li>
|
||||
<p>Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)</p>
|
||||
</li><li>
|
||||
<p>Markdown-lint</p>
|
||||
</li><li>
|
||||
<p>Spellcheck</p>
|
||||
</li><li>
|
||||
<p>Sonar Quality Gate</p>
|
||||
</li></ul>
|
||||
|
||||
|
||||
@@ -173,12 +173,6 @@ block</code>, not per class.</p>
|
||||
</li><li>
|
||||
<p>ERB Template Parser</p>
|
||||
</li><li>
|
||||
<p>Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)</p>
|
||||
</li><li>
|
||||
<p>Markdown-lint</p>
|
||||
</li><li>
|
||||
<p>Spellcheck</p>
|
||||
</li><li>
|
||||
<p>Sonar Quality Gate</p>
|
||||
</li></ul>
|
||||
|
||||
|
||||
@@ -105,9 +105,7 @@
|
||||
7
|
||||
8
|
||||
9
|
||||
10
|
||||
11
|
||||
12</pre>
|
||||
10</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/config.pp', line 6</span>
|
||||
@@ -115,9 +113,7 @@
|
||||
class cd_alloy::main::config (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
include cd_alloy::main::service
|
||||
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -117,8 +117,7 @@
|
||||
19
|
||||
20
|
||||
21
|
||||
22
|
||||
23</pre>
|
||||
22</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
|
||||
@@ -126,7 +125,6 @@
|
||||
class cd_alloy::main::dirs (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::install
|
||||
|
||||
# main config dir
|
||||
|
||||
@@ -121,9 +121,7 @@
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28</pre>
|
||||
26</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/files.pp', line 6</span>
|
||||
@@ -131,7 +129,6 @@
|
||||
class cd_alloy::main::files (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::dirs
|
||||
|
||||
# Ensure log_targets is always an array
|
||||
@@ -149,7 +146,6 @@ class cd_alloy::main::files (
|
||||
content => template('cd_alloy/config.alloy.erb'),
|
||||
notify => Service[$ay_service],
|
||||
}
|
||||
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages module logic for the cd_alloy module
|
||||
Class installs packages for the cd_alloy module
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
@@ -109,8 +109,7 @@
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15</pre>
|
||||
14</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
||||
@@ -118,7 +117,6 @@
|
||||
class cd_alloy::main::install (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::yumrepo
|
||||
|
||||
package { $reqpackages:
|
||||
|
||||
@@ -112,8 +112,7 @@
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
18</pre>
|
||||
17</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
|
||||
@@ -121,7 +120,6 @@
|
||||
class cd_alloy::main::service (
|
||||
|
||||
) inherits cd_alloy::params {
|
||||
|
||||
require cd_alloy::main::files
|
||||
|
||||
service { $ay_service:
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<span class='name'>reqpackages</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'alloy'</tt>)</em>
|
||||
@@ -131,7 +131,7 @@
|
||||
<span class='name'>pkg_ensure</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'latest'</tt>)</em>
|
||||
@@ -149,7 +149,7 @@
|
||||
<span class='name'>ay_loki_url</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'https://loki.example.net/loki/api/v1/push'</tt>)</em>
|
||||
@@ -167,10 +167,10 @@
|
||||
<span class='name'>ay_loki_username</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||||
<em class="default">(defaults to: <tt>'loki_user'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
@@ -185,10 +185,10 @@
|
||||
<span class='name'>ay_loki_userpass</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||||
<em class="default">(defaults to: <tt>'loki_pass'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
@@ -203,7 +203,7 @@
|
||||
<span class='name'>ay_manage_loki</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>boolean</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||
@@ -221,7 +221,7 @@
|
||||
<span class='name'>ay_manage_prom</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>boolean</tt>)</span>
|
||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||||
@@ -239,7 +239,7 @@
|
||||
<span class='name'>ay_prom_url</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'https://prometheus.example.net/api/v1/write'</tt>)</em>
|
||||
@@ -257,12 +257,17 @@
|
||||
<span class='name'>ay_log_targets</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
<span class='type'>(<tt>Array</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>['/var/log/messages','/var/log/secure',]</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the logging targets</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
@@ -276,7 +281,6 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
@@ -305,44 +309,39 @@
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45</pre>
|
||||
43</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 14</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 15</span>
|
||||
|
||||
class cd_alloy::params (
|
||||
|
||||
$reqpackages = 'alloy',
|
||||
$pkg_ensure = 'latest',
|
||||
String $reqpackages = 'alloy',
|
||||
String $pkg_ensure = 'latest',
|
||||
|
||||
# loki
|
||||
$ay_manage_loki = true,
|
||||
$ay_loki_url = 'https://loki.example.net/loki/api/v1/push',
|
||||
$ay_loki_username = '',
|
||||
$ay_loki_userpass = '',
|
||||
$ay_log_targets = ['/var/log/messages','/var/log/secure',],
|
||||
String $ay_manage_loki = true,
|
||||
String $ay_loki_url = 'https://loki.example.net/loki/api/v1/push',
|
||||
String $ay_loki_username = 'loki_user',
|
||||
String $ay_loki_userpass = 'loki_pass',
|
||||
Array $ay_log_targets = ['/var/log/messages','/var/log/secure',],
|
||||
|
||||
# prometheus
|
||||
$ay_manage_prom = true,
|
||||
$ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||
Boolean $ay_manage_prom = true,
|
||||
String $ay_prom_url = 'https://prometheus.example.net/api/v1/write',
|
||||
|
||||
) {
|
||||
# service
|
||||
$ay_service = 'alloy'
|
||||
|
||||
# service
|
||||
$ay_service = 'alloy'
|
||||
|
||||
# dirs
|
||||
$ay_main_dir = '/etc/alloy'
|
||||
|
||||
# files
|
||||
$ay_main_file = "${ay_main_dir}/config.alloy"
|
||||
# dirs
|
||||
$ay_main_dir = '/etc/alloy'
|
||||
|
||||
# files
|
||||
$ay_main_file = "${ay_main_dir}/config.alloy"
|
||||
|
||||
# includes must be last
|
||||
include cd_alloy::main::config
|
||||
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user