Ark resource


#1

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//.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//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//.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…


#2

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
herehttp://wiki.opscode.com/display/chef/Chef+Configuration+Settings
.

-Matt Moretti

On Mon, Aug 20, 2012 at 2:51 PM, Maven User maven.2.user@gmail.com 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//.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//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//.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…