Tests that install packages are failing due to repos/packages that are signed with this key. ```console $ wget https://ftp-master.debian.org/keys/archive-key-11-security.asc --2025-06-17 14:36:04-- https://ftp-master.debian.org/keys/archive-key-11-security.asc Resolving ftp-master.debian.org (ftp-master.debian.org)... 192.91.235.231 Connecting to ftp-master.debian.org (ftp-master.debian.org)|192.91.235.231|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 11873 (12K) [application/pgp-keys] Saving to: ‘archive-key-11-security.asc’ archive-key-11-security.asc 100%[=================>] 11.59K --.-KB/s in 0.002s 2025-06-17 14:36:05 (6.64 MB/s) - ‘archive-key-11-security.asc’ saved [11873/11873] $ sha256sum archive-key-11-security.asc 716e79393c724d14ecba8be46e99ecbe1b689f67ceff3cb3cab28f6e69e8b8b8 archive-key-11-security.asc $ cp archive-key-11-security.asc \ ~/src/mitogen/tests/image_prep/roles/package_manager/files/debian-archive-bullseye-security-automatic.asc ``` |
6 months ago | |
|---|---|---|
| .. | ||
| group_vars | 1 year ago | |
| host_vars | 5 years ago | |
| roles | 6 months ago | |
| README.md | 5 years ago | |
| _container_create.yml | 5 years ago | |
| _container_finalize.yml | 1 year ago | |
| _container_setup.yml | 10 months ago | |
| _user_accounts.yml | 10 months ago | |
| ansible.cfg | 1 year ago | |
| hosts.ini | 5 years ago | |
| macos_localhost.yml | 10 months ago | |
| py24-build.sh | 1 year ago | |
| py24.sh | 7 years ago | |
| setup.yml | 2 years ago | |
| tox.ini | 5 years ago | |
README.md
image_prep
This directory contains Ansible playbooks for building the Docker containers used for testing, or for setting up an OS X laptop so the tests can (mostly) run locally.
The Docker config is more heavily jinxed to trigger adverse conditions in the code, the OS X config just has the user accounts.
See ../README.md for a (mostly) description of the accounts created.
Building the containers
No single version of Ansible supports every Linux distribution that we target. To workaround this Tox is used, to install and run multiple versions of Ansible, in Python virtualenvs.
tox
Preparing an OS X box
WARNING: this creates a ton of accounts with preconfigured passwords. It is generally impossible to restrict remote access to these, so your only option is to disable remote login and sharing.
ansible-playbook -b -c local -i localhost, -l localhost setup.yml