You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mitogen/tests/image_prep
Alex Willmer 3a1b5ec620 CI: Increase sshd MaxAuthRetries to 50 on macOS runners
refs #1186
3 weeks ago
..
group_vars ci: Extract container registry location into variables 2 months ago
host_vars tests: Add centos 8; debian 10, 11; ubuntu 16.04, 18.04, 20.04 test images 4 years ago
roles/sshd CI: Increase sshd MaxAuthRetries to 50 on macOS runners 3 weeks ago
README.md tests: Rebuild Docker containers 4 years ago
_container_create.yml tests: Rebuild Docker containers 4 years ago
_container_finalize.yml ci: Extract container registry location into variables 2 months ago
_container_setup.yml CI: Refactor sshd configuration into a role 3 weeks ago
_user_accounts.yml tests: Re-enable become/sudo tests, fix them on macOS runners 1 month ago
ansible.cfg tests: Re-enable become/sudo tests, fix them on macOS runners 1 month ago
hosts.ini tests: Add centos 8; debian 10, 11; ubuntu 16.04, 18.04, 20.04 test images 4 years ago
macos_localhost.yml CI: Increase sshd MaxAuthRetries to 50 on macOS runners 3 weeks ago
py24-build.sh trivia: Fix trailing whitespace 2 months ago
py24.sh issue #477: import updated Python build scripts 6 years ago
setup.yml tests: Replace uses of ``include:``, unify skipping of mitogen only tests 8 months ago
tox.ini tests: Rebuild Docker containers 4 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