metajiji / ansible_netdata

An Ansible role for setup a netdata.

Home Page:https://netdata.cloud/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible role netdata

An Ansible role for setup a netdata.

This role use this bash script: https://github.com/netdata/netdata/blob/master/packaging/installer/kickstart-static64.sh

Requirements

  • CentOS >= 7
  • ansible >= 2.7

Role Variables

For more info on the values, read defaults/main.yml

Variable Default Comments (type)
netdata_installation_type tarball One of docker, tarball or package
netdata_release 1.40.0 Type: string
netdata_tarball_checksum sha256:xxx Type: string
Is required for tarball installation type
config_dir For tarball: /opt/netdata/etc/netdata
For package: /etc/netdata
For docker: "{{ netdata_docker_dir }}/volumes/netdata/etc/netdata"
netdata_docker_dir /opt/netdata-docker Directory for docker-compose files
netdata_ksm_enabled true Type: bool
netdata_required_packages_extra [] Type: list
netdata_required_packages epel-release Type: list
netdata_packages_extra [] Type: list
netdata_packages iproute Type: list
nmap-ncat
lm_sensors
python
python-dns
python-ipaddress
netdata_telemetry false Type: bool

All netdata_docker_* variables only for docker installation type.

Examples

Playbook

- hosts: all
  roles:
    - netdata

KSM

This role can enable KSM [1], [2] via tmpfiles.

If netdata_ksm_enabled with true you can enable KSM manually:

systemd-tmpfiles --create

Contributing

Issues, feature requests, ideas are can be appreciated

License

Contributors

Documentation