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

Create ingredient_config resource #7

Closed
jtimberman opened this issue Jun 23, 2015 · 1 comment
Closed

Create ingredient_config resource #7

jtimberman opened this issue Jun 23, 2015 · 1 comment
Assignees

Comments

@jtimberman
Copy link
Contributor

Render configuration files, use the config property from the ingredients:

chef_ingredient "chef-server" do
  config api_fqdn: node['fqdn']
  action [:install, :reconfigure]
end

ingredient_config "chef-server" do
  notifies :reconfigure, "chef_ingredient[chef-server-core]"
end
  • Add to the product_matrix the location of the main configuration file (/etc/opscode/chef-server.rb for chef-server, etc)
  • Use a helper method that stashes the configuration in node.run_state[:product_name_config] - oc-lita style
  • Also need to create the configuration file's directory, e.g. /etc/opscode
  • Modify chef-server to use ingredient resource to replace the configuration file via template
@jtimberman
Copy link
Contributor Author

Merged #9!

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