module-puppetlabs-apt/manifests/force.pp
2010-04-27 16:38:28 -04:00

16 lines
304 B
Puppet

# force.pp
# force a package from a specific release
define apt::force(
$release = 'testing',
$version = false
) {
exec { "aptitude -y -t ${release} install ${name}":
unless => $version ? {
false => "dpkg -l | grep ${name}",
default => "dpkg -l | grep ${name} | grep ${version}"
}
}
}