On Thursday, June 6, 2013 at 6:48 AM, Vladimir Skubriev wrote:
I installed depends for this cookbook http://community.opscode.com/cookbooks/dhcp
And succefully upload it to the server
When I run chef-client on client. I got an error:
Recipe Compile Error in /var/chef/cache/cookbooks/dhcp/libraries/failover.rb
================================================================================
NameError
---------
uninitialized constant Chef::DSL
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/dhcp/libraries/failover.rb:8:in `singletonclass'
/var/chef/cache/cookbooks/dhcp/libraries/failover.rb:4:in `<module:Failover>'
/var/chef/cache/cookbooks/dhcp/libraries/failover.rb:3:in `<module:DHCP>'
/var/chef/cache/cookbooks/dhcp/libraries/failover.rb:2:in `<top (required)>'
Relevant File Content:
----------------------
/var/chef/cache/cookbooks/dhcp/libraries/failover.rb:
1:
2: module DHCP
3: module Failover
4: class << self
5: if Chef::Version.new(Chef::VERSION) <= Chef::Version.new( "10.16.2" )
6: include Chef::Mixin::Language
7: else
8>> include Chef::DSL::DataQuery
9: end
Archive powered by MHonArc 2.6.16.