Update to 2021-12-01 19:13

This commit is contained in:
Daniel Berteaud
2021-12-01 19:13:34 +01:00
commit 4c4556c660
2153 changed files with 60999 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
[paths]
[server]
protocol = http
http_addr = 0.0.0.0
http_port = {{ grafana_port }}
{% if grafana_root_url is defined %}
root_url = {{ grafana_root_url }}
{% endif %}
[database]
type = {{ grafana_db_type }}
{% if grafana_db_type == 'sqlite3' %}
path = grafana.db
{% else %}
host = {{ grafana_db_server }}{% if grafana_db_port is defined and not grafana_db_server is match ('^/') %}:{{ grafana_db_port }}{% endif %}
name = {{ grafana_db_name }}
user = {{ grafana_db_user }}
password = {{ grafana_db_pass }}
{% endif %}
[session]
[dataproxy]
[analytics]
reporting_enabled = {{ grafana_reporting | ternary('true', 'false') }}
check_for_updates = {{ grafana_check_for_updates | ternary('true', 'false') }}
[security]
secret_key = {{ grafana_secret_key }}
[snapshots]
[users]
allow_sign_up = {{ grafana_allow_sign_up | ternary('true','false') }}
[auth]
[auth.anonymous]
{% if grafana_auth.anonymous is defined and grafana_auth.anonymous.enabled | default(True) %}
enabled = true
{% if grafana_auth.anonymous.org_name is defined %}
org_name = {{ grafana_auth.anonymous.org_name }}
{% endif %}
{% if grafana_auth.anonymous.org_role is defined %}
org_role = {{ grafana_auth.anonymous.org_role }}
{% endif %}
{% endif %}
[auth.proxy]
{% if grafana_auth.proxy is defined and grafana_auth.proxy.enabled | default(True) %}
enabled = true
header_name = {{ grafana_auth.proxy.header_name | default('User-Name') }}
header_property = username
auto_sign_up = true
{% if grafana_auth.proxy.whitelist is defined %}
whitelist = {{ grafana_auth.proxy.whitelist | join(',') }}
{% endif %}
{% endif %}
[auth.basic]
[auth.ldap]
{% if grafana_auth.ldap is defined and grafana_auth.ldap.enabled | default(True) %}
enabled = true
config_file = /etc/grafana/ldap.toml
{% endif %}
[emails]
[log]
mode = console
level = {{ grafana_log_level }}

View File

@@ -0,0 +1,37 @@
[[servers]]
host = "{{ grafana_auth.ldap.servers | join(' ') }}"
port = {{ grafana_auth.ldap.port }}
use_ssl = {{ (grafana_auth.ldap.use_ssl or grafana_auth.ldap.start_tls) | ternary('true','false') }}
start_tls = {{ grafana_auth.ldap.start_tls | ternary('true','false') }}
ssl_skip_verify = {{ grafana_auth.ldap.ssl_skip_verify | ternary('true','false') }}
{% if grafana_auth.ldap.root_ca_cert is defined %}
root_ca_cert = {{ grafana_auth.ldap.root_ca_cert }}
{% endif %}
{% if grafana_auth.ldap.bind_dn is defined and grafana_auth.ldap.bind_password is defined %}
bind_dn = "{{ grafana_auth.ldap.bind_dn }}"
bind_password = '{{ grafana_auth.ldap.bind_password }}'
{% endif %}
search_filter = "{{ grafana_auth.ldap.search_filter }}"
search_base_dns = ["{{ grafana_auth.ldap.search_base_dns | join('","') }}"]
{% if grafana_auth.ldap.group_search_filter is defined %}
group_search_filter = "{{ grafana_auth.ldap.group_search_filter }}"
group_search_base_dns = ["{{ grafana_auth.ldap.group_search_base_dns | join('","') }}"]
{% if grafana_auth.ldap.group_search_filter_user_attribute is defined %}
group_search_filter_user_attribute = "{{ grafana_auth.ldap.group_search_filter_user_attribute }}"
{% endif %}
{% endif %}
[servers.attributes]
{% for attr in grafana_auth.ldap.attributes %}
{{ attr }} = "{{ grafana_auth.ldap.attributes[attr] }}"
{% endfor %}
{% for map in grafana_auth.ldap.group_mappings %}
[[servers.group_mappings]]
group_dn = "{{ map['ldap_group'] }}"
org_role = "{{ map['role'] }}"
{% endfor %}