Authelia has config redirect_url which is not present in config.yml, but only in vault.yml
From Zulip: I've been having some issues getting authelia to deploy. The relevant section of my vault.yml file looks like this:
authelia: enable: True https_only: True auth: True domain: False subdomain: auth redirect_url: https://organizr.mydomain.com
And when I try to run make update_one authelia I get an error like this:
TASK [authelia : Copy authelia_config.yml file into place.] ******************** fatal: [myserver]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'redirect_url'"}
I'm a little confused as to what the error is implyingm, does anyone have any ideas on how to fix this?
The trouble is this:
I think this is a little messed up across crossing changes :-) While I added authelia, all of its config moved to vault, except this setting. So now (homelabos_config) vault goes like this:
redirect_url: {{ authelia.redirect_url | default("https://organizr." + domain) }}
while config goes like this:
...
.. yes, nothing.
So the default will always be chosen regardless.
The variable is referenced in authelia templates authelia_config.yml as
default_redirection_url: {{ authelia.redirect_url }}
No wonder is does not work as intended :-)
Now, the config.yml has athelia wrapped in {% raw brackets, which I don't quite get. If I were to fix this, should the authelia config in config.yml not just go away entirely?