Hello,

I'm using open source Scalr.  The scalarizr agent writes the chef client 
configuration file /etc/chef/client.rb, and doesn't offer much in the way 
of customization (that I'm aware of).  If the config template were updated 
to include configuration fragments in /etc/chef/client.d/ it would give the 
user more flexibility to customize the client without having to worry that 
the configuration will be overwritten.  Our specific use case is adding 
chef report & exception handlers.  This is the way the opscode chef-client 
cookbook does it (see 
https://github.com/opscode-cookbooks/chef-client#configuration-includes). 
 The pattern could also apply to chef solo (/etc/chef/solo.rb & 
/etc/chef/solo.d).

An example is shown in [COOK-2858] support "inclusion" of other Chef Config 
files in client.rb <https://tickets.opscode.com/browse/COOK-2858>

in /etc/chef/client.rb:

Dir.glob("/etc/chef/client.d/*.rb").each do |conf|
  Chef::Config.from_file(conf)
end


Would it be possible to add this feature?  I believe the change should be 
made in the scalarizr chef handler and in the scalr app at 
templates/services/role_builder/chef_import.tpl.    If it helps, I can 
submit a pull request on GitHub.

-- 
You received this message because you are subscribed to the Google Groups 
"scalr-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to