ikke_t.grafana_podman

grafana-podman

This role sets up Grafana as a container using Podman and systemd. It also sends configurations to Grafana through the API.

Requirements

You need to have Ansible installed, and the target system must support systemd and Podman.

Role Variables

Check the defaults.yml file and examples in tests/test.yml and tests/test_vars.yml.

  • grafana_domain: The domain for Grafana's configuration.

  • grafana_root_url: The root URL for Grafana, e.g. http://%(domain)s/ or https://%(domain)s/grafana

  • grafana_public_url: The URL to access Grafana from outside if it's behind a load balancer, e.g. 'https://example.com/grafana'.

  • grafana_admin: The username for the Grafana admin.

  • grafana_admin_default_password: Default password for the Grafana admin.

  • grafana_admin_password: Default is "{{ grafana_admin_default_password }}"

  • grafana_smtp_*: Configuration for email notifications. See manual

  • grafana_admins: A list of admin users.

  • grafana_users: A list of viewer users.

  • grafana_dashboards: A list of JSON files or URLs for dashboards.

  • grafana_datasources: A list of data sources.

  • grafana_email_notification_channels: A list of channels for email notifications.

  • container_*: Options passed to the podman_container_systemd role. See options here

Dependencies

Roles:

  • ikke_t.podman_container_systemd

Collections:

  • containers.podman
  • community.grafana

Example Playbook

Refer to tests/test.yml.

License

GPLv2 or later

Author Information

Ilkka Tengvall

Informazioni sul progetto

Solution Architect

Installa
ansible-galaxy install ikke_t.grafana_podman
Licenza
gpl-3.0
Download
204
Proprietario
I nerd around the clock. At day time for Red Hat, at evenings for my hobby projects. Except when family duties interrupt :) All for open source.