You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking back at the design by @drybjed and myself of 50unattended-upgrades.j2 and unattended_upgrades__tpl_macros.j2 it seems we overdid it a little bit with the Jinja2 templating. I guess we tried to see how far Jinja2 can be used to cache a list using Ansible local facts and make it idemptent. I guess this is not very Debian like and I found a different way how this can be handled using apt.conf.d. It is simple. Just split the definition of Unattended-Upgrade::Origins-Pattern done by various variables/roles over multiple files the same as other roles handle it.
Good to know that APT can do stuff like this! It could probably make some things simplier.
The current debops.unattended_upgrades role seems to work fine, so I suppose we don't need to mess with it at this point. Custom configuration from other roles can be done directly either way.
Looking back at the design by @drybjed and myself of 50unattended-upgrades.j2 and unattended_upgrades__tpl_macros.j2 it seems we overdid it a little bit with the Jinja2 templating. I guess we tried to see how far Jinja2 can be used to cache a list using Ansible local facts and make it idemptent. I guess this is not very Debian like and I found a different way how this can be handled using
apt.conf.d
. It is simple. Just split the definition ofUnattended-Upgrade::Origins-Pattern
done by various variables/roles over multiple files the same as other roles handle it.Example:
/etc/apt/apt.conf.d/50unattended-upgrades_debops_owncloud
:APT will merge the definitions as can be checked using
apt-config dump
.This is also a reminder to myself that KISS is important 😉
The text was updated successfully, but these errors were encountered: