Skip to content

Commit

Permalink
Merge pull request #7 from tokyowizard/change-default-packages
Browse files Browse the repository at this point in the history
Move list of plugins to defaults. + Add instructions on how-to specify plugins in README.md
  • Loading branch information
MiLk authored Aug 1, 2016
2 parents 1b6d37b + 0e2e5f6 commit 701d889
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 32 deletions.
48 changes: 48 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
24 changes: 24 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
32 changes: 0 additions & 32 deletions vars/main.yml

This file was deleted.

0 comments on commit 701d889

Please sign in to comment.