
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>
35 lines
680 B
YAML
35 lines
680 B
YAML
---
|
|
#
|
|
# Tasks install EPEL packages
|
|
#
|
|
|
|
- name: Remove old EPEL
|
|
package:
|
|
name: epel-release
|
|
state: absent
|
|
become: true
|
|
|
|
# The fedoraproject CDN has problems sometimes, this will keep trying
|
|
# for up to 10 minutes before failing.
|
|
- name: Import EPEL GPG Key
|
|
rpm_key:
|
|
state: present
|
|
key: "{{ epel_rpmkey }}"
|
|
become: true
|
|
register: import_result
|
|
until: import_result is success
|
|
retries: 10
|
|
delay: 10
|
|
|
|
# Same as above but with the Centos CDN
|
|
- name: Check for EPEL repo
|
|
package:
|
|
name: "{{ epel_rpm }}"
|
|
state: present
|
|
become: true
|
|
register: install_result
|
|
until: install_result is success
|
|
retries: 10
|
|
delay: 10
|
|
notify: remove_epel
|