From a62c016ae95ae913740c6c0f749d8bef6066300d Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Thu, 4 Dec 2025 12:03:05 +0100 Subject: [PATCH] Recommit for updates in build 56 --- .../prometheus_cd_3A_3Amain_3A_3Adirs.html | 4 +-- .../prometheus_cd_3A_3Aparams.html | 28 ++++++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html index a7c3c64..58c7e7c 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html @@ -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, } diff --git a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html index bbcf7cf..6cc2394 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html @@ -578,6 +578,24 @@ +
  • + + ps_enable_pruning + + + (Boolean) + + + (defaults to: false) + + + — +
    +

    whether to allow pruning local blocks

    +
    + +
  • +
  • ps_pruning_dir @@ -607,7 +625,6 @@
     
     
    -33
     34
     35
     36
    @@ -676,10 +693,12 @@
     99
     100
     101
    -102
    +102 +103 +104 -
    # File 'manifests/params.pp', line 33
    +        
    # File 'manifests/params.pp', line 34
     
     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