2ba39b30ab
This commit does several things at once: - Use ansible_distribution_major_version to detect which version of the EPEL repository. So we dont have to hard code the URL for either epel7 or epel 8. - Remove "stein" workaround for colelctd-openstack role. The "stein" workaround has been removed in favor of running the collectd daemon in a podman container. - Drop opendaylight support for collectd since it is no longer suupported. - Add the collectd playbook so we can run collectd in a centos 7 container going forward for "train". This commit still needs to be tested on "stein" but it will probably work anyways. - Add browbeat-containers to tox.ini for flake8 - Simplify detection of docker or podman for older versions of OSP. (sai) - Fixed typo from compute_compute to collectd_compute that caused failures on computes - clear graphite_host in install/group_vars/all.yml - Move container DockerFiles into brwobeat tree - Conditionally copy required Dockerfiles to node instead of git clone - Fix up some log file paths - Use Docker/Podman depending on release - Provide single interface(collectd.yml) which has container and baremetal playbooks - Introduce variable collectd_container in install/group_vars/all - remove unneeded selinux rebaelling (already running as priveleged) when running container - remove unneed hostfs mount - collectd container logs to file instead of STDOUT for easier debug - add collectd-ping package to collectd-openstack Dockerfile - Improve docs to reflect changes - dynamically set rabbitmq and swift paths as well for tail plugin Co-Authored-By: Sai Sindhur Malleni <smalleni@redhat.com> Change-Id: I627a696f6f1240d96a0e1d85c26d59bbbfae2b1b Signed-off-by: Charles Short <chucks@redhat.com> Signed-off-by: Sai Sindhur Malleni <smalleni@redhat.com>
42 lines
942 B
YAML
42 lines
942 B
YAML
---
|
|
#
|
|
# Generic Playbook to install collectd on generic machine types, use tags to separate machine type:
|
|
#
|
|
# Examples:
|
|
#
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="baremetal"
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="guest"
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="graphite"
|
|
# ansible-playbook -i hosts install/collectd-generic.yml --tags="baremetal,guest"
|
|
#
|
|
|
|
- hosts: baremetal
|
|
remote_user: root
|
|
vars:
|
|
config_type: baremetal
|
|
roles:
|
|
- {role: epel }
|
|
- collectd-generic
|
|
tags: baremetal
|
|
environment: "{{proxy_env}}"
|
|
|
|
- hosts: guest
|
|
remote_user: root
|
|
vars:
|
|
config_type: guest
|
|
roles:
|
|
- {role: epel }
|
|
- collectd-generic
|
|
tags: guest
|
|
environment: "{{proxy_env}}"
|
|
|
|
- hosts: graphite
|
|
remote_user: root
|
|
vars:
|
|
config_type: graphite
|
|
roles:
|
|
- {role: epel }
|
|
- collectd-generic
|
|
tags: graphite
|
|
environment: "{{proxy_env}}"
|