canonical / landscape-client-charm

Apache License 2.0
1 stars 3 forks source link

support config for disabling unattended-upgrades #6

Closed Perfect5th closed 11 months ago

Perfect5th commented 11 months ago

fixes #4 Testing is pretty simple. Pack the charm and either deploy with --config disable-unattended-upgrades=true or change the config after deployment with juju config landscape-client disable-unattended-upgrades=true. Verify that /etc/apt/apt.conf.d/99landscapeoverride exists and contains the setting APT::Periodic::Unattended-Upgrade "0";.

A little trickier to test that unattended-upgrades do not happen, unless you happen to have some pending.

silverdrake11 commented 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