add authentik role
This commit is contained in:
1
roles/authentik/README.md
Normal file
1
roles/authentik/README.md
Normal file
@@ -0,0 +1 @@
|
||||
Sets up an authentik docker container.
|
||||
5
roles/authentik/defaults/main.yml
Normal file
5
roles/authentik/defaults/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
|
||||
authentik_env: {}
|
||||
docker_networks:
|
||||
- name: authentik
|
||||
49
roles/authentik/meta/argument_specs.yml
Normal file
49
roles/authentik/meta/argument_specs.yml
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
|
||||
argument_specs:
|
||||
main:
|
||||
short_description: Authentik container
|
||||
description: "Sets up an authentik docker container."
|
||||
options:
|
||||
authentik_env:
|
||||
description: "dict of custom environment variables for authentik container"
|
||||
type: dict
|
||||
required: false
|
||||
default: {}
|
||||
|
||||
# All options after this will be passed directly to the container role
|
||||
docker_service_suffix:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
docker_host_user:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
|
||||
database_passwords:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
docker_additional_services:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
|
||||
docker_volume_type:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
reverse_proxy_type:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
ports:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
docker_vhost_domains:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
docker_entrypoint:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
dockerfile:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
docker_networks:
|
||||
description: "Passed to container role"
|
||||
required: false
|
||||
26
roles/authentik/tasks/main.yml
Normal file
26
roles/authentik/tasks/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
|
||||
- name: Authentik container
|
||||
ansible.builtin.import_role:
|
||||
name: container
|
||||
vars:
|
||||
docker_service: authentik
|
||||
docker_image: beryju/authentik:latest
|
||||
docker_command:
|
||||
- server
|
||||
docker_image_http_port: 9000
|
||||
docker_database: postgres
|
||||
docker_additional_services:
|
||||
- redis
|
||||
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
||||
|
||||
- name: Authentik worker container
|
||||
ansible.builtin.import_role:
|
||||
name: container
|
||||
vars:
|
||||
docker_service: authentik_worker
|
||||
docker_image: beryju/authentik:latest
|
||||
docker_command:
|
||||
- worker
|
||||
reverse_proxy_type: none
|
||||
docker_env: "{{ authentik_common_env | combine(authentik_env) }}"
|
||||
9
roles/authentik/vars/main.yml
Normal file
9
roles/authentik/vars/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
authentik_common_env:
|
||||
AUTHENTIK_REDIS__HOST: authentik_redis
|
||||
AUTHENTIK_POSTGRESQL__HOST: authentik_db
|
||||
AUTHENTIK_POSTGRESQL__USER: authentik
|
||||
AUTHENTIK_POSTGRESQL__NAME: authentik
|
||||
AUTHENTIK_POSTGRESQL__PASSWORD: "{{ database_passwords.authentik }}"
|
||||
AUTHENTIK_SECRET_KEY: "{{ authentik_secret_key }}"
|
||||
Reference in New Issue
Block a user