3
0

Recommit for updates in build 56

This commit is contained in:
2025-12-04 12:03:05 +01:00
parent 9661d229eb
commit a62c016ae9
2 changed files with 26 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ class prometheus_cd::main::dirs (
seltype => systemd_unit_file_t, seltype => systemd_unit_file_t,
seluser => unconfined_u, seluser => unconfined_u,
} }
if $ps_write_external == true { if $ps_enable_pruning == true {
file { $ps_pruning_dir: file { $ps_pruning_dir:
ensure => directory, ensure => directory,
owner => 'prometheus', owner => 'prometheus',
@@ -188,7 +188,7 @@ class prometheus_cd::main::dirs (
seluser => unconfined_u, seluser => unconfined_u,
} }
} }
if $ps_write_external == false { if $ps_enable_pruning == false {
file { $ps_pruning_dir: file { $ps_pruning_dir:
ensure => absent, ensure => absent,
} }

View File

@@ -578,6 +578,24 @@
</li> </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>
&mdash;
<div class='inline'>
<p>whether to allow pruning local blocks</p>
</div>
</li>
<li> <li>
<span class='name'>ps_pruning_dir</span> <span class='name'>ps_pruning_dir</span>
@@ -607,7 +625,6 @@
<pre class="lines"> <pre class="lines">
33
34 34
35 35
36 36
@@ -676,10 +693,12 @@
99 99
100 100
101 101
102</pre> 102
103
104</pre>
</td> </td>
<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 ( class prometheus_cd::params (
@@ -726,7 +745,8 @@ class prometheus_cd::params (
String $ps_external_url = &#39;http://changeme.local/write&#39;, String $ps_external_url = &#39;http://changeme.local/write&#39;,
# pruning script # pruning script
String $ps_pruning_dir = &#39;/opt/prometheus-prune&#39; Boolean $ps_enable_pruning = false,
String $ps_pruning_dir = &#39;/opt/prometheus-prune&#39;,
) { ) {
# defaults # defaults