Displaying 1 result from an estimated 1 matches for "remote_tar".
Did you mean:
  remote_tag
  
2007 Jan 25
4
Conditional exec
I am trying to write a definition that downloads and extracts a tar
file if the destination directory does not exist.  The tar file won''t
change and does not need to be download and extracted if it changes.
The definition I am using now is:
define remote_tar($source, $directory) {
    remotefile { "/tmp/$name.tgz":
        source => $source,
    }
    exec { "tar-$name":
        command => "tar -xzf /tmp/$name.tgz",
        directory => $directory,
        creates => "$directory/$name",
        requir...