Recommit for updates in build 15
This commit is contained in:
@@ -79,6 +79,8 @@
|
||||
|
||||
<span class='object_link'><a href="prometheus_cd_3A_3Amain_3A_3Ayumrepo.html" title="puppet_classes::prometheus_cd::main::yumrepo (puppet_class)">prometheus_cd::main::yumrepo</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="prometheus_cd_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::prometheus_cd::firewall::iptables (puppet_class)">prometheus_cd::firewall::iptables</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -194,6 +196,78 @@
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether to manage node exporter</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ps_manage_fw</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether to manage the firewall</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ps_prom_host</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'prometheus.example.net'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the fqdn of the prometheus server</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ps_fw_prefix</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'50'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the firewall rule prefix</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ps_main_port</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'9090'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the firewall main port for prometheus</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -209,10 +283,6 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
11
|
||||
12
|
||||
13
|
||||
14
|
||||
15
|
||||
16
|
||||
17
|
||||
@@ -226,18 +296,43 @@
|
||||
25
|
||||
26
|
||||
27
|
||||
28</pre>
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44</pre>
|
||||
</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 15</span>
|
||||
|
||||
class prometheus_cd::params (
|
||||
|
||||
# installation
|
||||
String $reqpackage_prom = 'prometheus2',
|
||||
String $reqpackage_ne = 'node_exporter',
|
||||
String $pkg_ensure = 'present',
|
||||
|
||||
# config logic
|
||||
Boolean $manage_prometheus = false,
|
||||
Boolean $manage_node_exporter = false,
|
||||
Boolean $ps_manage_fw = false,
|
||||
String $ps_prom_host = 'prometheus.example.net',
|
||||
|
||||
# firewall
|
||||
String $ps_fw_prefix = '50',
|
||||
String $ps_main_port = '9090',
|
||||
|
||||
) {
|
||||
# defaults
|
||||
@@ -246,6 +341,9 @@ class prometheus_cd::params (
|
||||
$os_name = $facts['os']['name']
|
||||
$os_release = $facts['os']['release']['major']
|
||||
|
||||
# dirs
|
||||
$ps_main_dir = '/etc/prometheus'
|
||||
|
||||
# includes must be last
|
||||
include prometheus_cd::main::config
|
||||
}</pre>
|
||||
|
||||
Reference in New Issue
Block a user