puppet-standalone-mashup/shared/modules/remotedeb/manifests/init.pp

11 lines
256 B
ObjectPascal
Raw Normal View History

2012-06-23 02:02:08 +00:00
define remotedeb($url, $version) {
$deb = "/tmp/${name}.deb"
exec { "remotedeb-${name}":
command => "curl -o ${deb} ${url} && dpkg -i ${deb}",
2012-08-02 15:17:45 +00:00
unless => "test $(dpkg -l ${name} | grep ${version} | wc -l) -eq 0",
2012-06-23 02:02:08 +00:00
path => $base::path
}
}