This Vagrantfile deploys some of HashiCorp's products and simulates a small cloud infrastructure in a virtualized environment with Vagrant. This includes Nomad, Consul and Vault.
Nomad dashboard | Consul dashboard |
---|---|
Prerequisite: The latest versions of Vagrant and VirtualBox must be installed on your machine.
Feel free to change the VM's specs in the Vagrantfile
on lines 9 to 11 before launching them. You can also add or remove nodes by adding or removing lines in the NODES
array.
git clone https://github.com/balsigergil/hashicorp-vagrant-lab.git
cd hashicorp-vagrant-lab
vagrant up
This Vagrantfile deploys the following services on 3 virtual machines :
- 1 Consul server (VM 1) : http://192.168.56.10:8500/ui
- 1 Nomad server (VM 1) : http://192.168.56.10:4646/ui
- 1 Vault server (VM 1) : http://192.168.56.10:8200/ui
- 3 Nomad clients (VM 1, 2 and 3) : 192.168.56.10, 192.168.56.11, 192.168.56.12
Note: The Nomad server is a Nomad client too.
It uses Ansible to provision all machines.