Skip to content

Commit

Permalink
chore: move role files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed Jan 16, 2024
1 parent 7e05043 commit 98570f3
Show file tree
Hide file tree
Showing 5 changed files with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions roles/grafana/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Ansible Grafana

![telekom-mms/ansible-role-grafana](https://github.com/telekom-mms/ansible-role-grafana/workflows/test/badge.svg)
[![Ansible Role](https://img.shields.io/ansible/role/d/32178)](https://galaxy.ansible.com/ui/standalone/roles/telekom-mms/grafana/)

Configure Grafana organizations, dashboards, folders, datasources, teams and users.

## Dependencies

### Collections

- community.grafana

## Role Variables

| Variable | Required | Default |
| ---------------- | -------- | ------- |
| grafana_url | yes |
| grafana_username | yes |
| grafana_password | yes |

| [**grafana_users**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_user_module.html)
| name | yes |
| email | no |
| login | yes |
| password | no |
| is_admin | no |
| state | no |
| [**grafana_organizations**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_organization_module.html)
| name | yes |
| state | no |
| [**grafana_teams**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_team_module.html)
| name | yes |
| email | no |
| members | no |
| state | no |
| enforce_members | no |
| skip_version_check | no |
| [**grafana_datasources**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_datasource_module.html)
| tls_skip_verify | no |
| org_id | no |
| name | yes |
| ds_type | no |
| access | no |
| ds_url | no |
| database | no |
| with_credentials | no |
| is_default | no |
| user | no |
| password | no |
| additional_json_data | no |
| additional_secure_json_data | no |
| [**grafana_folders**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_folder_module.html)
| name | yes |
| state | no |
| skip_version_check | no |
| [**grafana_dashboards**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_dashboard_module.html)
| org_id | no |
| folder | no |
| state | no |
| slug | no |
| uid | no |
| path | no |
| overwrite | no |
| dashboard_id | no |
| dashboard_revision | no |
| commit_message | no |

## Example Playbook

```yaml
---
- hosts: localhost
gather_facts: false

vars:
grafana_url: "https://monitoring.example.com"
grafana_username: "api-user"
grafana_password: "******"

grafana_datasources:
- name: "Loki"
ds_type: "loki"
ds_url: "http://127.0.0.1:3100"
tls_skip_verify: yes
grafana_folders:
- name: my_service
- name: other_service

roles:
- role: telekom-mms.grafana
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 98570f3

Please sign in to comment.