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,