dev/provisioning/modules/archive/manifests/zip.pp
changeset 28 b0b56e0f8c7f
equal deleted inserted replaced
27:a2342f26c9de 28:b0b56e0f8c7f
       
     1 # See README.md for details.
       
     2 define archive::zip($source, $target, $path = $::path) {
       
     3   exec {"${name} unpack":
       
     4     command => "TMPFILE=\$(mktemp); curl -s -S -o \${TMPFILE}.zip ${source} && unzip \${TMPFILE}.zip -d ${target} && rm \$TMPFILE && rm \${TMPFILE}.zip && touch ${name}",
       
     5     creates => $name,
       
     6     path    => $::path,
       
     7     require => Package['unzip'],
       
     8   }
       
     9 }