38 lines
No EOL
1 KiB
Django/Jinja
38 lines
No EOL
1 KiB
Django/Jinja
# yaml-language-server: $schema=https://goauthentik.io/blueprints/schema.json
|
|
version: 1
|
|
metadata:
|
|
name: "cleanup"
|
|
labels:
|
|
blueprints.goauthentik.io/instantiate: "true"
|
|
blueprints.goauthentik.io/description: "Remove stale resources"
|
|
|
|
entries:
|
|
{% for slug in authentik_removed_oidc_apps %}
|
|
# Remove OIDC app: {{ slug }}
|
|
- model: authentik_core.application
|
|
state: absent
|
|
identifiers:
|
|
slug: {{ slug }}
|
|
- model: authentik_providers_oauth2.oauth2provider
|
|
state: absent
|
|
identifiers:
|
|
name: {{ slug }}
|
|
{% endfor %}
|
|
{% for slug in authentik_removed_proxy_apps %}
|
|
# Remove proxy app: {{ slug }}
|
|
- model: authentik_core.application
|
|
state: absent
|
|
identifiers:
|
|
slug: {{ slug }}
|
|
- model: authentik_providers_proxy.proxyprovider
|
|
state: absent
|
|
identifiers:
|
|
name: {{ slug }}
|
|
{% endfor %}
|
|
{% for username in authentik_removed_local_users %}
|
|
# Remove user: {{ username }}
|
|
- model: authentik_core.user
|
|
state: absent
|
|
identifiers:
|
|
username: {{ username }}
|
|
{% endfor %} |