Mercurial > code > home > repos > infra
changeset 283:0befc8696a07
ws
author | drewp@bigasterisk.com |
---|---|
date | Mon, 15 Apr 2024 02:28:05 -0700 |
parents | e10ee3ddadcf |
children | a46eb2a77df7 |
files | apt.py net.py packages.py sync.py |
diffstat | 4 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/apt.py Mon Apr 15 02:27:07 2024 -0700 +++ b/apt.py Mon Apr 15 02:28:05 2024 -0700 @@ -87,6 +87,7 @@ # squib 1st setup seemed to need more updates for node(nodesource) # and steam-launcher + def flatpak_sources(): server.shell('flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo')
--- a/net.py Mon Apr 15 02:27:07 2024 -0700 +++ b/net.py Mon Apr 15 02:28:05 2024 -0700 @@ -5,6 +5,7 @@ is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux'] is_wifi = False + def cleanup(): # past attempts files.file(path='/etc/network/interfaces', present=False) @@ -96,7 +97,7 @@ create_remote_dir=True, ) apt.packages(packages=['network-manager'], present=False) - + systemd.service(service='systemd-networkd.service', enabled=True, running=True, restarted=True) # delete?
--- a/packages.py Mon Apr 15 02:27:07 2024 -0700 +++ b/packages.py Mon Apr 15 02:28:05 2024 -0700 @@ -33,11 +33,13 @@ "corepack prepare 'pnpm@8.6.3' --activate", ]) + def podman(): apt.packages(packages=['libsubid4', 'buildah', 'podman-docker'], latest=True) # frigate build wants to mount a single file from the host, which needs podman 4.5.1 # https://github.com/containers/podman/issues/12123#issuecomment-1620439593 - apt.deb(src="http://ftp.osuosl.org/pub/ubuntu/pool/universe/libp/libpod/podman_4.9.3+ds1-1_amd64.deb") + apt.deb(src="http://ftp.osuosl.org/pub/ubuntu/pool/universe/libp/libpod/podman_4.9.3+ds1-1_amd64.deb") + def pdm(): # https://github.com/pdm-project/pdm/blob/main/CHANGELOG.md @@ -112,7 +114,7 @@ apt.packages(packages=package_lists.k8s_node_with_nvidia_gpu(host.name)) # no kw, or apt will remove nvidia-utils-VERS (!) if host.name in ['dash', 'slash', 'ditto']: - podman() + podman() if host.name == 'ditto': # should have happened in the previous step, but it gets reverted.
--- a/sync.py Mon Apr 15 02:27:07 2024 -0700 +++ b/sync.py Mon Apr 15 02:28:05 2024 -0700 @@ -42,7 +42,7 @@ # primary instance is in k8s (/my/serv/filesync/syncthing); the rest are run with systemd. # Configs are in ~/.config/syncthing/ on each box -if host.name in ['dash', 'dot', 'slash', 'plus', 'bang' ,'ditto', 'pillow']: +if host.name in ['dash', 'dot', 'slash', 'plus', 'bang', 'ditto', 'pillow']: apt.packages(packages=['syncthing'], present=False) user = 'ari' if host.name == 'dot' else 'drewp'