changeset 126:fe3ae7c95e65

collect all apt/sources.list into a central template
author drewp@bigasterisk.com
date Wed, 21 Dec 2022 12:36:06 -0800
parents faccf5f8c808
children 00b57ae2990e
files packages.py system.py tasks.py templates/odroid_sources.list.j2 templates/pi_sources.list.j2 templates/sources.list.j2
diffstat 6 files changed, 397 insertions(+), 37 deletions(-) [+]
line wrap: on
line diff
--- a/packages.py	Wed Dec 07 23:16:27 2022 -0800
+++ b/packages.py	Wed Dec 21 12:36:06 2022 -0800
@@ -62,7 +62,6 @@
 
 if host.name == 'pipe':
     apt.packages(packages=['apt-listchanges'], present=False)
-    files.template(src='templates/odroid_sources.list.j2', dest='/etc/apt/sources.list', rel='focal')
 elif is_pi:
     pi_sources()
 
--- a/system.py	Wed Dec 07 23:16:27 2022 -0800
+++ b/system.py	Wed Dec 21 12:36:06 2022 -0800
@@ -2,6 +2,7 @@
 
 from pyinfra import host
 from pyinfra.facts.server import LinuxDistribution
+from pyinfra.facts.files import FindFiles
 from pyinfra.operations import apt, files, server, systemd
 
 is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux']
@@ -13,6 +14,13 @@
 def timezone():
     files.link(path='/etc/localtime', target=f'/usr/share/zoneinfo/{TZ}')
     files.replace(path='/etc/timezone', text='.*', replace=TZ)
+    
+def apt_sources():
+    server.shell(commands=['dpkg --add-architecture i386'])
+
+    files.template(src='templates/sources.list.j2', dest='/etc/apt/sources.list.j2')
+    if host.get_fact(FindFiles, '/etc/apt/sources.list.d/', quote_path=True):
+        raise SystemExit(f"new files in {host.name} /etc/apt/sources.list.d/ - please remove")
     apt.packages(update=True,
                 cache_time=86400,
                 packages=['tzdata'],
@@ -71,6 +79,7 @@
     systemd.service(service=f'zfs_space_metrics', enabled=True, restarted=True, daemon_reload=True)
 
 timezone()
+apt_sources()
 fstab()
 
 if not is_pi:
@@ -90,4 +99,4 @@
     zfs_metrics()
 
 if host.name == 'prime':
-    smaller_journals()
\ No newline at end of file
+    smaller_journals()
--- a/tasks.py	Wed Dec 07 23:16:27 2022 -0800
+++ b/tasks.py	Wed Dec 21 12:36:06 2022 -0800
@@ -109,7 +109,7 @@
     # https://github.com/Fizzadar/pyinfra/issues/787
     #ctx.run(' '.join([cmd, 'inventory.py'] + configs), pty=True)
     for c in configs:
-        ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True, warn=True)
+        ctx.run(' '.join([cmd, 'inventory.py', c]), pty=True)
     ctx.run('touch /my/proj/infra/ran_all.timestamp')
 
 
