Skip to content

Commit 4165de4

Browse files
committed
...
1 parent 760f88e commit 4165de4

12 files changed

+160
-238
lines changed

ansible/files/20auto-upgrades

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
APT::Periodic::Update-Package-Lists "1";
2+
APT::Periodic::Unattended-Upgrade "1";

ansible/hosts.ini

Whitespace-only changes.

ansible/main.yml

Whitespace-only changes.

ansible/tasks/unattended-upgrades.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
- name: "unattended-upgrades: Install"
2+
apt:
3+
name: unattended-upgrades
4+
update_cache: yes
5+
cache_valid_time: 600 # 10 minutes
6+
7+
- name: "unattended-upgrades: Install config file"
8+
template:
9+
src: "50unattended-upgrades.j2"
10+
dest: /etc/apt/apt.conf.d/50unattended-upgrades
11+
12+
- name: "unattended-upgrades: Activate"
13+
copy:
14+
src: 20auto-upgrades
15+
dest: /etc/apt/apt.conf.d/20auto-upgrades
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
// Automatically upgrade packages from these (origin:archive) pairs
2+
//
3+
// Note that in Ubuntu security updates may pull in new dependencies
4+
// from non-security sources (e.g. chromium). By allowing the release
5+
// pocket these get automatically pulled in.
6+
Unattended-Upgrade::Allowed-Origins {
7+
"${distro_id}:${distro_codename}";
8+
"${distro_id}:${distro_codename}-security";
9+
// Extended Security Maintenance; doesn't necessarily exist for
10+
// every release and this system may not have it installed, but if
11+
// available, the policy for updates is such that unattended-upgrades
12+
// should also install from here by default.
13+
"${distro_id}ESMApps:${distro_codename}-apps-security";
14+
"${distro_id}ESM:${distro_codename}-infra-security";
15+
// "${distro_id}:${distro_codename}-updates";
16+
// "${distro_id}:${distro_codename}-proposed";
17+
// "${distro_id}:${distro_codename}-backports";
18+
};
19+
20+
// Python regular expressions, matching packages to exclude from upgrading
21+
Unattended-Upgrade::Package-Blacklist {
22+
// The following matches all packages starting with linux-
23+
// "linux-";
24+
25+
// Use $ to explicitely define the end of a package name. Without
26+
// the $, "libc6" would match all of them.
27+
// "libc6$";
28+
// "libc6-dev$";
29+
// "libc6-i686$";
30+
31+
// Special characters need escaping
32+
// "libstdc\+\+6$";
33+
34+
// The following matches packages like xen-system-amd64, xen-utils-4.1,
35+
// xenstore-utils and libxenstore3.0
36+
// "(lib)?xen(store)?";
37+
38+
// For more information about Python regular expressions, see
39+
// https://docs.python.org/3/howto/regex.html
40+
};
41+
42+
// This option controls whether the development release of Ubuntu will be
43+
// upgraded automatically. Valid values are "true", "false", and "auto".
44+
Unattended-Upgrade::DevRelease "auto";
45+
46+
// This option allows you to control if on a unclean dpkg exit
47+
// unattended-upgrades will automatically run
48+
// dpkg --force-confold --configure -a
49+
// The default is true, to ensure updates keep getting installed
50+
//Unattended-Upgrade::AutoFixInterruptedDpkg "true";
51+
52+
// Split the upgrade into the smallest possible chunks so that
53+
// they can be interrupted with SIGTERM. This makes the upgrade
54+
// a bit slower but it has the benefit that shutdown while a upgrade
55+
// is running is possible (with a small delay)
56+
//Unattended-Upgrade::MinimalSteps "true";
57+
58+
// Install all updates when the machine is shutting down
59+
// instead of doing it in the background while the machine is running.
60+
// This will (obviously) make shutdown slower.
61+
// Unattended-upgrades increases logind's InhibitDelayMaxSec to 30s.
62+
// This allows more time for unattended-upgrades to shut down gracefully
63+
// or even install a few packages in InstallOnShutdown mode, but is still a
64+
// big step back from the 30 minutes allowed for InstallOnShutdown previously.
65+
// Users enabling InstallOnShutdown mode are advised to increase
66+
// InhibitDelayMaxSec even further, possibly to 30 minutes.
67+
//Unattended-Upgrade::InstallOnShutdown "false";
68+
69+
// Send email to this address for problems or packages upgrades
70+
// If empty or unset then no email is sent, make sure that you
71+
// have a working mail setup on your system. A package that provides
72+
// 'mailx' must be installed. E.g. "user@example.com"
73+
//Unattended-Upgrade::Mail "root";
74+
75+
// Set this value to one of:
76+
// "always", "only-on-error" or "on-change"
77+
// If this is not set, then any legacy MailOnlyOnError (boolean) value
78+
// is used to chose between "only-on-error" and "on-change"
79+
//Unattended-Upgrade::MailReport "on-change";
80+
81+
// Remove unused automatically installed kernel-related packages
82+
// (kernel images, kernel headers and kernel version locked tools).
83+
//Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
84+
85+
// Do automatic removal of newly unused dependencies after the upgrade
86+
//Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
87+
88+
// Do automatic removal of unused packages after the upgrade
89+
// (equivalent to apt-get autoremove)
90+
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
91+
92+
// Automatically reboot *WITHOUT CONFIRMATION* if
93+
// the file /var/run/reboot-required is found after the upgrade
94+
//Unattended-Upgrade::Automatic-Reboot "false";
95+
96+
// Automatically reboot even if there are users currently logged in
97+
// when Unattended-Upgrade::Automatic-Reboot is set to true
98+
//Unattended-Upgrade::Automatic-Reboot-WithUsers "true";
99+
100+
// If automatic reboot is enabled and needed, reboot at the specific
101+
// time instead of immediately
102+
// Default: "now"
103+
//Unattended-Upgrade::Automatic-Reboot-Time "02:00";
104+
105+
// Use apt bandwidth limit feature, this example limits the download
106+
// speed to 70kb/sec
107+
//Acquire::http::Dl-Limit "70";
108+
109+
// Enable logging to syslog. Default is False
110+
// Unattended-Upgrade::SyslogEnable "false";
111+
112+
// Specify syslog facility. Default is daemon
113+
// Unattended-Upgrade::SyslogFacility "daemon";
114+
115+
// Download and install upgrades only on AC power
116+
// (i.e. skip or gracefully stop updates on battery)
117+
// Unattended-Upgrade::OnlyOnACPower "true";
118+
119+
// Download and install upgrades only on non-metered connection
120+
// (i.e. skip or gracefully stop updates on a metered connection)
121+
// Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";
122+
123+
// Verbose logging
124+
// Unattended-Upgrade::Verbose "false";
125+
126+
// Print debugging information both in unattended-upgrades and
127+
// in unattended-upgrade-shutdown
128+
// Unattended-Upgrade::Debug "false";
129+
130+
// Allow package downgrade if Pin-Priority exceeds 1000
131+
// Unattended-Upgrade::Allow-downgrade "false";
132+
133+
// When APT fails to mark a package to be upgraded or installed try adjusting
134+
// candidates of related packages to help APT's resolver in finding a solution
135+
// where the package can be upgraded or installed.
136+
// This is a workaround until APT's resolver is fixed to always find a
137+
// solution if it exists. (See Debian bug #711128.)
138+
// The fallback is enabled by default, except on Debian's sid release because
139+
// uninstallable packages are frequent there.
140+
// Disabling the fallback speeds up unattended-upgrades when there are
141+
// uninstallable packages at the expense of rarely keeping back packages which
142+
// could be upgraded or installed.
143+
// Unattended-Upgrade::Allow-APT-Mark-Fallback "true";

kubernetes/gateway-deployment.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.

kubernetes/gateway-ingress.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

kubernetes/gateway-network-policy.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

kubernetes/gateway-nginx-config.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

kubernetes/gateway-service.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)