Merge branch 'jenkins-build-19' into 'master'
Auto-merge for build 19 See merge request puppet/prometheus_cd!18
This commit is contained in:
@@ -116,7 +116,9 @@
|
|||||||
18
|
18
|
||||||
19
|
19
|
||||||
20
|
20
|
||||||
21</pre>
|
21
|
||||||
|
22
|
||||||
|
23</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>
|
||||||
@@ -124,17 +126,19 @@
|
|||||||
class prometheus_cd::main::files (
|
class prometheus_cd::main::files (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::dirs
|
require prometheus_cd::main::dirs
|
||||||
file { $ps_main_file:
|
if $ps_prom_host == fqdn {
|
||||||
ensure => file,
|
file { $ps_main_file:
|
||||||
owner => 'root',
|
ensure => file,
|
||||||
group => 'root',
|
owner => 'root',
|
||||||
mode => '0644',
|
group => 'root',
|
||||||
selrange => s0,
|
mode => '0644',
|
||||||
selrole => object_r,
|
selrange => s0,
|
||||||
seltype => etc_t,
|
selrole => object_r,
|
||||||
seluser => system_u,
|
seltype => etc_t,
|
||||||
content => template('prometheus_cd/prometheus.yml.erb'),
|
seluser => system_u,
|
||||||
notify => Service[$ps_prom_service],
|
content => template('prometheus_cd/prometheus.yml.erb'),
|
||||||
|
notify => Service[$ps_prom_service],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -292,7 +292,7 @@
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
<span class='name'>ps_auth_user</span>
|
<span class='name'>ps_auth_pass</span>
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
<span class='type'>(<tt>String</tt>)</span>
|
||||||
@@ -308,19 +308,6 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
|
||||||
|
|
||||||
<span class='name'>ps_auth_pass</span>
|
|
||||||
|
|
||||||
|
|
||||||
<span class='type'>(<tt>String</tt>)</span>
|
|
||||||
|
|
||||||
|
|
||||||
<em class="default">(defaults to: <tt>'changeme'</tt>)</em>
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -371,7 +358,8 @@
|
|||||||
53
|
53
|
||||||
54
|
54
|
||||||
55
|
55
|
||||||
56</pre>
|
56
|
||||||
|
57</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 17</span>
|
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 17</span>
|
||||||
@@ -413,6 +401,7 @@ class prometheus_cd::params (
|
|||||||
# services
|
# services
|
||||||
$ps_prom_service = 'prometheus'
|
$ps_prom_service = 'prometheus'
|
||||||
$ps_ne_service = 'node_exporter'
|
$ps_ne_service = 'node_exporter'
|
||||||
|
|
||||||
# includes must be last
|
# includes must be last
|
||||||
include prometheus_cd::main::config
|
include prometheus_cd::main::config
|
||||||
}</pre>
|
}</pre>
|
||||||
|
|||||||
@@ -6,16 +6,18 @@
|
|||||||
class prometheus_cd::main::files (
|
class prometheus_cd::main::files (
|
||||||
) inherits prometheus_cd::params {
|
) inherits prometheus_cd::params {
|
||||||
require prometheus_cd::main::dirs
|
require prometheus_cd::main::dirs
|
||||||
file { $ps_main_file:
|
if $ps_prom_host == fqdn {
|
||||||
ensure => file,
|
file { $ps_main_file:
|
||||||
owner => 'root',
|
ensure => file,
|
||||||
group => 'root',
|
owner => 'root',
|
||||||
mode => '0644',
|
group => 'root',
|
||||||
selrange => s0,
|
mode => '0644',
|
||||||
selrole => object_r,
|
selrange => s0,
|
||||||
seltype => etc_t,
|
selrole => object_r,
|
||||||
seluser => system_u,
|
seltype => etc_t,
|
||||||
content => template('prometheus_cd/prometheus.yml.erb'),
|
seluser => system_u,
|
||||||
notify => Service[$ps_prom_service],
|
content => template('prometheus_cd/prometheus.yml.erb'),
|
||||||
|
notify => Service[$ps_prom_service],
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
# @param [String] ps_fw_prefix the firewall rule prefix
|
# @param [String] ps_fw_prefix the firewall rule prefix
|
||||||
# @param [String] ps_main_port the firewall main port for prometheus
|
# @param [String] ps_main_port the firewall main port for prometheus
|
||||||
# @param [String] ps_auth_user the username for authentication
|
# @param [String] ps_auth_user the username for authentication
|
||||||
# @param [String] ps_auth_user the password for authentication
|
# @param [String] ps_auth_pass the password for authentication
|
||||||
##############################################################################
|
##############################################################################
|
||||||
class prometheus_cd::params (
|
class prometheus_cd::params (
|
||||||
|
|
||||||
@@ -51,6 +51,7 @@ class prometheus_cd::params (
|
|||||||
# services
|
# services
|
||||||
$ps_prom_service = 'prometheus'
|
$ps_prom_service = 'prometheus'
|
||||||
$ps_ne_service = 'node_exporter'
|
$ps_ne_service = 'node_exporter'
|
||||||
|
|
||||||
# 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