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 d27275ad46 ci: Set global max failed logins on macOS 4 months ago
..
files mitogen: Fix non-blocking IO errors in first stage of bootstrap 5 months ago
group_vars CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 7 months ago
host_vars
roles ci: Set global max failed logins on macOS 4 months ago
README.md
_container_create.yml
_container_finalize.yml
_container_setup.yml CI: Fix ansible_version comparison with ansible-core 2.19.0rc1 7 months ago
_user_accounts.yml CI: Move sudo test users defaults into /etc/sudoers.d 5 months ago
ansible.cfg tests: Re-enable become/sudo tests, fix them on macOS runners 1 year ago
hosts.ini
macos_localhost.yml ci: Fix sshd configuration during image prep 11 months ago
py24-build.sh trivia: Fix trailing whitespace 1 year ago
py24.sh
setup.yml
tox.ini

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