Closed Perfect5th closed 11 months ago
Needs to be added to CHARM_ONLY_CONFIGS = ["ppa"] since the other juju configs get passed to the landscape-client command line. Also and it would be nice to log_info() if the option is enabled, to see it in the logs
fixes #4 Testing is pretty simple. Pack the charm and either deploy with
--config disable-unattended-upgrades=true
or change the config after deployment withjuju config landscape-client disable-unattended-upgrades=true
. Verify that/etc/apt/apt.conf.d/99landscapeoverride
exists and contains the settingAPT::Periodic::Unattended-Upgrade "0";
.A little trickier to test that unattended-upgrades do not happen, unless you happen to have some pending.