Add some other managed parameters.

master
Andrea Dell'Amico 1 year ago
parent 26df2b0dcb
commit eaf3010e1b
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF

@ -14,6 +14,7 @@ grafana_conf:
- {section: 'server', option: 'http_port', value: '{{ grafana_http_port }}', state: present}
- {section: 'server', option: 'domain', value: '{{ grafana_domain_name }}', state: present}
- {section: 'server', option: 'enforce_domain', value: '{{ grafana_enforce_dom_name | lower }}', state: present}
- {section: 'server', option: 'root_url', value: "{{ grafana_public_endpoint | default('%(protocol)s://%(domain)s:%(http_port)s/') }}", state: present}
- {section: 'database', option: 'type', value: '{{ grafana_db_type }}', state: present}
- {section: 'database', option: 'host', value: '{{ grafana_db_hostport }}', state: present}
- {section: 'database', option: 'name', value: '{{ grafana_db_name }}', state: present}
@ -22,15 +23,16 @@ grafana_conf:
- {section: 'database', option: 'ssl_mode', value: '{{ grafana_db_pg_ssl_mode }}', state: present}
- {section: 'session', option: 'provider', value: '{{ grafana_session_provider }}', state: present}
- {section: 'session', option: 'provider_config', value: '{{ grafana_session_config }}', state: present}
- {section: 'session', option: 'secure_cookie', value: '{{ grafana_secure_cookie | lower }}', state: present}
- {section: 'session', option: 'secure_cookie', value: '{{ grafana_secure_cookies | lower }}', state: present}
- {section: 'session', option: 'cookie_name', value: '{{ grafana_cookie_name }}', state: present}
- {section: 'analytics', option: 'reporting_enabled', value: '{{ grafana_analytics_reporting_enabled | lower }}', state: present}
- {section: 'analytics', option: 'check_for_updates', value: '{{ grafana_analytics_updates_check | lower }}', state: present}
- {section: 'security', option: 'admin_user', value: '{{ grafana_admin_user }}', state: "{% if grafana_setup_admin_user %}present{% else %}absent{% endif %}"}
- {section: 'security', option: 'admin_password', value: '{{ grafana_admin_password }}', state: "{% if grafana_setup_admin_user %}present{% else %}absent{% endif %}"}
- {section: 'security', option: 'secret_key', value: '{{grafana_signing_key }}', state: "{% if grafana_setup_signing_key %}present{% else %}absent{% endif %}"}
- {section: 'security', option: 'cookie_secure', value: '{{ grafana_secure_cookies | lower }}', state: present}
- {section: 'security', option: 'cookie_samesite', value: "{{ grafana_cookie_samesite | default('lax') }}", state: present}
- {section: 'security', option: 'allow_embedding', value: "{{ grafana_allow_embedding | default(false) }}", state: present}
- {section: 'security', option: 'allow_embedding', value: "{{ grafana_allow_embedding | default(false) | lower }}", state: present}
- {section: 'dashboards', option: 'versions_to_keep', value: "{{ grafana_dashboards_versions_to_keep | default('20') }}", state: present}
- {section: 'dashboards', option: 'min_refresh_interval', value: "{{ grafana_dashbards_min_default_interval | default('5s') }}", state: present}
- {section: 'users', option: 'allow_sign_up', value: '{{ grafana_u_allow_signup | lower }}', state: present}
@ -39,6 +41,7 @@ grafana_conf:
- {section: 'users', option: 'auto_assign_org_role', value: "{{grafana_u_default_role | lower }}", state: present}
- {section: 'users', option: 'default_theme', value: '{{ grafana_u_default_theme }}', state: present}
- {section: 'users', option: 'disable_login_form', value: '{{ grafana_u_disable_login_form | lower }}', state: present}
- {section: 'auth', option: 'oauth_auto_login', value: '{{ grafana_oauth_auto_login | lower }}', state: present}
- {section: 'auth.anonymous', option: 'enabled', value: '{{ grafana_auth_anon | lower }}', state: present}
- {section: 'auth.generic_oauth', option: 'enabled', value: '{{ grafana_oauth_generic_enabled | lower }}', state: present}
- {section: 'auth.generic_oauth', option: 'name', value: '{{ grafana_oauth_name }}', state: "{% if grafana_oauth_generic_enabled %}present{% else %}absent{% endif %}"}
@ -65,9 +68,12 @@ grafana_conf:
- {section: 'log.syslog', option: 'level', value: '{{ grafana_log_level }}', state: present}
- {section: 'log.syslog', option: 'facility', value: '{{ grafana_syslog_facility }}', state: present}
- {section: 'dashboards.json', option: 'enabled', value: '{{ grafana_dashboard_json | lower }}', state: present}
- {section: 'dashboards.json', option: 'path', value: "{{ grafana_dashboards_json_path | default('/var/lib/grafana/dashboards')", state: present}
- {section: 'dashboards.json', option: 'path', value: "{{ grafana_dashboards_json_path | default('/var/lib/grafana/dashboards') }}", state: present}
- {section: 'metrics', option: 'enabled', value: "{{ grafana_metrics_enabled | default(true) | lower }}", state: present}
- {section: 'grafana_net', option: 'url', value: 'https://grafana.net', state: present}
- {section: 'remote_cache', option: 'type', value: '{{ grafana_remote_cache }}', state: present}
- {section: 'remote_cache', option: 'connstr', value: '{{ grafana_remote_cache_connstr }}', state: present}
grafana_additional_conf: []
@ -83,6 +89,10 @@ grafana_require_redis: true
# redis, file
grafana_session_provider: file
# Remote cache: "redis", "memcached" or "database" default is "database"
grafana_remote_cache: database
grafana_remote_cache_connstr: ''
grafana_data_path: /var/lib/grafana
grafana_server_protocol: http
grafana_bind_ip_address: 127.0.0.1
@ -164,6 +174,7 @@ grafana_oauth_scopes: 'openid email profile'
grafana_oauth_empty_scopes: false
grafana_tls_skip_verify_insecure: false
grafana_oauth_allow_signup: false
grafana_oauth_auto_login: false
grafana_oauth_allowed_domains: ''
grafana_oauth_use_pkce: true
grafana_oauth_allow_assign_grafana_admin: false

Loading…
Cancel
Save