Skip to content

Commit

Permalink
Link the amtool only if it is installed via direct download.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezuan authored and Matthias Rieber committed Jun 27, 2019
1 parent 9dc1f10 commit dcdb176
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 @@ -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,
Expand Down

0 comments on commit dcdb176

Please sign in to comment.