Test Ansible roles and playbooks using Docker

40 views
Skip to first unread message

chris meyers

unread,
Dec 31, 2015, 11:52:50 AM12/31/15
to Ansible Project
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:
  1. HA mongo chrismeyersfsu/role-install_mongod
  2. Ansible hacking/development env bringup chrismeyersfsu/ansible_test_deps
  3. iptables chrismeyersfsu/role-iptables
  4. devstack (openstack on a single machine) chrismeyersfsu/role-devstack

Feedback welcome!


Reply all
Reply to author
Forward
0 new messages