|
|
@ -50,16 +50,3 @@ metabase_lang: fr |
|
|
|
# Will most likely need to be adjusted, because you'll put it behind a reverse proxy don't you ? |
|
|
|
# Will most likely need to be adjusted, because you'll put it behind a reverse proxy don't you ? |
|
|
|
metabase_public_url: http://{{ inventory_hostname }}:{{ metabase_port }}/ |
|
|
|
metabase_public_url: http://{{ inventory_hostname }}:{{ metabase_port }}/ |
|
|
|
|
|
|
|
|
|
|
|
# LDAP Auth settings |
|
|
|
|
|
|
|
metabase_ldap: "{{ (ad_auth | default(False) or ldap_auth | default(False)) | ternary(True,False) }}" |
|
|
|
|
|
|
|
metabase_ldap_attr_email: mail |
|
|
|
|
|
|
|
metabase_ldap_attr_firstname: givenName |
|
|
|
|
|
|
|
metabase_ldap_attr_lastname: sn |
|
|
|
|
|
|
|
metabase_ldap_server: "{{ (ldap_uri is defined) | ternary(ldap_uri | urlsplit('hostname'), ad_auth | default(False) | ternary(ad_realm | default(samba_realm) | default(ansible_domain) | lower, ansible_domain)) }}" |
|
|
|
|
|
|
|
metabase_ldap_port: "{{ (ldap_auth is defined and ldap_auth | urlsplit('port') is search('\\d+')) | ternary(ldap_auth | urlsplit('port'), '389') }}" |
|
|
|
|
|
|
|
# metabase_ldap_user: CN=Metabase,OU=Apps,DC=example,DC=org |
|
|
|
|
|
|
|
# metabase_ldap_pass: S3cr3t. |
|
|
|
|
|
|
|
metabase_ldap_user_base: "{{ (ad_ldap_user_search_base is defined and ad_auth) | ternary(ad_ldap_user_search_base, ad_auth | default(False) | ternary('DC=' + ad_realm | default(samba_realm) | default(ansible_domain) | regex_replace('\\.',',DC='), 'ou=Users,' + ldap_base)) }}" |
|
|
|
|
|
|
|
metabase_ldap_user_filter: (&{{ ad_auth | default(False) | ternary('(objectClass=user)(objectCategory=person)(primaryGroupId=513)','(objectClass=inetOrgPerson)') }}(|(uid={login})(mail={login})) |
|
|
|
|
|
|
|
metabase_ldap_group_base: "{{ (ad_ldap_group_search_base is defined and ad_auth) | ternary(ad_ldap_group_search_base, ad_auth | default(False) | ternary('DC=' + ad_realm | default(samba_realm) | default(ansible_domain) | regex_replace('\\.',',DC='), 'ou=Groups,' + ldap_base)) }}" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|