ffs
This commit is contained in:
parent
71306a2cd1
commit
2d6092cc4d
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
||||||
# Attempt to fix json with pillar variables in variable
|
# Attempt to fix json with pillar variables in variable
|
||||||
{% set client_secret = salt['pillar.get']('paperless:webserver:keycloak:client_secret', '<CLIENT_SECRET>') %}
|
{% set client_secret = salt['pillar.get']('paperless:webserver:keycloak:client_secret', '<CLIENT_SECRET>') %}
|
||||||
{% set oauth_server = salt['pillar.get']('paperless:webserver:keycloak:server_url', 'https://<KEYCLOAK_SERVER>/realms/<REALM>/.well-known/openid-configuration') %}
|
{% set oauth_server = salt['pillar.get']('paperless:webserver:keycloak:server_url', 'https://<KEYCLOAK_SERVER>/realms/<REALM>/.well-known/openid-configuration') %}
|
||||||
{% set PAPERLESS_SOCIALACCOUNT_PROVIDERS_ = {'openid_connect':{'APPS':[{'provider_id': 'keycloak', 'name': 'Keycloak', 'client_id': 'paperless', 'secret': client_secret, 'settings':{'server_url': oauth_server}}]}}|tojson%}
|
{% set PAPERLESS_SOCIALACCOUNT_PROVIDERS_ = {'openid_connect':{'APPS':[{'provider_id': 'keycloak', 'name': 'Keycloak', 'client_id': 'paperless',
|
||||||
|
'secret': client_secret,
|
||||||
|
'settings':{'server_url':
|
||||||
|
oauth_server}}]}} |
|
||||||
|
tojson %}
|
||||||
|
|
||||||
broker-data-directory-exists:
|
broker-data-directory-exists:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
|
Loading…
Reference in a new issue