Add optional SMTP configuration for Authentik, including email host, port, and credentials. Update README and .env.sample to clarify usage for outbound email settings. Introduce blueprint support for enhanced deployment flexibility, with assertions in Ansible tasks to ensure required variables are set when enabled.
This commit is contained in:
@@ -25,6 +25,24 @@ global:
|
||||
value: "{{ noble_authentik_s3_region }}"
|
||||
- name: AUTHENTIK_STORAGE__S3__ADDRESSING_STYLE
|
||||
value: "{{ noble_authentik_s3_addressing_style }}"
|
||||
{% if noble_authentik_smtp_host | default('') | trim | length > 0 %}
|
||||
- name: AUTHENTIK_EMAIL__HOST
|
||||
value: {{ noble_authentik_smtp_host | trim | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__PORT
|
||||
value: {{ (noble_authentik_smtp_port | default('587') | string) | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__USERNAME
|
||||
value: {{ noble_authentik_smtp_username | default('') | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__PASSWORD
|
||||
value: {{ noble_authentik_smtp_password | default('') | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__USE_TLS
|
||||
value: {{ (noble_authentik_smtp_use_tls | default('true') | string) | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__USE_SSL
|
||||
value: {{ (noble_authentik_smtp_use_ssl | default('false') | string) | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__TIMEOUT
|
||||
value: {{ (noble_authentik_smtp_timeout | default('30') | string) | to_json }}
|
||||
- name: AUTHENTIK_EMAIL__FROM
|
||||
value: {{ noble_authentik_smtp_from | trim | to_json }}
|
||||
{% endif %}
|
||||
postgresql:
|
||||
auth:
|
||||
password: "{{ noble_authentik_postgresql_password }}"
|
||||
@@ -46,3 +64,8 @@ server:
|
||||
- {{ h }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if noble_authentik_blueprints_enabled | default(false) | bool %}
|
||||
blueprints:
|
||||
configMaps:
|
||||
- {{ noble_authentik_blueprints_configmap_name }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user