[chef] Re: ark resource


Chronological Thread 
  • From: Matthew Moretti < >
  • To:
  • Subject: [chef] Re: ark resource
  • Date: Mon, 20 Aug 2012 15:10:26 -0400

You'll want to set some other settings as well.  My solo.rb for (Mac) workstations has the following:

#Set this to whatever you like:
chef_root = "#{Dir.tmpdir}/chef"

sandbox_path       "#{chef_root}/sandboxes"
file_cache_path    "#{chef_root}/cookbooks"
file_backup_path   "#{chef_root}/backup"
cache_options      ({ :path => "#{chef_root}/cache/checksums", :skip_expires => true })

Details of chef configuration values are here.

-Matt Moretti

On Mon, Aug 20, 2012 at 2:51 PM, Maven User < " target="_blank"> > wrote:
Hi all -

I'm starting to look at ark and liked what I saw - I'm currently working on bootstrapping developer machines with the tools we need here (starting simple with maven and java).

I _thought_ I wanted to use :puts, but for some reason, chef keeps trying to write into /var/chef (which I don't want it to - everything for a dev machine needs to stay within the user's home dir for this experiment).

I'm generating the "solo.rb" on the fly like this:

file_cache_path "/home/$USER/.chef/cache"
cookbook_path "/home/$USER/chef-repo/cookbooks"

What am I missing?  Here is the error:

[2012-08-20T14:36:09-04:00] ERROR: remote_file[/home/<user>/.chef/cache/maven.tar.gz] (dynamically defined) has had an error
[2012-08-20T14:36:09-04:00] ERROR: ark[maven] (maven::default line 11) has had an error
[2012-08-20T14:36:09-04:00] ERROR: ark[maven] (/home/<user>/chef-repo/cookbooks/maven/recipes/default.rb:11:in `from_file') had an error:
ark[maven] (maven::default line 11) had an error: Errno::EACCES: remote_file[/home/<user>/.chef/cache/maven.tar.gz] (dynamically defined) had an error: Errno::EACCES: Permission denied - /var/chef

I can see that the maven gzip has come down properly, but I don't understand why anything is looking at /var/chef for any reason....




  • [chef] ark resource, Maven User, 08/20/2012
    • [chef] Re: ark resource, Matthew Moretti, 08/20/2012

Archive powered by MHonArc 2.6.16.

§