Open rberger opened 9 years ago
You can use the job_config_template_name and job_config_cookbook_name attributes to override the template used to use the one in your wrapper cookbook.
How would I use the prometheus_job LWRP in that case? I can't call the LWRP without include_recipe "prometheus"
which will have already generated the prometheus.yaml
As long as your wrapper cookbook depends
on the prometheus cookbook in the metadata.rb (which it needs to anyway), you should be able to use the LWRP before you include the recipe I think.
Since the default recipe runs the template command and accumulator among other things, there is no way to include_recipe "prometheus" in a wrapper cookbook that wants to override attributes or do the work of figuring out what prometheus jobs should be set up.
Am I missing something?