Skip to content

Commit

Permalink
Merge pull request #328 from sezuan/fix_alertmanager_installation
Browse files Browse the repository at this point in the history
Link the amtool only if it is installed via direct download.
  • Loading branch information
bastelfreak committed Jul 11, 2019
2 parents d621d4c + 4836259 commit 587c876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/alertmanager.pp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,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,
Expand Down

0 comments on commit 587c876

Please sign in to comment.