Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adhere to puppet param naming conventions

  • Loading branch information...
commit 40c263cca5fe96a9f2d0a1b300461d827edede93 1 parent 444d844
@cosimo authored
Showing with 11 additions and 6 deletions.
  1. +11 −6 wget/manifests/init.pp
View
17 wget/manifests/init.pp
@@ -1,13 +1,18 @@
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":
- command => "/usr/bin/wget --no-check-certificate -O $dest_file $url 2>/dev/null",
- creates => $dest_file,
+ command => "/usr/bin/wget --no-check-certificate -O $target $source 2>/dev/null",
+ creates => $target,
require => Package["wget"],
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.