hectcastro / chef-collectd

A Chef cookbook to install collectd.
Apache License 2.0
23 stars 65 forks source link

Switch to use "use_inline_resources" in providers #38

Closed ernoaapa closed 9 years ago

ernoaapa commented 9 years ago

Previously Chef notified every time that "plugin" resource were created because providers were calling new_resource.updated_by_last_action(true) every time.

This caused all Chef reports to contain "created" info even tho it wasnt created. Switched to use "use_inline_resources" to notify only when template really change or get removed. NOTE: this break support for old Chef (<11.0).

hectcastro commented 9 years ago

Looks good. I'm OK with dropping support for Chef < 11.

Thanks again, @ernoaapa!

obazoud commented 9 years ago

I am using recipe::packages with collectd_plugin, collectd does not restart when template changed. Any workaround ?