Hi all,

I actually downloaded Jboss-as-7.1.1.final.tar.gz file from net and stored 
it in a directory..through LINUX. Now using the local machines IP with 
which am working, 
i wrote manifest for the following things to happen:
1)Downloading the same tar file to another directory.
2)Changing its permission.
3)copying it to another directory and untarring it there.  This is the 
manifest that i wrote:

$software = "/app/tcs/puppetdemo/software"
$server = "/app/tcs/puppetdemo/server"
$URL = "http://192.168.24.171:8080/softwares/jboss-as-7.1.1.Final.tar.gz";

exec{"/usr/bin/wget $URL":
cwd =>"$software",
}

exec{"/bin/chmod -R 0775 /app/tcs/puppetdemo/software/":
}

exec {"/bin/tar -C /app/tcs/puppetdemo/server/ -zxf 
/app/tcs/puppetdemo/software/jboss-as-7.1.1.Final.tar.gz":
}

But here the untaring exec command i.e.,the 3rd exec is executing first and 
throwing an error..as that particular tar file is not there for untaring 
and then the first exec that is downloading the tar file is happening. I 
want all the steps to happen in an order i.e., Downloading>>Changing 
permission>>copying>>untarring.

Can any body please help me with this.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to