Thanks for the info and the link Daniel. We still want to try using custom attributes in the wrapper cookbook instead of a role. One of the big pluses for us putting custom attributes in the wrapper cookbook is we can write code to set the attributes. Searching around, I found there may be a couple of ways we can get away with reloading the attributes of the community cookbook once we load the attributes in our wrapper cookbook: 1. The submitter for https://tickets.opscode.com/browse/CHEF-4234 placed 'node.from_file(run_context.resolve_attribute(*parse_attribute_file_spec("elasticsearch")))' at the end of their wrapper attributes file and that apparently worked. I have not been able to get it working though. 2. Use the following ruby block in a recipe that is part of the run_list to reload attributes: ruby_block 'reload_attribs' do block do node.from_file(run_context.resolve_attribute("elasticsearch", "default")) end action :create end No luck with option 2 either. Should the above allow the community attributes to get assigned the interpolated value from an override attribute in our wrapper? Thanks! -Chris On Nov 20, 2013, at 11:02 AM, Daniel DeLeo <
">
> wrote:
|
Archive powered by MHonArc 2.6.16.