Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems creating a wrapper cookbook around chef-prometheus #40

Open
rberger opened this issue Aug 8, 2015 · 3 comments
Open

Problems creating a wrapper cookbook around chef-prometheus #40

rberger opened this issue Aug 8, 2015 · 3 comments

Comments

@rberger
Copy link
Contributor

rberger commented Aug 8, 2015

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?

@Magrath
Copy link
Contributor

Magrath commented Aug 9, 2015

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.

@rberger
Copy link
Contributor Author

rberger commented Aug 9, 2015

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

@Magrath
Copy link
Contributor

Magrath commented Aug 10, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants