Mercurial > code > home > repos > infra
comparison apt.py @ 297:d000aead76d4
add tofu
author | drewp@bigasterisk.com |
---|---|
date | Wed, 15 May 2024 17:38:52 -0700 |
parents | 65e28d2e0cd8 |
children | f17d9925a2aa |
comparison
equal
deleted
inserted
replaced
296:a3b7b558b9b5 | 297:d000aead76d4 |
---|---|
21 files.file(path='/etc/apt/trusted.gpg.d/microsoft.gpg', present=False) | 21 files.file(path='/etc/apt/trusted.gpg.d/microsoft.gpg', present=False) |
22 | 22 |
23 # and it makes this, which is redundant with my sources.list template line | 23 # and it makes this, which is redundant with my sources.list template line |
24 files.file(path='/etc/apt/sources.list.d/vscode.list', present=False) | 24 files.file(path='/etc/apt/sources.list.d/vscode.list', present=False) |
25 | 25 |
26 apt.packages(packages=['curl']) | 26 apt.packages(packages=['curl', 'gpg']) |
27 server.shell(commands=[ | 27 server.shell(commands=[ |
28 f"curl -fsSL {shlex.quote(url)} | gpg --dearmor > /etc/apt/keyrings/{name}" for (url, name) in [ | 28 f"curl -fsSL {shlex.quote(url)} | gpg --dearmor > /etc/apt/keyrings/{name}" for (url, name) in [ |
29 ('https://packages.microsoft.com/keys/microsoft.asc', 'ms.gpg'), | 29 ('https://packages.microsoft.com/keys/microsoft.asc', 'ms.gpg'), |
30 ('https://deb.nodesource.com/gpgkey/nodesource.gpg.key', 'nodesource-older.gpg'), # rm after everything's on 23.10 | 30 ('https://deb.nodesource.com/gpgkey/nodesource.gpg.key', 'nodesource-older.gpg'), # rm after everything's on 23.10 |
31 ('https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', 'nodesource.gpg'), | 31 ('https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', 'nodesource.gpg'), |