From d680bde91092301c874ecdc153d79e1775a4a823 Mon Sep 17 00:00:00 2001 From: Matthias Rieber Date: Tue, 25 Jun 2019 17:25:00 +0200 Subject: [PATCH] Link the amtool only if it is installed via direct download. --- manifests/alertmanager.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/alertmanager.pp b/manifests/alertmanager.pp index 9ccfbe47c..95e05b817 100644 --- a/manifests/alertmanager.pp +++ b/manifests/alertmanager.pp @@ -183,7 +183,7 @@ recurse => $purge_config_dir, } - if ( versioncmp($version, '0.10.0') >= 0 ) { + if (( versioncmp($version, '0.10.0') >= 0 ) and ( $install_method == 'url' )) { # If version >= 0.10.0 then install amtool - Alertmanager validation tool file {"${bin_dir}/amtool": ensure => link,