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

March 27th, 2015 duckworth Posted in Chef, Code, Ruby No Comments »

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.

AddThis Social Bookmark Button