start of collectd graphite testing

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2015-06-05 08:55:14 +00:00
parent 2f3e86b3f9
commit 37a27645fc
3 changed files with 28 additions and 1 deletions

View file

@ -10,6 +10,7 @@ vmhost: virthost10.phx2.fedoraproject.org
datacenter: phx2
# There's only this server in stg, so it does certs.
master_fas_node: True
gen_cert: True
collectd_graphite: True

View file

@ -0,0 +1,16 @@
LoadPlugin "write_graphite"
<Plugin "write_graphite">
<Node "laptop">
Host "graphite.cloud.fedoraproject.org"
Port "2003"
Prefix "collectd."
#Postfix ""
#Protocol "udp"
#LogSendErrors false
EscapeCharacter "_"
SeparateInstances true
StoreRates false
AlwaysAppendDS false
</Node>
</Plugin>

View file

@ -56,6 +56,16 @@
- restart collectd
when: collectd_apache is defined
- name: /etc/collectd/graphite.conf
copy: src=graphite.conf dest=/etc/collectd.d/graphite.conf
tags:
- collectd
- graphite
- graphite-collectd
notify:
- restart collectd
when: collectd_graphite is defined and ansible_distribution_major_version != '6'
- name: Install libsemanage-python so we can set an sebool below
yum: name=libsemanage-python state=present
tags: