This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Grafana role

Run alwaldend.main.grafana with privilege escalation on Fedora. The role installs the Fedora Grafana package, stores data in the RPM’s SQLite directory, listens on loopback, and checks database health after starting the systemd service. Set grafana_hostname to the HTTPS hostname served by the reverse proxy.

Supply the local recovery password, encryption key, and OIDC client secret as files on the Ansible controller. Set the OIDC client ID, browser authorization URL, token URL, UserInfo URL, and administrator group. Members of that OIDC group receive Grafana server administrator access. The role enables PKCE and keeps the local login available for recovery.

Set grafana_feature_toggles to enable deployment-specific Grafana features.

1 - Defaults

Defaults for grafana
grafana_hostname: "{{ undef() }}"
grafana_http_port: 3000
grafana_feature_toggles: []
grafana_admin_password_src: "{{ undef() }}"
grafana_secret_key_src: "{{ undef() }}"
grafana_oidc_client_id: "{{ undef() }}"
grafana_oidc_client_secret_src: "{{ undef() }}"
grafana_oidc_auth_url: "{{ undef() }}"
grafana_oidc_token_url: "{{ undef() }}"
grafana_oidc_userinfo_url: "{{ undef() }}"
grafana_oidc_name: OIDC
grafana_oidc_scopes: openid profile email groups
grafana_oidc_login_attribute: preferred_username
grafana_oidc_admin_group: "{{ undef() }}"