27 lines
734 B
Django/Jinja
27 lines
734 B
Django/Jinja
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
|
|
version: 1
|
|
metadata:
|
|
name: "outpost-{{ item.name }}"
|
|
labels:
|
|
blueprints.goauthentik.io/instantiate: "true"
|
|
|
|
entries:
|
|
- model: authentik_outposts.outpost
|
|
identifiers:
|
|
name: "{{ item.name }}"
|
|
attrs:
|
|
name: "{{ item.name }}"
|
|
type: {{ item.type | default('proxy') }}
|
|
service_connection: {{ item.service_connection | default('null') }}
|
|
|
|
providers:
|
|
{% for p in item.providers %}
|
|
- !Find [authentik_providers_proxy.proxyprovider, [name, {{ p }}]]
|
|
{% endfor %}
|
|
|
|
{% if item.config is defined %}
|
|
config:
|
|
{% for k, v in item.config.items() %}
|
|
{{ k }}: {{ v | tojson }}
|
|
{% endfor %}
|
|
{% endif %}
|