I’ve created a role, provision_docker, to help test Ansible roles and playbooks. It’s simple and leverages Docker (not vms).
Highlights:
- Best practice directory structure
- Test roles/playbooks using docker (spin up multiple hosts [1])
- Plays nicely with TravisCI, (see example repos below [1] [2] [3] [4])
- Curated Dockerfile’s centos 6/7 ubuntu 12.04/14.04 images w/ init system and ssh enabled
Example Uses:
-
HA mongo chrismeyersfsu/role-install_mongod
-
Ansible hacking/development env bringup chrismeyersfsu/ansible_test_deps
-
iptables chrismeyersfsu/role-iptables
-
devstack (openstack on a single machine) chrismeyersfsu/role-devstack
Feedback welcome!