ansible-roles/couchbase/tasks/ganglia-plugin.yml

16 lines
732 B
YAML
Raw Normal View History

---
#
# The ganglia plugin comes from https://github.com/ganglia/gmond_python_modules
#
- name: Install the ganglia plugin for Couchbase. One instance per bucket
template: src=couchbase.py.j2 dest=/usr/lib/ganglia/python_modules/couchbase_{{ item }}.py owner=root group=ganglia mode=0440
with_items: '{{ couchbase_monitored_buckets }}'
notify: Restart ganglia monitor
tags: [ 'ganglia', 'couchbase' ]
- name: Distribute the ganglia (gmond) configuration for the Couchbase plugin
template: src=couchbase.pyconf.j2 dest=/etc/ganglia/conf.d/couchbase_{{ item }}.pyconf owner=root group=ganglia mode=0440
with_items: '{{ couchbase_monitored_buckets }}'
notify: Restart ganglia monitor
tags: [ 'ganglia', 'couchbase' ]