From: Boris Ranto Date: Tue, 20 Jun 2017 22:52:57 +0000 (+0200) Subject: Move collectd module path to avoid conflicts X-Git-Tag: v1.0~67^2^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e4f31a28f9205bcfb637c6f7c6f13240c0517d34;p=cephmetrics.git Move collectd module path to avoid conflicts Signed-off-by: Boris Ranto --- diff --git a/ansible/roles/ceph-collectd/tasks/configure_collectd.yml b/ansible/roles/ceph-collectd/tasks/configure_collectd.yml index ea78afd..711e502 100644 --- a/ansible/roles/ceph-collectd/tasks/configure_collectd.yml +++ b/ansible/roles/ceph-collectd/tasks/configure_collectd.yml @@ -24,11 +24,3 @@ regexp: 'ClusterName ".*"' replace: 'ClusterName "{{ cluster }}"' notify: Restart collectd - -- name: Set plugin path in cephmetrics.conf - replace: - dest: /etc/collectd.d/cephmetrics.conf - regexp: 'ModulePath ".*"' - replace: 'ModulePath "/usr/lib64/collectd/cephmetrics"' - when: not devel_mode - notify: Restart collectd diff --git a/ansible/roles/ceph-collectd/tasks/install_collectd_plugins.yml b/ansible/roles/ceph-collectd/tasks/install_collectd_plugins.yml index 0b0de15..5cf05e5 100644 --- a/ansible/roles/ceph-collectd/tasks/install_collectd_plugins.yml +++ b/ansible/roles/ceph-collectd/tasks/install_collectd_plugins.yml @@ -1,20 +1,20 @@ --- - set_fact: - collectors_dir: /usr/lib64/collectd/python-plugins/collectors + collectd_dir: /usr/lib64/collectd/cephmetrics - name: Create collectors directory file: - name: "{{ collectors_dir }}" + name: "{{ collectd_dir }}/collectors" state: directory - name: Ship collector plugins copy: src: files/collectors/ - dest: "{{ collectors_dir }}" + dest: "{{ collectd_dir }}/collectors" notify: Restart collectd - name: Ship cephmetrics.py copy: src: files/cephmetrics.py - dest: /usr/lib64/collectd/python-plugins/ + dest: "{{ collectd_dir }}" notify: Restart collectd diff --git a/etc/collectd.d/cephmetrics.conf b/etc/collectd.d/cephmetrics.conf index d671c0a..b669f2d 100644 --- a/etc/collectd.d/cephmetrics.conf +++ b/etc/collectd.d/cephmetrics.conf @@ -1,7 +1,7 @@ LoadPlugin "python" - ModulePath "/usr/lib64/collectd/python-plugins" + ModulePath "/usr/lib64/collectd/cephmetrics" Import "cephmetrics"