Mercurial > code > home > repos > infra
changeset 189:ef443257ae9c
new host 'squib'
author | drewp@bigasterisk.com |
---|---|
date | Mon, 12 Jun 2023 13:01:59 -0700 |
parents | 087b84e68765 |
children | 21d67aae89c0 |
files | inventory.py net.py package_lists.py packages.py templates/sources.list.j2 |
diffstat | 5 files changed, 15 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/inventory.py Mon Jun 12 13:00:27 2023 -0700 +++ b/inventory.py Mon Jun 12 13:01:59 2023 -0700 @@ -21,7 +21,10 @@ }), ('ditto', { 'wireguard_address': '10.5.0.7', - }) + }), + ('squib', { + 'wireguard_address': '10.5.0.32', + }), ] small = [
--- a/net.py Mon Jun 12 13:00:27 2023 -0700 +++ b/net.py Mon Jun 12 13:01:59 2023 -0700 @@ -40,7 +40,7 @@ ]) # needs reboot if this changed -if host.name in ['slash', 'dash', 'ditto']: +if host.name in ['slash', 'dash', 'ditto', 'squib']: pass # don't break k3s networking! the else-part really breaks it else: server.sysctl(key='net.ipv6.conf.all.disable_ipv6', value=1, persist=True)
--- a/package_lists.py Mon Jun 12 13:00:27 2023 -0700 +++ b/package_lists.py Mon Jun 12 13:01:59 2023 -0700 @@ -256,6 +256,9 @@ 'kbd', 'libnvidia-cfg1-520', 'libnvidia-common-520', + + # squib GT640 needs driver 470 + # not on slash ,maybe needed for dash/steam? # 'libnvidia-compute-520:i386', 'libnvidia-compute-520',
--- a/packages.py Mon Jun 12 13:00:27 2023 -0700 +++ b/packages.py Mon Jun 12 13:01:59 2023 -0700 @@ -73,7 +73,7 @@ if host.name == 'plus': apt.packages(packages=package_lists.laptop, **kw) -desktop_env = host.name in ['dash', 'slash', 'plus'] +desktop_env = host.name in ['dash', 'slash', 'plus', 'squib'] if desktop_env: apt.deb(src="http://mirrors.kernel.org/ubuntu/pool/universe/libp/libpod/podman_4.3.1+ds1-5ubuntu1_amd64.deb") apt.deb(src="http://mirrors.kernel.org/ubuntu/pool/universe/libp/libpod/podman-docker_4.3.1+ds1-5ubuntu1_amd64.deb")
--- a/templates/sources.list.j2 Mon Jun 12 13:00:27 2023 -0700 +++ b/templates/sources.list.j2 Mon Jun 12 13:01:59 2023 -0700 @@ -1,18 +1,18 @@ # written by pyinfra -{% if host.name in ['dash', 'slash', 'dot', 'plus'] %} +{% if host.name in ['dash', 'squib', 'slash', 'dot', 'plus'] %} deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/ms.gpg] http://packages.microsoft.com/repos/code stable main {% endif %} -{% if host.name in ['dash', 'slash', 'dot', 'plus'] %} +{% if host.name in ['dash', 'squib', 'slash', 'dot', 'plus'] %} deb [arch=amd64 signed-by=/etc/apt/keyrings/chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main {% endif %} -{% if host.name in ['dash', 'slash', 'dot', 'plus'] %} +{% if host.name in ['dash', 'squib', 'slash', 'dot', 'plus'] %} deb [arch=amd64,i386 signed-by=/etc/apt/keyrings/steam.gpg] https://repo.steampowered.com/steam/ stable steam {% endif %} -{% if host.name in ['dash', 'bang', 'ditto', 'slash', 'plus'] %} +{% if host.name in ['dash', 'squib', 'bang', 'ditto', 'slash', 'plus'] %} # podman # see packages.py #deb [arch=amd64 signed-by=/etc/apt/keyrings/podman.gpg] https://download.opensuse.org/repositories/devel:kubic:libcontainers:unstable/xUbuntu_22.04/ / @@ -21,11 +21,11 @@ {% if host.name in ['bang', 'dot', 'plus'] %} deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x jammy main {% endif %} -{% if host.name in ['dash', 'ditto', 'slash'] %} +{% if host.name in ['dash', 'squib', 'ditto', 'slash'] %} deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x kinetic main {% endif %} -{% if host.name in ['dash', 'ditto', 'slash'] %} +{% if host.name in ['dash', 'squib', 'ditto', 'slash'] %} deb http://us.archive.ubuntu.com/ubuntu kinetic main restricted deb http://us.archive.ubuntu.com/ubuntu kinetic multiverse deb http://us.archive.ubuntu.com/ubuntu kinetic universe