Skip to content
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.

infOpen/ansible-role-netdata

Repository files navigation

netdata

Build Status Build Status Updates Python 3 Ansible Role

Install and configure netdata package.

Requirements

This role requires Ansible 2.2 or higher, and platform requirements are listed in the metadata file.

Testing

This role use Molecule to run tests.

Local and Travis tests run tests on Docker by default. See molecule documentation to use other backend.

Currently, tests are done on:

  • Debian Jessie
  • Ubuntu Xenial

and use:

  • Ansible 2.2.x
  • Ansible 2.3.x
  • Ansible 2.4.x
  • Ansible 2.5.x

Running tests

Using Docker driver

$ tox

Role Variables

Default role variables

How ...

... manage main configuration

You can manage main configuration file using ini format

netdata_main_configuration_items:
  - section: 'foobar'
    option: 'foo'
    value: 'bar'

... manage plugins configuration

To avoid hard regex or errors, when you want a specific configuration for a plugin, you need to manage all its configuration using content key

netdata_plugins_configuration_items:
  - path: 'python.d/squid.conf'
    content:
      foo: bar

Dependencies

None

Example Playbook

- hosts: servers
  roles:
    - { role: infOpen.netdata }

License

MIT

Author Information

Alexandre Chaussier (for Infopen company)