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.
From: Jake Vanderdray [mailto:firstname.lastname@example.org]
Sent: Wednesday, November 30, 2011 11:04 AM
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?
On Tue, Nov 29, 2011 at 5:01 PM, Van Fossan,Randy email@example.com 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).