Skip to content

Instantly share code, notes, and snippets.

@hal58th
Created February 26, 2015 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hal58th/9351a000f74ac9375baa to your computer and use it in GitHub Desktop.
Save hal58th/9351a000f74ac9375baa to your computer and use it in GitHub Desktop.
collectd_build:
cmd.run:
- unless: /usr/sbin/collectd
{% if config.packageurl %} {# Is this needed? #}
- name: sleep 30s; curl {{ config.packageurl }} | tar zx -C /tmp ; cd /tmp/collectd-5.4.0/; ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --mandir=/usr/share/man && sleep 10s && make && sleep 10s && make install && cp contrib/redhat/init.d-collectd /etc/init.d/collectd && chmod +x /etc/init.d/collectd
- require:
- pkg: collectd.dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment