Recommit for updates in build 56
This commit is contained in:
@@ -176,7 +176,7 @@ class prometheus_cd::main::dirs (
|
||||
seltype => systemd_unit_file_t,
|
||||
seluser => unconfined_u,
|
||||
}
|
||||
if $ps_write_external == true {
|
||||
if $ps_enable_pruning == true {
|
||||
file { $ps_pruning_dir:
|
||||
ensure => directory,
|
||||
owner => 'prometheus',
|
||||
@@ -188,7 +188,7 @@ class prometheus_cd::main::dirs (
|
||||
seluser => unconfined_u,
|
||||
}
|
||||
}
|
||||
if $ps_write_external == false {
|
||||
if $ps_enable_pruning == false {
|
||||
file { $ps_pruning_dir:
|
||||
ensure => absent,
|
||||
}
|
||||
|
||||
@@ -578,6 +578,24 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ps_enable_pruning</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>whether to allow pruning local blocks</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ps_pruning_dir</span>
|
||||
@@ -607,7 +625,6 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
@@ -676,10 +693,12 @@
|
||||
99
|
||||
100
|
||||
101
|
||||
102</pre>
|
||||
102
|
||||
103
|
||||
104</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 33</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 34</span>
|
||||
|
||||
class prometheus_cd::params (
|
||||
|
||||
@@ -726,7 +745,8 @@ class prometheus_cd::params (
|
||||
String $ps_external_url = 'http://changeme.local/write',
|
||||
|
||||
# pruning script
|
||||
String $ps_pruning_dir = '/opt/prometheus-prune'
|
||||
Boolean $ps_enable_pruning = false,
|
||||
String $ps_pruning_dir = '/opt/prometheus-prune',
|
||||
|
||||
) {
|
||||
# defaults
|
||||
|
||||
Reference in New Issue
Block a user