We can already override Cookbook Attributes in a Role or Node Object. What about Recipes? Can we use resources (LWRP) provided in a Cookbook without having to use a Cookbook Wrapper?
For instance, I'd like to install Jenkins with some plugins. The Jenkins cookbook shows that there's an attribute that can be used
node['jenkins']['server']['plugins']
It is however limited in only allowing plugin name and version. There is also a Resource documented in the Cookbook that seems to do what I want. Eg:
jenkins_plugin 'custom_plugin' do
action :install
version '0.3'
url 'http://myrepo/jenkins/plugins/0.3/custom_plugin.hpi'
end
Do I need to create a whole Wrapper Cookbook and put this code in the /recipes/default.rb just to add this functionality to a Role or Node? This seems to be overkill.