From 128dc40fbed20117c580031bc69fbf58b253eb75 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Thu, 13 Feb 2020 12:01:05 +0100 Subject: [PATCH] if $purge_config_dir=true, force-manage config_dir --- manifests/install.pp | 1 + spec/classes/prometheus_spec.rb | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/manifests/install.pp b/manifests/install.pp index 5278a7427..e5b49e920 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -93,5 +93,6 @@ mode => $prometheus::server::config_mode, purge => $prometheus::server::purge_config_dir, recurse => $prometheus::server::purge_config_dir, + force => $prometheus::server::purge_config_dir, } } diff --git a/spec/classes/prometheus_spec.rb b/spec/classes/prometheus_spec.rb index e6216401f..674ea0f0b 100644 --- a/spec/classes/prometheus_spec.rb +++ b/spec/classes/prometheus_spec.rb @@ -156,7 +156,8 @@ 'owner' => 'root', 'group' => 'prometheus', 'purge' => true, - 'recurse' => true + 'recurse' => true, + 'force' => true ) }