franzqat / Code-Challenge-Infrastructure

Setup Vagrant for Provisioning two VM with Ansible with Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Challenge Infrastructure

Brief Description


This is a small project where it's asked to provision two Virtual Machine with CentOS and setup Docker using Ansible.

The two VM will have a disk size of 40GB.

The script for the disk resize is contained in disk-extend.sh It is run automatically by vagrant during provisioning

Quickstart


Browse to the repo folder and exec the command below. The provisioning will provide to install Docker and Docker-Compose using a task with Ansible.

To run

$ vagrant up

To stop

$ vagrant halt

To delete the VMs

$ vagrant destroy -f

Software list


  • Vagrant
  • Ansible
  • VirtualBox
  • Git

Vagrant plugin list:

  • vagrant-serverspec
  • vagrant-disksize
  • vagrant-hostsupdater

Notes

Vagrant file is not optimized but this is the only way I was able to run everything on Windows environment.

There are two inventory file: hosts and inventory. This was the solution I've found to allow ansible to run fine and install Docker correctly.

License

MIT license (see LICENSE)

About

Setup Vagrant for Provisioning two VM with Ansible with Docker

License:MIT License


Languages

Language:Shell 100.0%