cloudalchemy / ansible-node-exporter

Provision basic metrics exporter for prometheus monitoring tool
MIT License
500 stars 272 forks source link

Support for other RHEL-like packages #260

Closed sjpb closed 1 year ago

sjpb commented 2 years ago

What is missing? Support for RHEL clones

Why do we need it? CentOS 8 is EoL, lots of people will be using clones such as Rocky/Alma/Oracle.

Environment

Anything else we need to know?:

Currently there's two PRS:

I wonder if the proposed changes would be better fixed by using ansible_os_family instead of ansible_distribution:

 when:
    - (ansible_os_family | lower == "redhat")

at https://github.com/cloudalchemy/ansible-node-exporter/blob/master/tasks/selinux.yml#L12

With ansible 2.11 at least, Rocky 8.5 has:

"{{ ansible_distribution }} {{ ansible_distribution_major_version }} {{ ansible_os_family }}"
Rocky 8 RedHat
SuperQ commented 1 year ago

This role has been deprecated in favor of a the prometheus-community/ansible collection.