Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
830afd15
Verified
Commit
830afd15
authored
2 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
[grafana] More power!
Signed-off-by:
Yohann D'ANELLO
<
ynerant@crans.org
>
parent
da70cc48
Loading
Loading
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
group_vars/grafana.yml
+4
-0
4 additions, 0 deletions
group_vars/grafana.yml
roles/grafana/templates/ldap.toml.j2
+9
-3
9 additions, 3 deletions
roles/grafana/templates/ldap.toml.j2
with
13 additions
and
3 deletions
group_vars/grafana.yml
+
4
−
0
View file @
830afd15
...
...
@@ -4,6 +4,10 @@ glob_grafana:
ldap_base
:
"
{{
glob_ldap.base
}}"
ldap_master_ipv4
:
"
{{
glob_ldap.servers[0]
}}"
ldap_user_tree
:
"
ou=passwd,{{
glob_ldap.base
}}"
ldap_group_tree
:
"
ou=group,{{
glob_ldap.base
}}"
ldap_group_filter
:
"
uid"
ldap_group_admin
:
"
cn=_nounou,ou=group,{{
glob_ldap.base
}}"
ldap_group_editor
:
"
*"
# Everyone is editor
logos
:
-
which
:
crans_logo_white_small.svg
...
...
This diff is collapsed.
Click to expand it.
roles/grafana/templates/ldap.toml.j2
+
9
−
3
View file @
830afd15
...
...
@@ -31,8 +31,8 @@ search_base_dns = ["ou=passwd,dc=crans,dc=org"]
## For Posix or LDAP setups that does not support member_of attribute you can define the below settings
## Please check grafana LDAP docs for examples
group_search_filter = "(&(objectClass=posixGroup)(memberUid=%s))"
group_search_base_dns = ["
ou=group,
{{ grafana.ldap_
bas
e }}"]
group_search_filter_user_attribute = "
cn
"
group_search_base_dns = ["{{ grafana.ldap_
group_tre
e }}"]
group_search_filter_user_attribute = "
{{ grafana.ldap_group_filter }}
"
# Specify names of the ldap attributes your ldap uses
[servers.attributes]
...
...
@@ -41,7 +41,13 @@ surname = "sn"
username = "uid"
email = "mail"
# Nounous can administrate
[[servers.group_mappings]]
group_dn = "{{ grafana.ldap_group_admin }}"
org_role = "Admin"
grafana_admin = true
# All LDAP members can edit
[[servers.group_mappings]]
group_dn = "
*
"
group_dn = "
{{ grafana.ldap_group_editor }}
"
org_role = "Editor"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment