Added gnu module for installing GNU tools
This commit is contained in:
parent
1c2fcb7004
commit
223acd61a8
2 changed files with 31 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
|||
#
|
||||
define util::extract::tar($source, $ensure=present, $strip=0, $preserve=false) {
|
||||
|
||||
include gnu::tar
|
||||
|
||||
case $ensure {
|
||||
latest: {
|
||||
exec { "tar-rmdir-${name}":
|
||||
|
@ -67,6 +69,7 @@ define util::extract::tar($source, $ensure=present, $strip=0, $preserve=false) {
|
|||
command => $command,
|
||||
require => File[$name],
|
||||
unless => "test -n \"$(ls -A ${name})\"",
|
||||
require => Package["tar"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue