[chef] Re: Re: Re: Re: Re: Re: newb question about bootstrap client (with knife bootstrap) [sidetrack]


Chronological Thread 
  • From: Jesse Callaway < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Re: Re: newb question about bootstrap client (with knife bootstrap) [sidetrack]
  • Date: Thu, 2 Dec 2010 12:13:13 -0500


On Dec 2, 2010, at 11:56 AM, Daniel DeLeo wrote:

On Tue, Nov 30, 2010 at 7:18 PM, Jesse Callaway < > wrote:
I figured out a workaround. Looking in the rdocs for chef I found a name()
method in the Node class. So the template now has


node_name          "<%= node.name() %>"

So this allows nodes which are not registered by their fqdn to have the
chef::client_service recipe in their run list.

What was wrong with the syntax of node[:name]? I'm still learning!

The node name isn't an attribute the way that attributes set by ohai
or your recipes are, so you can't access it in the same way.


Word. Thanks. That makes sense.


-jesse



Dan DeLeo




Archive powered by MHonArc 2.6.16.

§