--- a/templates/odroid_sources.list.j2	Wed Dec 07 23:16:27 2022 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }} main restricted
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }} main restricted
-
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-updates main restricted
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-updates main restricted
-
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }} universe
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }} universe
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-updates universe
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-updates universe
-
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }} multiverse
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }} multiverse
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-updates multiverse
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-updates multiverse
-
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-backports main restricted universe multiverse
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-backports main restricted universe multiverse
-
-deb http://archive.canonical.com/ubuntu {{ rel }} partner
-deb-src http://archive.canonical.com/ubuntu {{ rel }} partner
-
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-security main restricted
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-security main restricted
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-security universe
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-security universe
-deb http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-security multiverse
-deb-src http://ports.ubuntu.com/ubuntu-ports/ {{ rel }}-security multiverse
\ No newline at end of file
--- a/templates/pi_sources.list.j2	Wed Dec 07 23:16:27 2022 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# written by pyinfra
-
-deb http://archive.raspberrypi.org/debian/ {{rel}} main
-deb http://raspbian.raspberrypi.org/raspbian/ {{rel}} main contrib non-free rpi
-#deb http://security.debian.org/ {{rel}}/updates main contrib non-free rpi
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/sources.list.j2	Wed Dec 21 12:36:06 2022 -0800
@@ -0,0 +1,386 @@
+{% if host.name in ['dash'] %}
+
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy main restricted
+
+## Major bug fix updates produced after the final release of the
+## distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team. Also, please note that software in universe WILL NOT receive any
+## review or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team, and may not be under a free licence. Please satisfy yourself as to
+## your rights to use the software. Also, please note that software in
+## multiverse WILL NOT receive any review or updates from the Ubuntu
+## security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy multiverse
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+
+## N.B. software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+
+deb http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+deb http://us.archive.ubuntu.com/ubuntu jammy-security universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+#deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
+#deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+#deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+deb [arch=amd64 signed-by=/etc/apt/keyrings/devel_kubic_libcontainers_unstable.gpg]    https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_22.04/ /
+
+{% endif %}
+
+{% if host.name in ['bang'] %}
+
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy main restricted
+
+## Major bug fix updates produced after the final release of the
+## distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team. Also, please note that software in universe WILL NOT receive any
+## review or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team, and may not be under a free licence. Please satisfy yourself as to
+## your rights to use the software. Also, please note that software in
+## multiverse WILL NOT receive any review or updates from the Ubuntu
+## security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy multiverse
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+
+## N.B. software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+
+deb http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+deb http://us.archive.ubuntu.com/ubuntu jammy-security universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+{% endif %}
+{% if host.name in ['slash'] %}
+
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy main restricted
+
+## Major bug fix updates produced after the final release of the
+## distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team. Also, please note that software in universe WILL NOT receive any
+## review or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team, and may not be under a free licence. Please satisfy yourself as to
+## your rights to use the software. Also, please note that software in
+## multiverse WILL NOT receive any review or updates from the Ubuntu
+## security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy multiverse
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+
+## N.B. software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+
+deb http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+deb http://us.archive.ubuntu.com/ubuntu jammy-security universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+
+                   
+### THIS FILE IS AUTOMATICALLY CONFIGURED ###
+# You may comment out this entry, but any other modifications may be lost.
+deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+
+# Uncomment these lines to try the beta version of the Steam launcher
+#deb [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
+#deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
+### THIS FILE IS AUTOMATICALLY CONFIGURED ###
+# You may comment out this entry, but any other modifications may be lost.
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+
+
+{% endif %}
+{% if host.name in ['dot'] %}
+
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy main restricted
+
+## Major bug fix updates produced after the final release of the
+## distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team. Also, please note that software in universe WILL NOT receive any
+## review or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team, and may not be under a free licence. Please satisfy yourself as to
+## your rights to use the software. Also, please note that software in
+## multiverse WILL NOT receive any review or updates from the Ubuntu
+## security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy multiverse
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+
+## N.B. software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+
+deb http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+deb http://us.archive.ubuntu.com/ubuntu jammy-security universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+
+
+### THIS FILE IS AUTOMATICALLY CONFIGURED ###
+# You may comment out this entry, but any other modifications may be lost.
+deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+
+# Uncomment these lines to try the beta version of the Steam launcher
+#deb [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
+#deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
+### THIS FILE IS AUTOMATICALLY CONFIGURED ###
+# You may comment out this entry, but any other modifications may be lost.
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+{% endif %}
+{% if host.name in ['pipe'] %}
+
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy main restricted
+
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates main restricted
+
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy universe
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates universe
+
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy multiverse
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy multiverse
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-updates multiverse
+
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-backports main restricted universe multiverse
+
+deb http://archive.canonical.com/ubuntu jammy partner
+deb-src http://archive.canonical.com/ubuntu jammy partner
+
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security main restricted
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-security universe
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security universe
+deb http://ports.ubuntu.com/ubuntu-ports/ jammy-security multiverse
+deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy-security multiverse
+deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+
+deb https://packages.ntop.org/apt-stable/20.04/ x64/
+deb https://packages.ntop.org/apt-stable/20.04/ all/
+deb https://packages.ntop.org/apt-stable/20.04/ x64/
+deb https://packages.ntop.org/apt-stable/20.04/ all/
+deb http://deb.odroid.in/n2/ jammy main
+deb http://deb.odroid.in/n2/ focal main
+{% endif %}
+{% if host.name in ['garage'] %}
+
+deb http://archive.raspberrypi.org/debian/ bullseye main
+deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi
+#deb http://security.debian.org/ bullseye/updates main contrib non-free rpi
+{% endif %}
+{% if host.name in ['prime'] %}
+
+
+# deb cdrom:[Ubuntu-Server 13.10 _Saucy Salamander_ - Release amd64 (20131016)]/ saucy main restricted
+
+# deb cdrom:[Ubuntu-Server 13.10 _Saucy Salamander_ - Release amd64 (20131016)]/ saucy main restricted
+
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic main restricted
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic main restricted
+
+#  # Major bug fix updates produced after the final release of the
+#  # distribution.
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic-updates main restricted
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic-updates main restricted
+
+#  # N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+#  # team. Also, please note that software in universe WILL NOT receive any
+#  # review or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic universe
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic universe
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic-updates universe
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic-updates universe
+
+#  # N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+#  # team, and may not be under a free licence. Please satisfy yourself as to
+#  # your rights to use the software. Also, please note that software in
+#  # multiverse WILL NOT receive any review or updates from the Ubuntu
+#  # security team.
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic multiverse
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic multiverse
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic-updates multiverse
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic-updates multiverse
+
+#  # N.B. software from this repository may not have been tested as
+#  # extensively as that contained in the main release, although it includes
+#  # newer versions of some applications which may provide useful features.
+#  # Also, please note that software in backports WILL NOT receive any review
+#  # or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu/ kinetic-backports main restricted universe multiverse
+deb-src http://us.archive.ubuntu.com/ubuntu/ kinetic-backports main restricted universe multiverse
+
+deb http://security.ubuntu.com/ubuntu kinetic-security main restricted
+deb-src http://security.ubuntu.com/ubuntu kinetic-security main restricted
+deb http://security.ubuntu.com/ubuntu kinetic-security universe
+deb-src http://security.ubuntu.com/ubuntu kinetic-security universe
+deb http://security.ubuntu.com/ubuntu kinetic-security multiverse
+deb-src http://security.ubuntu.com/ubuntu kinetic-security multiverse
+{% endif %}
+{% if host.name in ['plus'] %}
+
+# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
+# newer versions of the distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy main restricted
+
+## Major bug fix updates produced after the final release of the
+## distribution.
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates main restricted
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team. Also, please note that software in universe WILL NOT receive any
+## review or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates universe
+
+## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
+## team, and may not be under a free licence. Please satisfy yourself as to
+## your rights to use the software. Also, please note that software in
+## multiverse WILL NOT receive any review or updates from the Ubuntu
+## security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy multiverse
+deb http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-updates multiverse
+
+## N.B. software from this repository may not have been tested as
+## extensively as that contained in the main release, although it includes
+## newer versions of some applications which may provide useful features.
+## Also, please note that software in backports WILL NOT receive any review
+## or updates from the Ubuntu security team.
+deb http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
+
+deb http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security main restricted
+deb http://us.archive.ubuntu.com/ubuntu jammy-security universe
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security universe
+deb http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+# deb-src http://us.archive.ubuntu.com/ubuntu jammy-security multiverse
+
+
+deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
+
+
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+# deb-src [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+### THIS FILE IS AUTOMATICALLY CONFIGURED ###
+# You may comment out this entry, but any other modifications may be lost.
+deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
+deb [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ stable steam
+
+# Uncomment these lines to try the beta version of the Steam launcher
+# deb [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
+# deb-src [arch=amd64,i386] https://repo.steampowered.com/steam/ beta steam
+### THIS FILE IS AUTOMATICALLY CONFIGURED ###
+# You may comment out this entry, but any other modifications may be lost.
+deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
+{% endif %}