I use a simple define + wget for this kind of thing:
define download ($uri, $timeout = 300) {
exec {
"download $uri":
command => "wget -q '$uri' -O $name",
creates => $name,
timeout => $timeout,
require => Package[ "wget" ],
}
}
Use it like:
download {
"/tmp/tomcat.tar.gz":
uri => "http://www.ibiblio.org/pub/mirrors/apache/tomcat/tomcat-5/v5.5.30/bin/apache-tomcat-5.5.30.tar.gz",
timeout => 900;
}
--
It's a damn poor mind that can only think of one way to spell a word.
By any chance, does the "source" parameter supports HTTP URLs, if not
then how can i do that in Puppet ?