Don't use hardcoded provider in force manifest.

Use $apt::params::provider instead.
This commit is contained in:
Andreas Teuchert 2013-02-23 16:45:31 +01:00 committed by Hunter Haugen
parent 9a968bbead
commit 5f618da4bd

View file

@ -7,6 +7,8 @@ define apt::force(
$timeout = 300
) {
$provider = $apt::params::provider
$version_string = $version ? {
false => undef,
default => "=${version}",
@ -32,7 +34,7 @@ define apt::force(
}
}
exec { "/usr/bin/apt-get -y ${release_string} install ${name}${version_string}":
exec { "${provider} -y ${release_string} install ${name}${version_string}":
unless => $install_check,
logoutput => 'on_failure',
timeout => $timeout,