Skip to content

Commit

Permalink
Merge pull request voxpupuli#328 from sezuan/fix_alertmanager_install…
Browse files Browse the repository at this point in the history
…ation

Link the amtool only if it is installed via direct download.
  • Loading branch information
bastelfreak committed Jul 11, 2019
2 parents 7ec4181 + dcdb176 commit 6245671
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 6245671

Please sign in to comment.