-
-
Save hal58th/9351a000f74ac9375baa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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