[chef] RE: Re: Chef-solo override-runlist


Chronological Thread 
  • From: "Gibbons, Daniel (RBI-UK)" < >
  • To: " " < >
  • Cc: " " < >
  • Subject: [chef] RE: Re: Chef-solo override-runlist
  • Date: Tue, 4 Jun 2013 16:40:30 +0000
  • Accept-language: en-GB, en-US

Hi,

 

That was the way I was doing it first of all but I now need to pass in parameters that can be different for each environment which in this case is an app software location, so I wanted to do something like:

 

UpdateWebServer.bat

chef-solo -c solo.rb -o "role[webserver]" –j productionSettings.json

 

UpdateMarkLogic.bat

chef-solo -c solo.rb -o "role[marklogic]" –j productionSettings.json

 

Thanks

 

Dan

 

 

 

From: Jonathan Mickle [mailto:
Sent: 04 June 2013 17:28
To:
Subject: [chef] Re: Chef-solo override-runlist

 

Hi Dan,

 

I think you want to use -j specifying a JSON file that would include attributed to override in the current "runlist" check out this following link: http://wiki.opscode.com/plugins/viewsource/viewpagesrc.action?pageId=13173227

 

 

 

 

On Tue, Jun 4, 2013 at 9:20 AM, Gibbons, Daniel (RBI-UK) < " target="_blank"> > wrote:

Hi,

I'm trying to pass an override list into chef-solo but I can't seem to make it accept a role for example this works:

chef-solo -c solo.rb -o "webserver"
Results in:

[2013-06-04T17:15:48+01:00] WARN: Original Run List: [role[marklogic]]
[2013-06-04T17:15:48+01:00] WARN: Overridden Run List: [recipe[webserver]]

But something like:

chef-solo -c solo.rb -o "role[base]"
results in:

[2013-06-04T17:18:27+01:00] WARN: Original Run List: [role[marklogic]]
[2013-06-04T17:18:27+01:00] WARN: Overridden Run List: [recipe[roles]]

Any ideas how I can pass in a role to the override list in chef-solo?

Thanks

Dan

===================== DISCLAIMER ======================
This message is intended only for the use of the person(s)
("Intended Recipient") to whom it is addressed. It may contain
information which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Limited.
Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK.
Registered in England under Company No. 151537

=======================================================

 




Archive powered by MHonArc 2.6.16.

§