jffz.netdata
Ansible Role: netdata
Description
This role helps you set up the netdata monitoring system with Ansible.
Requirements
- You need Ansible version 2.4 or higher.
Role Variables
You can change the following settings, which are stored in the defaults/main.yml file and in the table below.
Name | Default Value | Description |
---|---|---|
netdata_registry |
"" | Use a custom netdata registry |
netdata_notifications |
True | Turn on email notifications. It uses the sendmail command, which this role doesn't configure. |
Example
Playbook
---
- hosts: all
roles:
- jffz.netdata
Local Testing
To test this role locally, you can use Docker and molecule (version 2.x). Make sure you have Docker installed on your computer. Check "Get started" for a suitable Docker package for your system.
We use tox to help test across different versions of Ansible. To install tox, run:
pip install tox
To test all Ansible versions (WARNING: this might take a while):
tox
To run a specific molecule command in a custom environment with just the default test scenario:
tox -e py27-ansible25 -- molecule test -s default
For more details on molecule, check their documentation.
If you want to run tests on a remote Docker host, set the DOCKER_HOST
variable before you run the tox tests.
License
This project is under the BSD License. Check the LICENSE file for more details.
ansible-galaxy install jffz.netdata