diff --git a/README.md b/README.md index 3988202..f8c6bec 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,54 @@ collectd_df_ValuesAbsolute: true collectd_df_ValuesPercentage: false ``` +### Install plugins + +To indicate the plugins that you would like installed, list all the plugins in the `packages` variable in +your `group_vars` folder. + +For example, below installs only the `collect-rrdtools`, `collectd-rrdtool` and `collectd-iptables` plugins. + +``` +packages: + - collectd-rrdcached + - collectd-rrdtool + - collectd-iptables +``` + +If you do not set `packages`, the following default packages that will be installed. + +``` + - git + - collectd + - collectd-amqp + - collectd-apache + - collectd-bind + - collectd-curl + - collectd-curl_json + - collectd-curl_xml + - collectd-dbi + - collectd-dns + - collectd-generic-jmx + - collectd-iptables + - collectd-ipvs + - collectd-java + - collectd-lvm + - collectd-mysql + - collectd-netlink + - collectd-notify_desktop + - collectd-postgresql + - collectd-rrdcached + - collectd-rrdtool + - collectd-sensors + - collectd-snmp + - collectd-write_riemann +``` + +The following command will list the possible packages that can be installed: + + - CentOS 6: `sudo yum --enablerepo="epel,gf-plus" list available | grep collectd-` + - CentOS 7: `sudo yum --enablerepo="epel" list available | grep collectd-` + ### Roles addition diff --git a/defaults/main.yml b/defaults/main.yml index 4f75fbd..6916858 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -3,3 +3,27 @@ collectd_forward_to_logstash: false use_librato: false use_graphite: false + +packages: + - git + - collectd + - collectd-amqp + - collectd-apache + - collectd-bind + - collectd-curl + - collectd-curl_json + - collectd-curl_xml + - collectd-dbi + - collectd-generic-jmx + - collectd-iptables + - collectd-ipvs + - collectd-java + - collectd-lvm + - collectd-mysql + - collectd-netlink + - collectd-notify_desktop + - collectd-postgresql + - collectd-rrdcached + - collectd-rrdtool + - collectd-snmp + - collectd-write_riemann diff --git a/vars/main.yml b/vars/main.yml deleted file mode 100644 index b1a3df5..0000000 --- a/vars/main.yml +++ /dev/null @@ -1,32 +0,0 @@ -packages: - - git - - collectd - - collectd-amqp - - collectd-apache -# - collectd-ascent - - collectd-bind - - collectd-curl - - collectd-curl_json - - collectd-curl_xml - - collectd-dbi - - collectd-dns - - collectd-email - - collectd-generic-jmx - - collectd-ipmi - - collectd-iptables - - collectd-ipvs - - collectd-java - - collectd-lvm - - collectd-mysql - - collectd-netlink - - collectd-nginx - - collectd-notify_desktop - - collectd-notify_email - - collectd-ping - - collectd-postgresql - - collectd-rrdcached - - collectd-rrdtool - - collectd-sensors - - collectd-snmp - - collectd-virt - - collectd-write_riemann