Mercurial > code > home > repos > infra
changeset 145:ee0384eebee5
minor
author | drewp@bigasterisk.com |
---|---|
date | Sat, 11 Mar 2023 11:22:48 -0800 |
parents | 476b23425f8c |
children | 2065998876e4 |
files | .vscode/settings.json package_lists.py sync.py system.py tasks.py users.py |
diffstat | 6 files changed, 34 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/.vscode/settings.json Sun Feb 19 21:35:22 2023 -0800 +++ b/.vscode/settings.json Sat Mar 11 11:22:48 2023 -0800 @@ -6,5 +6,6 @@ "python.formatting.provider": "yapf", "files.watcherExclude": { "_darcs_old/**": true - } + }, + "python.linting.mypyEnabled": false }
--- a/package_lists.py Sun Feb 19 21:35:22 2023 -0800 +++ b/package_lists.py Sat Mar 11 11:22:48 2023 -0800 @@ -103,29 +103,29 @@ ] audio_plugins = [ - 'amb-plugins', - 'ambdec', - 'autotalent', - 'blepvco', - 'blop', - 'bs2b-ladspa', - 'caps', - 'cmt', - 'csladspa', - 'dpf-plugins-ladspa', - 'fil-plugins', - 'guitarix-ladspa', - 'invada-studio-plugins-ladspa', - 'ladspa-sdk', - 'lsp-plugins-ladspa', - 'mcp-plugins', - 'omins', - 'rev-plugins', - 'ste-plugins', - 'swh-plugins', - 'tap-plugins', - 'vco-plugins', - 'wah-plugins', + 'amb-plugins', + 'ambdec', + 'autotalent', + 'blepvco', + 'blop', + 'bs2b-ladspa', + 'caps', + 'cmt', + 'csladspa', + 'dpf-plugins-ladspa', + 'fil-plugins', + 'guitarix-ladspa', + 'invada-studio-plugins-ladspa', + 'ladspa-sdk', + 'lsp-plugins-ladspa', + 'mcp-plugins', + 'omins', + 'rev-plugins', + 'ste-plugins', + 'swh-plugins', + 'tap-plugins', + 'vco-plugins', + 'wah-plugins', ] desktop = [
--- a/sync.py Sun Feb 19 21:35:22 2023 -0800 +++ b/sync.py Sat Mar 11 11:22:48 2023 -0800 @@ -11,3 +11,5 @@ systemd.service(service=f'syncthing@{user}', running=True, enabled=True) # also consider https://github.com/Martchus/syncthingtray tray status viewer on dtops + +# also consider https://github.com/Martchus/syncthingtray tray status viewer on dtops
--- a/system.py Sun Feb 19 21:35:22 2023 -0800 +++ b/system.py Sat Mar 11 11:22:48 2023 -0800 @@ -10,7 +10,6 @@ TZ = 'America/Los_Angeles' -server.hostname(hostname=host.name) def timezone(): files.link(path='/etc/localtime', target=f'/usr/share/zoneinfo/{TZ}') @@ -30,6 +29,7 @@ apt.key(src='https://packages.microsoft.com/keys/microsoft.asc') apt.key(src='https://deb.nodesource.com/gpgkey/nodesource.gpg.key') + # Failed to fetch https://repo.steampowered.com/steam/dists/stable/InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F24AEA9FB05498B7 def apt_sources(): if host.get_fact(Arch) == 'x86_64': @@ -65,7 +65,7 @@ # don't try to get aufs-dkms on rpi-- https://github.com/docker/for-linux/issues/709 -def podman_inecure_registry(): +def podman_insecure_registry(): files.template(src='templates/kube/podman_registries.conf.j2', dest='/etc/containers/registries.conf.d/bang.conf') @@ -95,6 +95,7 @@ dest=f'/etc/systemd/system/zfs_space_metrics.service') systemd.service(service=f'zfs_space_metrics', enabled=True, restarted=True, daemon_reload=True) +server.hostname(hostname=host.name) timezone() pkg_keys() apt_sources() @@ -108,7 +109,7 @@ files.template(src='templates/boot_config.txt.j2', dest='/boot/config.txt') if not is_pi: - podman_inecure_registry() + podman_insecure_registry() if host.name in ['bang', 'pipe']: no_sleep()
--- a/tasks.py Sun Feb 19 21:35:22 2023 -0800 +++ b/tasks.py Sat Mar 11 11:22:48 2023 -0800 @@ -18,10 +18,10 @@ def ssh(ctx): _run(ctx, 'ssh.py') @task -def system(ctx): _run(ctx, ' system.py') +def system(ctx): _run(ctx, 'system.py') @task -def packages(ctx): _run(ctx, ' packages.py') +def packages(ctx): _run(ctx, 'packages.py') @task def net(ctx): _run(ctx, 'net.py')
--- a/users.py Sun Feb 19 21:35:22 2023 -0800 +++ b/users.py Sat Mar 11 11:22:48 2023 -0800 @@ -28,6 +28,7 @@ server.group(group=group, system=True) server.group(group='drewp', gid=drewp_gid) +# this won't change existing drewp uid; I've been doing that myself. server.user(user='drewp', uid=drewp_uid, group='drewp', groups=drewp_groups) if not is_pi: