PSA: Running chef-client with override-runlist won’t use role attributes

Spent a few hours trying to figure this one out. If you are running chef-client with -o (override-runlist) it won't pick up attributes defined in a role. E.g.

sudo chef-client -o some_cookbook::some_recipe

Finally stumbled across a comment to this question on Stack Overflow where someone else must have been banging thier head against the wall trying to figure out why their recipe wasn't working as expected.

Just for a reference here is a link to the docs which don't mention anything about it.


You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

You must be logged in to post a comment.