Skip to content

Commit

Permalink
Adhere to puppet param naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosimo Streppone committed Dec 13, 2011
1 parent 444d844 commit 40c263c
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions wget/manifests/init.pp
@@ -1,13 +1,18 @@
class wget { class wget {
package { "wget":
ensure => "installed", #defined in base_packages
} #package { "wget":
# ensure => "installed",
#}
} }


define wget::download($url, $dest_file) { define wget::download(
$source,
$target
) {
exec { "wget-download-$name": exec { "wget-download-$name":
command => "/usr/bin/wget --no-check-certificate -O $dest_file $url 2>/dev/null", command => "/usr/bin/wget --no-check-certificate -O $target $source 2>/dev/null",
creates => $dest_file, creates => $target,
require => Package["wget"], require => Package["wget"],
} }
} }
Expand Down

0 comments on commit 40c263c

Please sign in to comment.