Hi, Ok I checked it and I have to say that the problem is still there L Its ok if the file is copied every time, but it won’t be copied L It will be copied if I start the copy sequence alone, but in a role with more cookbook (cookbook role > 1 [the cookbook alone) it won’t be copied. So I didn’t understand the problem ?! Is it possible, that chef doesn’t handle the cookbooks no in a order? 1.) Copy the file 2.) Extract it 3.) Install it It looks like: 2 .)-> 3.) -> 1.) The other thing is, that I used your line subscribes :run, "cookbook_file[/tmp/VMwareTools.tar.gz]", :immediately I thought I can use it simple as it should be: execute "Unpacking the Installer File" do command "/bin/tar zxf /tmp/VMWareTools.tar.gz -C /tmp/" subscribes :run, "cookbook_file[/tmp/VMwareTools.tar.gz]", :immediately end but with these lines I got the error: /usr/lib/ruby/1.8/chef/resource.rb:293:in `subscribes': undefined method `notifies' for "cookbook_file[/tmp/VMwareTools.tar.gz]":String (NoMethodError) So I think I didn’t use it as you mentioned in the mail before ? Im sry but I didn’t know something to get rid of this issue Regards Andreas From: Haselwanter Edmund [mailto:
On 21.05.2011, at 02:02, Seth Chisamore wrote: Mac OS X doesn't have sha256sum but it does have openssl :) openssl dgst -sha256 VMwareTools.tar.gz and it has shasum -a256 VMwareTools.tar.gz
On Fri, May 20, 2011 at 7:06 PM, Joshua Timberman <
">
> wrote: Hello!
Did you create the file in the cookbook's "files/default" directory? > cookbook_file "/tmp/VMWareTools.tar.gz" do I would use the "checksum" parameter in this resource to ensure that the file is not copied every time. You will need a SHA256 checksum, and can generate that. On linux, use sha256sum:
I would have this be action :nothing with a "subscribe" meta-parameter on the cookbook_file resource. -- DI Edmund Haselwanter,
">
, http://edmund.haselwanter.com/ http://www.iteh.at | http://facebook.com/iTeh.solutions | http://at.linkedin.com/in/haselwanteredmund |
Archive powered by MHonArc 2.6.16.