Thanks Silviu, you was right, it is definitely a path problem with tar and puppet seems to ignore the path (?)
I solved it by using gunzip and tar after another (piped): $unzip = "/usr/bin/unzip" $tar = "/usr/sbin/tar" $bunzip = "/usr/bin/bunzip2" $gunzip = "/usr/bin/gunzip" $extractor = $pkg_format ? { zip => "$unzip -q -d $cwd $cwd/$filename", bzip => "$bunzip -c $cwd/$filename | $tar -xf -", default => "$gunzip < $cwd/$filename | $tar -xf -" } exec { "extract-$name": cwd => "$cwd", command => "$extractor", timeout => 120, # 2 minutes require => Exec["download-$name"], } If anybody has a need for a build module, please feel free to download it from github: http://github.com/jfqd/puppet-module-build -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.