From 1dec72f08747fb703800d27bc55e500a9e4890d2 Mon Sep 17 00:00:00 2001 From: Arne Teuke Date: Sat, 18 Oct 2025 14:58:10 +0200 Subject: [PATCH 1/2] remove storage path - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/260 --- manifests/main/dirs.pp | 11 ----------- manifests/params.pp | 2 -- templates/prometheus.yml.erb | 1 - 3 files changed, 14 deletions(-) diff --git a/manifests/main/dirs.pp b/manifests/main/dirs.pp index fa84da8..31126c6 100644 --- a/manifests/main/dirs.pp +++ b/manifests/main/dirs.pp @@ -18,16 +18,5 @@ class prometheus_cd::main::dirs ( seltype => etc_t, seluser => system_u, } - # data directory - file { $ps_data_dir: - ensure => directory, - owner => 'prometheus', - group => 'prometheus', - mode => '0750', - selrange => s0, - selrole => object_r, - seltype => default_t, - seluser => system_u, - } } } diff --git a/manifests/params.pp b/manifests/params.pp index 9e54376..c6f0a22 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -13,7 +13,6 @@ # @param [String] ps_main_port the firewall main port for prometheus # @param [String] ps_auth_user the username for authentication # @param [String] ps_auth_pass the password for authentication -# @param [String] ps_data_dir the data directory for prometheus ############################################################################## class prometheus_cd::params ( @@ -27,7 +26,6 @@ class prometheus_cd::params ( Boolean $manage_node_exporter = false, Boolean $ps_manage_fw = false, String $ps_prom_host = 'prometheus.example.net', - String $ps_data_dir = '/data/prometheus', # firewall String $ps_fw_prefix = '50', diff --git a/templates/prometheus.yml.erb b/templates/prometheus.yml.erb index 53a720b..9c8521a 100644 --- a/templates/prometheus.yml.erb +++ b/templates/prometheus.yml.erb @@ -9,7 +9,6 @@ global: storage: tsdb: out_of_order_time_window: 5m - path: <%= @ps_data_dir %> alerting: alertmanagers: - follow_redirects: true From 16960c7618ad5adfb14b61b7130057d37adc0184 Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Sat, 18 Oct 2025 14:59:47 +0200 Subject: [PATCH 2/2] Recommit for updates in build 25 --- .../prometheus_cd_3A_3Amain_3A_3Adirs.html | 24 +---------------- .../prometheus_cd_3A_3Aparams.html | 26 +++---------------- 2 files changed, 4 insertions(+), 46 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 f075a05..540bff1 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Amain_3A_3Adirs.html @@ -117,18 +117,7 @@ 19 20 21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 +22
# File 'manifests/main/dirs.pp', line 6
@@ -148,17 +137,6 @@ class prometheus_cd::main::dirs (
       seltype  => etc_t,
       seluser  => system_u,
     }
-    # data directory
-    file { $ps_data_dir:
-      ensure   => directory,
-      owner    => 'prometheus',
-      group    => 'prometheus',
-      mode     => '0750',
-      selrange => s0,
-      selrole  => object_r,
-      seltype  => default_t,
-      seluser  => system_u,
-    }
   }
 }
diff --git a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html index 7945501..651cb71 100644 --- a/doc/puppet_classes/prometheus_cd_3A_3Aparams.html +++ b/doc/puppet_classes/prometheus_cd_3A_3Aparams.html @@ -304,24 +304,6 @@ —

the password for authentication

-
- - - -
  • - - ps_data_dir - - - (String) - - - (defaults to: '/data/prometheus') - - - — -
    -

    the data directory for prometheus

  • @@ -337,6 +319,7 @@
     
     
    +17
     18
     19
     20
    @@ -376,12 +359,10 @@
     54
     55
     56
    -57
    -58
    -59
    +57 -
    # File 'manifests/params.pp', line 18
    +        
    # File 'manifests/params.pp', line 17
     
     class prometheus_cd::params (
     
    @@ -395,7 +376,6 @@ class prometheus_cd::params (
       Boolean $manage_node_exporter = false,
       Boolean $ps_manage_fw         = false,
       String $ps_prom_host          = 'prometheus.example.net',
    -  String $ps_data_dir           = '/data/prometheus',
     
       # firewall
       String $ps_fw_prefix          = '50',