I’m fairly new to chef and chef solo. Trying to run a recipe I get an
error like:
[Sun, 28 Apr 2013 19:33:57 -0700] INFO: Starting Chef Solo Run
/usr/lib/ruby/1.8/chef/node/attribute.rb:387:in `method_missing’:
Attribute node is not defined! (ArgumentError)
I assumed that chef::node was defined with a line in /etc/chef/solo.rb -
is this not the correct place
to do so?
mjb.
Are you trying to work with node (vs. chef::node)?
On Apr 28, 2013 10:53 PM, "Mark J Bradakis" mark@bradakis.com wrote:
I'm fairly new to chef and chef solo. Trying to run a recipe I get an
error like:
[Sun, 28 Apr 2013 19:33:57 -0700] INFO: Starting Chef Solo Run
/usr/lib/ruby/1.8/chef/node/**attribute.rb:387:in `method_missing':
Attribute node is not defined! (ArgumentError)
I assumed that chef::node was defined with a line in /etc/chef/solo.rb -
is this not the correct place
to do so?
mjb.
Peter Norton wrote:
Are you trying to work with node (vs. chef::node)?
I'm not sure, being new to this. An example line that triggers the
error is like this
one from cookbooks/rabbitmq/attributes/default.rb:
default[:rabbitmq][:nodename] = node[:hostname]
mjb the confused.
Does your node have a hostname?
(i.e. does $(ohai hostname) yield what you'd expect)
Check /etc/hosts, /etc/hostname, /etc/resolv.conf and anything else
you've configured for libnss.
cheers,
aj
On 29 April 2013 16:56, Mark J Bradakis mark@bradakis.com wrote:
Peter Norton wrote:
Are you trying to work with node (vs. chef::node)?
I'm not sure, being new to this. An example line that triggers the error is
like this
one from cookbooks/rabbitmq/attributes/default.rb:
default[:rabbitmq][:nodename] = node[:hostname]
mjb the confused.