Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.58 KB

README.md

File metadata and controls

71 lines (47 loc) · 1.58 KB

Ansible Role: grafana

This role will assume the setup of grafana

It's part of the ELAO Ansible stack but can be used as a stand alone component.

Requirements

  • Ansible 1.7.2+

Dependencies

None.

Installation

Using ansible galaxy:

ansible-galaxy install elao.grafana,1.0

You can add this role as a dependency for other roles by adding the role to the meta/main.yml file of your own role:

dependencies:
  - { role: elao.grafana }

Role Handlers

Name Type Description
grafana restart Service Restart grafana server

Role Variables

Name Default Type Description
elao_grafana_config_file /etc/grafana/grafana.ini string
elao_grafana_config_template config/base.ini.j2 string
elao_grafana_config [] Array

Configuration example

See : http://docs.grafana.org/installation/configuration/

elao_grafana_config:
  - app_mode: production
  - server:
    - http_port: 3001
  - security:
    - admin_user: admin
    - admin_password: admin

Example playbook

- hosts: servers
  roles:
     - { role: elao.grafana }

Licence

MIT

Author information

ELAO (http://www.elao.com/)