You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`grafana_datasource_directory`|`str`|`/etc/grafana/provisioning/datasources/automatic.yml`| Location of the Grafana data sources configuration file. |
24
-
|`grafana_providers_configuration`|`str`|`/etc/grafana/provisioning/dashboards/providers.yml`| Location of the Grafana dashboard provider configurations file. |
25
-
|`grafana_dashboard_directory`|`str`|`/var/lib/grafana/dashboards`| Location of the Grafana dashboard configurations directory. |
26
-
|`prometheus_url`|`str`|`localhost:9090`| URL (host:port) to the Prometheus server that Grafana will connect to. |
38
+
|`grafana_datasource_directory`|`str`|`/etc/grafana/provisioning/datasources/automatic.yml`| Location of the Grafana data sources configuration file. |
39
+
|`grafana_providers_configuration`|`str`|`/etc/grafana/provisioning/dashboards/providers.yml`| Location of the Grafana dashboard provider configurations file. |
40
+
|`grafana_dashboard_directory`|`str`|`/var/lib/grafana/dashboards`| Location of the Grafana dashboard configurations directory. |
41
+
|`prometheus_url`|`str`|`http://localhost:9090`| URL (host:port) to the Prometheus server that Grafana will connect to. |
42
+
|`prometheus_hostname`|`str`|`localhost`| Hostname of the Prometheus server for TLS server name verification. |
43
+
|`grafana_tls_enabled`|`bool`|`false`| Enable or disable TLS/SSL for Grafana (HTTPS support). |
44
+
|`grafana_tls_cert_path`|`str`|`/etc/pki/tls/certs/grafana.crt`| Path to the TLS certificate file for Grafana. |
45
+
|`grafana_tls_key_path`|`str`|`/etc/pki/tls/private/grafana.key`| Path to the TLS private key file for Grafana. |
46
+
|`grafana_domain`|`str`|`localhost`| Domain name for the Grafana server (used in server configuration). |
47
+
|`grafana_root_url`|`str`|`http://localhost:3000`| The root URL for accessing Grafana (used in server configuration). |
48
+
|`grafana_config_file`|`str`|`/etc/grafana/grafana.ini`| Path to the main Grafana configuration file. |
49
+
|`grafana_http_port`|`int`|`3000`| HTTP port for Grafana to listen on. |
50
+
|`grafana_security_admin_password`|`str`|`admin`| Admin password for Grafana web interface. |
51
+
52
+
53
+
## TLS/HTTPS Support
54
+
55
+
If `grafana_tls_enabled` is set to `true`, the role will configure Grafana to use HTTPS. You must provide valid certificate and key files at the specified paths (`grafana_tls_cert_path` and `grafana_tls_key_path`).
27
56
28
57
## Examples
29
58
@@ -33,8 +62,6 @@ Basic installation connecting to a local Prometheus server:
33
62
- name: Set up Grafana server with local Prometheus
34
63
ansible.builtin.import_role:
35
64
name: grafana_server
36
-
# No variables needed here as defaults will be used for local Prometheus
37
-
38
65
- name: Set up Grafana server for a specific Prometheus endpoint
39
66
ansible.builtin.import_role:
40
67
name: grafana_server
@@ -49,6 +76,19 @@ Basic installation connecting to a local Prometheus server:
0 commit comments