I am not sure that I understand how roles should be used with chef-solo. More specifically I am looking for answers to the following questions:
(i) What is the syntax for telling chef-solo to run with a certain role? I managed to use:
chef-solo --override-runlist "role["oracle"]"
but is it the "right" way to do it (I'd expect I wouldn't need to "override" anything in a standard use of a chef role)? Also, if I use this command does it also load all the attributes from the role I specify and not only the runlist?
(ii) Is there a way to have a "default" runlist referenced from solo.rb and then have some (or all) roles somehow "reference" it? I have a few recipes I need to run under all roles and environments and I rather not copy them to all of my role json files (for maintainability reasons).
(P.S. I am running chef-solo on windows, in case it somehow matters...)