Hey Peter,
It looks like we are shaving the similar yaks 
your method of installing glassfish looks almost exactly the same as my
java_ark lwrp. The only exception is that you have a different way to
avoid downloading the tarball each time.
java_ark “glassfish” do
url "path"
checksum "…sha256sum…"
app_home "/usr/local/glassfish/default"
owner "glassfish"
end
I am not sure any more whether I really need to provide the checksum after
all. also, app_home could probably be changed to prefix_dir
and provided
the value /usr/local/ rather than /usr/local/glassfish/default
java_ark handles unpacking .zip, .tar.gz, and .tar.bz2
Your lwrps for glassfish look remarkably like what I am trying to do w/ the
tomcat and jboss cookbooks.
It would be great if we could chat on IRC or skype (berrdawg) about the
challenges of creating java-related, esp. consistent system v init scripts
for both debian and EL (rhel) and how to install multiple instances
containers on the same system.
hope to hear from you soon!
BryanWB
On Mon, Feb 13, 2012 at 10:52 PM, Peter Donald peter@realityforge.orgwrote:
Hi,
On Tue, Feb 14, 2012 at 7:38 AM, Bryan Berry bryan.berry@gmail.comwrote:
from what I can tell remote_file only supports pulling from a url or the
files/ subdirectory of your cookbook. Where do you get app.war from in the
first place?
btw, if you are working on a java stack these java-related cookbooks may
be useful to you https://github.com/bryanwb/cookbooks/tree/master/java
https://github.com/bryanwb/cookbooks/tree/master/tomcat (alpha)
And if you are using GlassFish v3 checkout
https://github.com/realityforge/chef-glassfish
and for bonita (a java BPMN server)
https://github.com/realityforge/chef-bonita
–
Cheers,
Peter Donald