realityforge/chef-collectd — pull request #3 by viralshah (2012-10-17 23:53:36+00:00)
Title: ensure that config files don't change from one chef-run to the next

collectd is restarted everytime the config files change.
In Ruby versions < 1.9.2 the key, value pairs in the config hash will
appear in arbirary order (between chef-client runs). Thus the config
files will 'change' even though the content of the config hasn't changed.
This means that collectd restarts at pretty much *every* chef-client
run.
In order to avoid this, we sort the keys before we write the config
files. This ensures that the files won't change between runs.