feat: add blueprints for authentik ldap outpost and render values directly instead of using env vars
Signed-off-by: Bert-Jan Fikse <bert-jan@whatwedo.ch>
This commit is contained in:
parent
d25f1c5304
commit
e819770415
11 changed files with 312 additions and 53 deletions
27
roles/authentik/templates/blueprints/outpost-ldap.yaml.j2
Normal file
27
roles/authentik/templates/blueprints/outpost-ldap.yaml.j2
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
|
||||
version: 1
|
||||
metadata:
|
||||
name: "outpost-{{ authentik_ldap_outpost.name }}"
|
||||
labels:
|
||||
blueprints.goauthentik.io/instantiate: "true"
|
||||
|
||||
entries:
|
||||
- model: authentik_outposts.outpost
|
||||
identifiers:
|
||||
name: "{{ authentik_ldap_outpost.name }}"
|
||||
attrs:
|
||||
name: "{{ authentik_ldap_outpost.name }}"
|
||||
type: ldap
|
||||
service_connection: null
|
||||
|
||||
providers:
|
||||
{% for app in authentik_ldap_apps %}
|
||||
- !Find [authentik_providers_ldap.ldapprovider, [name, {{ app.name }}]]
|
||||
{% endfor %}
|
||||
|
||||
{% if authentik_ldap_outpost.config is defined %}
|
||||
config:
|
||||
{% for k, v in authentik_ldap_outpost.config.items() %}
|
||||
{{ k }}: {{ v | tojson }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue