Created
July 17, 2013 08:55
-
-
Save rantav/6018948 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================================================ | |
Recipe Compile Error in /var/chef/cache/cookbooks/chef-client/recipes/default.rb | |
================================================================================ | |
Chef::Exceptions::ImmutableAttributeModification | |
------------------------------------------------ | |
Node attributes are read-only when you do not specify which precedence level to set. To set an attribute use code like `node.default["key"] = "value"' | |
Cookbook Trace: | |
--------------- | |
/var/chef/cache/cookbooks/chef-client/recipes/service.rb:56:in `from_file' | |
/var/chef/cache/cookbooks/chef-client/recipes/default.rb:20:in `from_file' | |
Relevant File Content: | |
---------------------- | |
/var/chef/cache/cookbooks/chef-client/recipes/service.rb: | |
49: elsif (chef_in_path=%x{#{which} chef-client}.chomp) && ::File.send(existence_check, chef_in_path) | |
50: client_bin = chef_in_path | |
51: Chef::Log.debug "Using chef-client bin from system path: #{client_bin}" | |
52: else | |
53: raise "Could not locate the chef-client bin in any known path. Please set the proper path by overriding node['chef_client']['bin'] in a role." | |
54: end | |
55: | |
56>> node["chef_client"]["bin"] = client_bin | |
57: | |
58: | |
59: %w{run_path cache_path backup_path log_dir}.each do |key| | |
60: directory node["chef_client"][key] do | |
61: recursive true | |
62: # Work-around for CHEF-2633 | |
63: unless node["platform"] == "windows" | |
64: owner "root" | |
65: group root_group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment