Move collectd to a role instead of a task.

This commit is contained in:
Kevin Fenzi 2014-02-18 00:46:12 +00:00
parent dc701de264
commit cd5b9dd331
27 changed files with 11 additions and 11 deletions

View file

@ -1,63 +0,0 @@
---
# collectd client setup
# install pkg
- name: install collectd
yum: name=collectd state=installed
# enable collectd
- name: enable collectd svc
service: state=running enabled=true name=collectd
# install collected.conf
- name: /etc/collectd.conf
template: src="{{ files }}/collectd/collectd.conf.j2" dest=/etc/collectd.conf
notify:
- restart collectd
# install collectd-network config
- name: /etc/collectd.d/network.conf
copy: src="{{ files }}/collectd/network-client.conf" dest=/etc/collectd.d/network.conf
notify:
- restart collectd
# apache - localhost only - pretty much any apache server
- name: install collectd-apache
yum: state=installed name=collectd-apache
notify:
- restart collectd
when: collectd_apache is defined
- name: /etc/collectd/apache.conf
copy: src="{{ files }}/collectd/apache.conf" dest=/etc/collectd.d/apache.conf
notify:
- restart collectd
when: collectd_apache is defined
# each of the below should move to a separate task list
# since they are odd-balls and one-offs
# bind - localhost only - ns servers only
# fedmsg - busgateway## only
# add /usr/share/collectd/fedmsg-types.db
# memcached - memcached only
# postgres - this is a conn check
## add /usr/share/collectd/pgconn-types.db
# openvpn - for bastion/openvpn gateways only
# mysql
## collectd-mysql
# haproxy
## add /usr/share/collectd/haproxy-types.db
## add socat pkg
##
# webproxy