Don't use hardcoded provider in force manifest.
Use $apt::params::provider instead.
This commit is contained in:
parent
9a968bbead
commit
5f618da4bd
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue