All Projects → geerlingguy → ansible-role-test-vms

geerlingguy / ansible-role-test-vms

Licence: MIT license
DEPRECATED - A Vagrant configuration to test Ansible roles against a variety of Linux distributions.

Projects that are alternatives of or similar to ansible-role-test-vms

Packer Centos 6
This build has been moved - see README.md
Stars: ✭ 78 (+85.71%)
Mutual labels:  vagrant, virtualbox, vmware, centos, fusion
docker-hands-on-guide
Hands on guide for docker, k8s cluster lightweight virtualization.
Stars: ✭ 25 (-40.48%)
Mutual labels:  vagrant, virtualbox, vmware, centos
Robox
The tools needed to robotically create/configure/provision a large number of operating systems, for a variety of hypervisors, using packer.
Stars: ✭ 303 (+621.43%)
Mutual labels:  vagrant, virtualbox, vmware, centos
Bento
Packer templates for building minimal Vagrant baseboxes for multiple platforms
Stars: ✭ 3,779 (+8897.62%)
Mutual labels:  vagrant, virtualbox, vmware, centos
Packer Ubuntu 1804
This build has been moved - see README.md
Stars: ✭ 101 (+140.48%)
Mutual labels:  vagrant, virtualbox, vmware, fusion
packer-centos
Create CentOS images for different hypervisors with Packer
Stars: ✭ 18 (-57.14%)
Mutual labels:  vagrant, virtualbox, vmware, centos
insaneworks-packer-template
CentOS 7-8 8Stream / AlmaLinux 8 / FreeBSD 12 - 13 x64 + VirtualBox / VMWare for Packer Template + FreeBSD 13 / AlmaLinux 9 + Parallels
Stars: ✭ 38 (-9.52%)
Mutual labels:  vagrant, virtualbox, vmware, centos
upstream-institute-virtual-environment
A Vagrant-based image creator for OpenStack Upstream Training sessions
Stars: ✭ 18 (-57.14%)
Mutual labels:  vagrant, virtualbox, vmware
packer-ubuntu
No description or website provided.
Stars: ✭ 29 (-30.95%)
Mutual labels:  vagrant, virtualbox, vmware
Packer Templates
Packer templates for Vagrant base boxes
Stars: ✭ 471 (+1021.43%)
Mutual labels:  vagrant, virtualbox, vmware
Osx Vm Templates
macOS templates for Packer and VeeWee.
Stars: ✭ 1,050 (+2400%)
Mutual labels:  vagrant, virtualbox, vmware
packer-windows
Windows Templates for Packer: Windows 11, Windows 10, Windows Server 2022, 2019, 2016, also with Docker
Stars: ✭ 1,116 (+2557.14%)
Mutual labels:  vagrant, virtualbox, vmware
Vagrant Boxes
baseboxes build with packer.io for use with vagrant
Stars: ✭ 291 (+592.86%)
Mutual labels:  vagrant, virtualbox, vmware
ansible virtualization
Ansible Collection: Virtualization roles
Stars: ✭ 31 (-26.19%)
Mutual labels:  vagrant, virtualbox, vmware
Packer Boxes
Jeff Geerling's Packer build configurations for Vagrant boxes.
Stars: ✭ 495 (+1078.57%)
Mutual labels:  vagrant, virtualbox, centos
nodejs-dev-vm
DEPRECATED Simple Node.js Development VM using Vagrant + VirtualBox + Ansible
Stars: ✭ 25 (-40.48%)
Mutual labels:  vagrant, virtualbox, vms
ansible-role-packer-debian
Ansible Role - Packer Debian/Ubuntu Configuration for Vagrant VirtualBox
Stars: ✭ 32 (-23.81%)
Mutual labels:  virtualbox, vmware, fusion
Vagrant Docker Vm
💻 Development Vagrant VM with Docker, Samba and Mail sandbox (customizable)
Stars: ✭ 97 (+130.95%)
Mutual labels:  vagrant, virtualbox, vmware
Vagrant Box Templates
Stars: ✭ 100 (+138.1%)
Mutual labels:  vagrant, virtualbox, centos
Packer Centos 7
This build has been moved - see README.md
Stars: ✭ 223 (+430.95%)
Mutual labels:  vagrant, virtualbox, centos

(DEPRECATED) Multi-Platform Ansible Role and Playbook Test VMs

Deprecation Notice: I no longer maintain this repository. Please see my book, Ansible for DevOps, for more suggestions for local development and testing of Ansible roles and playbooks.

I maintain hundreds of roles on Ansible Galaxy, and dozens more locally. Since I run both CentOS (a RedHat derivative) and Ubuntu/Debian-based servers, I like to have a reliable platform to test my roles and playbooks everywhere with minimal effort.

On GitHub, I generally use Travis CI to run a minimal set of tests against the Travis CI environment (currently Ubuntu 12.04). I wrote about this setup on the Server Check.in Blog: Testing Ansible Roles with Travis CI on GitHub. It's impossible to bootstrap extra test VMs inside the Travis environment due to Travis' use of OpenVZ. Thus, to run Ansible playbooks against CentOS and other versions of Ubuntu, I have to rely on a local configuration.

For this, I use Vagrant and some VirtualBox boxes that I build to follow the latest releases of the OSes I support. Currently, you can find the boxes I use on Atlas (they are hosted at files.midwesternmac.com), and this project runs a playbook against the following OSes:

  • Ubuntu 12.04.x (192.168.3.4)
  • Ubuntu 14.04.x (192.168.3.3)
  • Ubuntu 16.04.x (192.168.3.2)
  • CentOS 6.x (192.168.3.6)
  • CentOS 7.x (192.168.3.5)

The project is extremely simple, and simply requires Vagrant, VirtualBox, and Ansible to be installed on your host machine.

Testing a Role

To test a role, the role must be installed on your host machine (you can install galaxy roles via $ ansible-galaxy install [rolename], but this project is more focused on testing roles you'd be working on locally). Just add the role to playbook.yml and run vagrant up.

It should take a few minutes to download each of the base boxes the first time, but after that, it takes about a minute to boot each VM, then run the playbook with your role(s).

After testing a role, you can destroy the four VMs with vagrant destroy -f. You can also just build one particular VM with vagrant up ubuntu1204 (as an example), or re-run the ansible playbook with vagrant provision ubuntu1204.

License

MIT

Author Information

Created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].