Install and run a virtual machine on your host
The installation can be used for local development or testing. Please change the parameter in Vagrantfile to suit your needs. This script will install 1 virtual machine with Ansible and Docker provisioned.
These plugins a needed:
vagrant plugin list
vagrant-hostmanager (1.8.9, global)
- Version Constraint: > 0
vagrant-hosts (2.9.0, global)
- Version Constraint: > 0
vagrant-vbguest (0.19.0, global)
- Version Constraint: > 0
Is the default and need nom alterations in the Vagrant file. To install the VBox extentions you need the vagrant-vbguest plugin. The /etc/hosts sync can be done with vagrant-hosts.
When using Hyper-V you need to an elevated command prompt. Run
the CMD window as Administrator and start the machines
with vagrant up --provider=hyperv
The /etc/hosts sync can be done with vagrant-hostmanager.
You can change the OS to any supported box you need. In that case please change the setup scripts in the example playbook according to you flavour of Linux.
Currently tested and supplied are these boxes:
- bento/centos-7.7
- bento/ubuntu-18.04
- bento/debian-10.1
Comment / uncomment to change the box.
Default OS is CentOS 7.7 on VirtualBox.
A set base Ansible provision playbooks are supplied. If you want a vanilla box just comment out the provision section.
- Download or clone this repository.
- Edit the Vagrantfile
- Set the machine name
- Select your OS
- Select your hypervisor
- Run
vagrant up
- To stop run
vagrant halt
More information about the operation of vagrant can be found at the Vagrant documentation site.