Merge branch 'jenkins-build-8' into 'master'
Auto-merge for build 8 See merge request puppet/prometheus_cd!7
This commit is contained in:
@@ -104,7 +104,23 @@
|
|||||||
6
|
6
|
||||||
7
|
7
|
||||||
8
|
8
|
||||||
9</pre>
|
9
|
||||||
|
10
|
||||||
|
11
|
||||||
|
12
|
||||||
|
13
|
||||||
|
14
|
||||||
|
15
|
||||||
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
19
|
||||||
|
20
|
||||||
|
21
|
||||||
|
22
|
||||||
|
23
|
||||||
|
24
|
||||||
|
25</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/service.pp', line 6</span>
|
||||||
@@ -112,6 +128,22 @@
|
|||||||
class prometheus_cd::main::service (
|
class prometheus_cd::main::service (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::files
|
require prometheus_cd::main::files
|
||||||
|
if $manage_prometheus == true {
|
||||||
|
service { 'prometheus':
|
||||||
|
ensure => running,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
enable => true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if $manage_prometheus == true {
|
||||||
|
service { 'node_exporter':
|
||||||
|
ensure => running,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
enable => true,
|
||||||
|
}
|
||||||
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -219,7 +219,13 @@
|
|||||||
18
|
18
|
||||||
19
|
19
|
||||||
20
|
20
|
||||||
21</pre>
|
21
|
||||||
|
22
|
||||||
|
23
|
||||||
|
24
|
||||||
|
25
|
||||||
|
26
|
||||||
|
27</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 11</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 11</span>
|
||||||
@@ -232,6 +238,12 @@ class prometheus_cd::params (
|
|||||||
Boolean $manage_node_exporter = false,
|
Boolean $manage_node_exporter = false,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
# defaults
|
||||||
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
$domain = $facts['networking']['domain']
|
||||||
|
$os_name = $facts['os']['name']
|
||||||
|
$os_release = $facts['os']['release']['major']
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include prometheus_cd::main::config
|
include prometheus_cd::main::config
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|||||||
@@ -6,4 +6,20 @@
|
|||||||
class prometheus_cd::main::service (
|
class prometheus_cd::main::service (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::files
|
require prometheus_cd::main::files
|
||||||
|
if $manage_prometheus == true {
|
||||||
|
service { 'prometheus':
|
||||||
|
ensure => running,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
enable => true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if $manage_prometheus == true {
|
||||||
|
service { 'node_exporter':
|
||||||
|
ensure => running,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
enable => true,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,12 @@ class prometheus_cd::params (
|
|||||||
Boolean $manage_node_exporter = false,
|
Boolean $manage_node_exporter = false,
|
||||||
|
|
||||||
) {
|
) {
|
||||||
|
# defaults
|
||||||
|
$fqdn = $facts['networking']['fqdn']
|
||||||
|
$domain = $facts['networking']['domain']
|
||||||
|
$os_name = $facts['os']['name']
|
||||||
|
$os_release = $facts['os']['release']['major']
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include prometheus_cd::main::config
|
include prometheus_cd::main::config
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user