[chef] Re: RE: Re: Pass an attrribute in the knife bootstrap command


Chronological Thread 
  • From: Chris Walters < >
  • To:
  • Subject: [chef] Re: RE: Re: Pass an attrribute in the knife bootstrap command
  • Date: Mon, 5 Dec 2011 15:14:09 -0800

My 2 cents: I would also like to be able to set tags for a node via knife bootstrap.

-chris

On Mon, Dec 5, 2011 at 1:51 PM, Van Fossan,Randy < "> > wrote:
Jake,

Yes, that would work and was my fallback plan.   I was just trying to be more efficient.  Also, since the last recipe removes the role from the runlist, I will now have to deal with 2 roles.

Thanks
 Randy

-----Original Message-----
From: Jake Vanderdray [mailto: "> ]
Sent: Wednesday, November 30, 2011 11:04 AM
To: ">
Subject: [chef] Re: Pass an attrribute in the knife bootstrap command

Create a new role that overrides the attribute and includes the normal role in it's runlist.  Then assign your master node that role instead of the other.  Would that work for you?

Jake.

On Tue, Nov 29, 2011 at 5:01 PM, Van Fossan,Randy < "> > wrote:
> Is there a way to pass an attribute in the knife bootstrap command?
>
> For example, I have a role that has a recipe to partition and format
> disks differently on the master node as opposed to the data nodes.  
> The recipe has a default attribute set for a data node.
>
> I would like to override that default attribute with the knife
> bootstrap command (which also installs ruby, the chef-client and
> configures the client).
>
> Any ideas?
>
> Randy
>
>
>






Archive powered by MHonArc 2.6.16.

§