Recommit for updates in build 15
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::init.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::init.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::firewall::iptables.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::firewall::iptables.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::main::config.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::main::config.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::main::dirs.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::main::dirs.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -145,7 +145,20 @@
|
|||||||
47
|
47
|
||||||
48
|
48
|
||||||
49
|
49
|
||||||
50</pre>
|
50
|
||||||
|
51
|
||||||
|
52
|
||||||
|
53
|
||||||
|
54
|
||||||
|
55
|
||||||
|
56
|
||||||
|
57
|
||||||
|
58
|
||||||
|
59
|
||||||
|
60
|
||||||
|
61
|
||||||
|
62
|
||||||
|
63</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/dirs.pp', line 6</span>
|
||||||
@@ -193,6 +206,19 @@ class confdroid_prometheus::main::dirs (
|
|||||||
ensure => absent,
|
ensure => absent,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# binary install directory
|
||||||
|
if $install_from_binary == true {
|
||||||
|
file { $ps_install_dir:
|
||||||
|
ensure => directory,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0755',
|
||||||
|
selrange => s0,
|
||||||
|
selrole => object_r,
|
||||||
|
seltype => usr_,
|
||||||
|
seluser => unconfined_u,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::main::files.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::main::files.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::main::install.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::main::install.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -114,7 +114,13 @@
|
|||||||
16
|
16
|
||||||
17
|
17
|
||||||
18
|
18
|
||||||
19</pre>
|
19
|
||||||
|
20
|
||||||
|
21
|
||||||
|
22
|
||||||
|
23
|
||||||
|
24
|
||||||
|
25</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/main/install.pp', line 6</span>
|
||||||
@@ -123,10 +129,16 @@ class confdroid_prometheus::main::install (
|
|||||||
) inherits confdroid_prometheus::params {
|
) inherits confdroid_prometheus::params {
|
||||||
require confdroid_prometheus::main::yumrepo
|
require confdroid_prometheus::main::yumrepo
|
||||||
if $manage_prometheus == true {
|
if $manage_prometheus == true {
|
||||||
|
if $install_from_binary == false {
|
||||||
package { $reqpackage_prom:
|
package { $reqpackage_prom:
|
||||||
ensure => $pkg_ensure,
|
ensure => $pkg_ensure,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if $install_from_binary == true {
|
||||||
|
# place function here to install from binary releases, e.g. using the archive module
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if $manage_node_exporter == true {
|
if $manage_node_exporter == true {
|
||||||
package { $reqpackage_ne:
|
package { $reqpackage_ne:
|
||||||
ensure => $pkg_ensure,
|
ensure => $pkg_ensure,
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::main::service.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::main::service.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::main::yumrepo.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::main::yumrepo.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
|
|
||||||
<p>confdroid_prometheus::params.pp Module name: confdroid_prometheus Author: Arne Teuke (arne_teuke@confdroid.com)</p>
|
<p>confdroid_prometheus::params.pp Module name: confdroid_prometheus Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -808,6 +808,24 @@
|
|||||||
—
|
—
|
||||||
<div class='inline'>
|
<div class='inline'>
|
||||||
<p>the SQL template to use for checks.</p>
|
<p>the SQL template to use for checks.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
|
||||||
|
<span class='name'>install_from_binary</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||||
|
|
||||||
|
|
||||||
|
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||||
|
|
||||||
|
|
||||||
|
—
|
||||||
|
<div class='inline'>
|
||||||
|
<p>whether to install from binary releases instead of packages</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
@@ -823,8 +841,6 @@
|
|||||||
<pre class="lines">
|
<pre class="lines">
|
||||||
|
|
||||||
|
|
||||||
45
|
|
||||||
46
|
|
||||||
47
|
47
|
||||||
48
|
48
|
||||||
49
|
49
|
||||||
@@ -910,10 +926,14 @@
|
|||||||
129
|
129
|
||||||
130
|
130
|
||||||
131
|
131
|
||||||
132</pre>
|
132
|
||||||
|
133
|
||||||
|
134
|
||||||
|
135
|
||||||
|
136</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 45</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 47</span>
|
||||||
|
|
||||||
class confdroid_prometheus::params (
|
class confdroid_prometheus::params (
|
||||||
|
|
||||||
@@ -921,6 +941,7 @@ class confdroid_prometheus::params (
|
|||||||
String $reqpackage_prom = 'prometheus2',
|
String $reqpackage_prom = 'prometheus2',
|
||||||
String $reqpackage_ne = 'node_exporter',
|
String $reqpackage_ne = 'node_exporter',
|
||||||
String $pkg_ensure = 'present',
|
String $pkg_ensure = 'present',
|
||||||
|
Boolean $install_from_binary = false,
|
||||||
|
|
||||||
# config logic
|
# config logic
|
||||||
Boolean $manage_prometheus = false,
|
Boolean $manage_prometheus = false,
|
||||||
@@ -985,6 +1006,7 @@ class confdroid_prometheus::params (
|
|||||||
$ps_main_dir = '/etc/prometheus'
|
$ps_main_dir = '/etc/prometheus'
|
||||||
$ps_system_file_dir = '/etc/systemd/system/prometheus.service.d'
|
$ps_system_file_dir = '/etc/systemd/system/prometheus.service.d'
|
||||||
$ps_system_dir = '/etc/systemd/system/'
|
$ps_system_dir = '/etc/systemd/system/'
|
||||||
|
$ps_install_dir = '/opt/prometheus'
|
||||||
|
|
||||||
# files
|
# files
|
||||||
$ps_main_file = "${ps_main_dir}/prometheus.yml"
|
$ps_main_file = "${ps_main_dir}/prometheus.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user