This will be set to False for production deployments.
Signed-off-by: Zack Cerza <zack@redhat.com>
containerized_deployment: false
cluster: ceph
use_epel: false
+devel_mode: true
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
package:
name: collectd
state: latest
+ when:
+ - devel_mode
notify: Restart collectd
- name: Install collectd-python
package:
name: collectd-python
state: latest
- when: ansible_pkg_mgr == "yum" and not use_epel
+ when:
+ - ansible_pkg_mgr == "yum"
+ - devel_mode
+ - not use_epel
+ notify: Restart collectd
+
+- name: Install cephmetrics-collectors
+ package:
+ name: cephmetrics-collectors
+ state: latest
+ when:
+ - ansible_pkg_mgr == "yum"
+ - not devel_mode
notify: Restart collectd
- name: Install dependencies for collector plugins
- python-rados
# For the ceph_daemon python module
- ceph-common
+ when:
+ - ansible_pkg_mgr == "yum"
+ - devel_mode
+ notify: Restart collectd
- include: install_collectd_plugins.yml
when:
- not containerized_deployment
+ - devel_mode
tags:
- collectors
yum:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: "{{ 'present' if use_epel else 'absent' }}"
- when: ansible_pkg_mgr == "yum"
+ when:
+ - devel_mode
+ - ansible_pkg_mgr == "yum"
- name: Install chacra repo
copy: