No way to specify add-on dependencies
vinyar opened this issue · comments
Cookbook version
5.2.0
Chef-client version
12.39.x
Scenario:
Just realized that version of chef-server is lockable, but not add-ons.
Looked for an easy way to pigeonhole addon version number, and didnt find an easy way.
Would something like this be acceptable?
default['chef-server']['addons'] = {"manage" => "1.2.3", "reporting" => "4.5.6"}
node['chef-server']['addons'].each do |addon, ver|
chef_ingredient addon do
accept_license node['chef-server']['accept_license'] unless node['chef-server']['accept_license'].nil?
version ver if defined?(ver)
notifies :reconfigure, "chef_ingredient[#{addon}]"
end
end
Expected Result:
Would be nice if I could control versions of addons, otherwise I have to fork the cookbook or use