ansiblebit.grafana

Grafana

License Build Status

Platform Platform

Project Stats

This is an Ansible role for setting up Grafana.

Tests

Family Distribution Version Test Status
Debian Debian Jessie x86_64
Debian Debian Wheezy x86_64
Debian Ubuntu Xenial x86_64
Debian Ubuntu Trusty x86_64
Debian Ubuntu Precise x86_64
Debian Ubuntu Vivid x86_64

Requirements

  • Ansible version must be 1.9.6 or higher.

Role Variables

  • grafana_admin_password: Admin password for Grafana.
  • grafana_admin_user: Admin username for Grafana.
  • grafana_apt_dependencies: Packages needed to run this playbook or install Grafana.
  • grafana_conf_file: File containing Grafana's configuration.
  • grafana_conf_data: Content of Grafana's configuration file.
  • grafana_default: Init script environment for Grafana.
  • grafana_dir_conf: Directory for Grafana configuration file.
  • grafana_dir_data: Directory for Grafana data storage.
  • grafana_dir_home: Home directory for Grafana.
  • grafana_dir_log: Directory for Grafana log files.
  • grafana_dir_plugins: Directory for Grafana plugins.
  • grafana_http_port: Port where Grafana service runs.
  • grafana_group: Group for Grafana.
  • grafana_pid_file_dir: Directory for PID file.
  • grafana_pid_file: Path to PID file.
  • grafana_user: User for Grafana.

Default values for the above variables are provided in the defaults directory unless stated otherwise.

Dependencies

None.

Playbooks

- hosts: servers
  roles:
    - role: ansiblebit.grafana

Tags

  • configuration: Tasks related to configuration.
  • debug: Tasks for debugging role variables.
  • installation: Tasks for installation.
  • validation: Tasks for validating role variables.

Testing

To run tests, install:

To run all tests on all defined OS/distributions and Ansible versions:

$ tox

To run tests for trusty64:

$ cd tests
$ bash test_idempotence.sh --box trusty64.vagrant.dev
# Log file will be stored under tests/log

For debugging a specific environment:

$ cd tests
$ vagrant up trusty64.vagrant.dev

# To provision using the test.yml playbook (as many times as needed)
$ vagrant provision trusty64.vagrant.dev

# To access the Vagrant box
$ vagrant ssh trusty64.vagrant.dev

License

BSD

Author Information

Informazioni sul progetto

Role to setup Grafana.

Installa
ansible-galaxy install ansiblebit.grafana
Licenza
bsd-3-clause
Download
5.6k
Proprietario