changeset 28 | b0b56e0f8c7f |
27:a2342f26c9de | 28:b0b56e0f8c7f |
---|---|
1 # See README.md for details. |
|
2 define archive::tar_gz($source, $target, $path=$::path) { |
|
3 exec {"${name} unpack": |
|
4 command => "curl -s -S ${source} | tar -xzf - -C ${target} && touch ${name}", |
|
5 creates => $name, |
|
6 path => $path, |
|
7 require => Package[curl], |
|
8 } |
|
9 } |