[chef] Re: Chef-solo override-runlist


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Chef-solo override-runlist
  • Date: Tue, 4 Jun 2013 09:45:18 -0700


On Tuesday, June 4, 2013 at 9:20 AM, Gibbons, Daniel (RBI-UK) 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
This looks like a legit bug, but I cannot reproduce it easily. 

```
chef-solo -o "role[foo]"
Starting Chef Client, version 11.4.2
[2013-06-04T09:37:26-07:00] WARN: Run List override has been provided.
[2013-06-04T09:37:26-07:00] WARN: Original Run List: []
[2013-06-04T09:37:26-07:00] WARN: Overridden Run List: [role[foo]]
[2013-06-04T09:37:26-07:00] ERROR: Role foo (included by 'top level') is in the runlist but does not exist. Skipping expand.

================================================================================
Error expanding the run_list:
================================================================================


Missing Role(s) in Run List:
----------------------------
* foo included by 'top level'


Original Run List
-----------------
* role[foo]
```

What version of Chef do you have? Can you run with -ldebug and provide relevant output?


-- 
Daniel DeLeo




Archive powered by MHonArc 2.6.16.

§