nephelaiio.heartbeat
nephelaiio.heartbeat
This is an Ansible role used to install and set up Heartbeat.
Role Variables
Check the defaults file for the latest list of settings you can use.
Dependencies
For more details, please look at the dependency configuration.
Example Playbook
Here's how you can use the role in your playbook:
- hosts: servers
vars:
heartbeat_package_state: latest
heartbeat_conf_manage: true
heartbeat_conf:
heartbeat:
monitors:
- type: http
schedule: '*/1 * * * * * *'
urls:
- "https://www.google.com"
- "https://www.amazon.com"
output:
elasticsearch:
enabled: true
hosts:
- http://localhost:9200
setup:
dashboards:
enabled: true
beat: heartbeat
always_kibana: true
template:
enabled: true
kibana:
host: http://localhost:80
roles:
- role: nephelaiio.heartbeat
Example Playbook with config file
Another simple playbook example:
- hosts: servers
vars:
heartbeat_package_state: latest
roles:
- role: nephelaiio.heartbeat
Testing
Make sure you have Docker installed to run tests for the role. You can find other required Python packages in the requirements file.
This role is tested on these systems (Docker images):
- Ubuntu Focal
- Ubuntu Bionic
- Rocky Linux 9
- Debian Bullseye
To test the role directly from the source, you can use the command molecule test
.
License
This project is licensed under the MIT License.
Installa
ansible-galaxy install nephelaiio.heartbeat
Licenza
mit
Download
25.8k
Proprietario