feat: add ability to provision outposts using blueprints
This commit is contained in:
parent
438a41356a
commit
0106e8801f
3 changed files with 48 additions and 0 deletions
|
|
@ -54,6 +54,14 @@
|
|||
loop: "{{ authentik_proxy_apps }}"
|
||||
register: proxy_templates
|
||||
|
||||
- name: Render outpost blueprints
|
||||
template:
|
||||
src: blueprints/outpost-proxy.yaml.j2
|
||||
dest: "{{ authentik_docker_volume_dir }}/blueprints/30-outpost-{{ item.name }}.yaml"
|
||||
mode: "0644"
|
||||
loop: "{{ authentik_proxy_outposts }}"
|
||||
register: outpost_bp
|
||||
|
||||
- name: Create docker-compose file for authentik
|
||||
template:
|
||||
src: docker-compose.yml.j2
|
||||
|
|
@ -69,5 +77,6 @@
|
|||
(
|
||||
(oidc_templates is defined and (oidc_templates.results | selectattr('changed') | list | length > 0))
|
||||
or (proxy_templates is defined and (proxy_templates.results | selectattr('changed') | list | length > 0))
|
||||
or (outpost_bp is defined and (outpost_bp.results | selectattr('changed') | list | length > 0))
|
||||
) | ternary('always','auto')
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue