hectcastro / chef-collectd

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

Cookbook attempts to download sources even when package is installed #50

Open jgoldschrafe opened 9 years ago

jgoldschrafe commented 9 years ago

The cookbook attempts to download the collectd source even when the package is installed and the sources will not be built. This should be fixed by duplicating the guard clause from the resource that builds the sources onto the remote_file resource:

  not_if "#{node["collectd"]["dir"]}/sbin/collectd -h 2>&1 | grep #{node["collectd"]["version"]}"
hectcastro commented 9 years ago

Hey @jgoldschrafe, would you mind submitting that as a pull request? If so, I'll try to review it over the weekend.