Mercurial > code > home > repos > infra
diff apt.py @ 278:4e424a144183
for netboot pi
author | drewp@bigasterisk.com |
---|---|
date | Sat, 30 Mar 2024 00:15:46 -0700 |
parents | 0ed4add0b1a4 |
children | 5c5c314051c5 |
line wrap: on
line diff
--- a/apt.py Sat Mar 23 14:22:20 2024 -0700 +++ b/apt.py Sat Mar 30 00:15:46 2024 -0700 @@ -6,6 +6,7 @@ TZ = 'America/Los_Angeles' +is_pi = host.get_fact(LinuxDistribution)['name'] in ['Debian', 'Raspbian GNU/Linux'] def pkg_keys(): files.directory(path='/etc/apt/keyrings/') # for raspi @@ -34,7 +35,7 @@ ('https://nvidia.github.io/libnvidia-container/gpgkey', 'nvidia.gpg'), ] ]) - if host.get_fact(Arch) == 'armv7l' or host.name == 'bang': # I mean raspbian/debian + if is_pi or host.name == 'bang': # I mean raspbian/debian # this contaminates the apt-update files.file(path="/etc/apt/trusted.gpg.d/podman.asc", present=False)