Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make upgrades more configurable #128

Open
nandi95 opened this issue Jun 8, 2024 · 1 comment
Open

Make upgrades more configurable #128

nandi95 opened this issue Jun 8, 2024 · 1 comment
Labels

Comments

@nandi95
Copy link

nandi95 commented Jun 8, 2024

I would only want to run upgrades once a week hence my 50periodic would look like this:

APT::Periodic::Update-Package-Lists "7";
APT::Periodic::Download-Upgradeable-Packages "7";
APT::Periodic::AutocleanInterval "7";
APT::Periodic::Unattended-Upgrade "7";

If I run multiple nodes and I have set restart to true I wouldn't want to have all nodes restarting at the same time so my overrides.conf at /etc/systemd/system/apt-daily-upgrade.timer.d/override.conf would look like this

[Timer]
OnCalendar=
OnCalendar=Sun *-*-* 04:00:00
# if multiple nodes are running, add a random delay to avoid all nodes
# running upgrades at the same time (in case restart is enabled)
RandomizedDelaySec=1h

Furthermore what if I only want to run security updates meaning my 50unattended-upgrades will look like the following

Unattended-Upgrade::Origins-Pattern {
    "origin=Debian,codename=${distro_codename},label=Debian-Security";
    "origin=Debian,codename=${distro_codename}-security,label=Debian-Security";
};

Given the number of configuration options I would perhaps recommend copying in files. files of which the path the user can define.

Copy link

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant