This ansible role installs a Prometheus Apache Exporter in a debian environment. It has been tested for the following Debian versions:
- Stretch
- Buster
- Bullseye
This role has been generated using the cookiecutter tool, you can generate a similar role that fits your needs using the this cookiecutter template.
These instructions will get you a copy of the role for your ansible playbook. Once launched, it will install an Prometheus Apache Exporter server in a Debian system.
Ansible 5.2.0 version installed.
Molecule 3.5.x version installed.
For testing purposes, Molecule with Docker as driver and Goss as verifier.
Create or add to your roles dependency file (e.g requirements.yml):
- src: idealista.prometheus_apache_exporter_role
version: 2.1.0
name: apache_exporter
Install the role with ansible-galaxy command:
ansible-galaxy install -p roles -r requirements.yml -f
Use in a playbook:
---
- hosts: someserver
roles:
- role: apache_exporter
Look to the defaults properties file to see the possible configuration properties. To work properly apache module mod_status
should be enabled and configure.
$ pipenv sync
For more information read the pipenv docs.
$ pipenv run molecule test
Note: if you want to add colorized output (as previous versions of molecule), you must set these environment variables:
## Built With
![Ansible](https://img.shields.io/badge/ansible-5.2.0-green.svg)
![Molecule](https://img.shields.io/badge/molecule-3.5.2-green.svg)
![Goss](https://img.shields.io/badge/goss-0.3.16-green.svg)
## Versioning
For the versions available, see the [tags on this repository](https://github.com/idealista/prometheus_apache_exporter_role/tags).
Additionaly you can see what change in each version in the [CHANGELOG.md](CHANGELOG.md) file.
## Authors
* **Idealista** - *Work with* - [idealista](https://github.com/idealista)
See also the list of [contributors](https://github.com/idealista/prometheus_redis_exporter-role/contributors) who participated in this project.
## License
![Apache 2.0 Licence](https://img.shields.io/hexpm/l/plug.svg)
This project is licensed under the [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) license - see the [LICENSE.txt](LICENSE.txt) file for details.
## Contributing
Please read [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.