The box install a number of open source tools to work properly:
Nodejs
- For JavaScript developJava JDK8
- For Java developDocker
- For Java developSonarQube
- Static Analyses for java projectJQ
For json commandline viewer
To clone repository you need to add --recursive
that import all submodules related.
git clone --recursive https://github.com/OElabed/vagrant-ansible.git
This README file is inside a folder that contains a Vagrantfile
(hereafter this folder shall be called the [vagrant_root]), which tells Vagrant how to set up your virtual machine in VirtualBox.
To use the vagrant file, you will need to have done the following:
- Download and Install VirtualBox
- Download and Install Vagrant
- Install Ansible
- Open a shell prompt (Terminal app on a Mac) and cd into the folder containing the
Vagrantfile
Once all of that is done, you can simply type in vagrant up
, and Vagrant will create a new VM, install the base box, and configure it.
Once the new VM is up and running (after vagrant up
is complete and you're back at the command prompt), you can log into it via SSH if you'd like by typing in vagrant ssh
. Otherwise, the next steps are below.
You need to modify your host machine's hosts file (Mac/Linux: /etc/hosts
; Windows: %systemroot%\system32\drivers\etc\hosts
), adding the line below:
192.168.45.10 develop.vm
If you'd like additional assistance editing your hosts file, please read How do I modify my hosts file? from Rackspace.
Vagrant allows you to configure and use reproducible work environments on top of various virtualization and cloud platforms. It also has integration with Ansible as a provisioner for these virtual machines, and the two tools work together well.
.
├── doc
│ └── img
│ └── VagrantVBAnsible.png
├── provisioning
│ ├── docker
│ │ └── docker-compose.yml //--> contain docker images to install
│ ├── playbook.yml //--> the root config file for ansible provisioning
│ └── roles
│ ├── angstwad.docker_ubuntu //--> contain ansible role for docker tools
│ ├── commandline_tools //--> contain role to install command tools
│ │ └── tasks
│ │ ├── jq.yml //--> contain command and tasks to install JQ
│ │ └── main.yml
│ ├── develop_tools //--> contain role to install develop tools
│ │ └── tasks
│ │ ├── essential.yml
│ │ ├── java.yml
│ │ ├── main.yml
│ │ └── nodejs.yml
│ ├── devops_tools //--> contain role to install devops tools
│ │ ├── tasks
│ │ │ ├── docker.yml //--> contain tasks to configure docker install
│ │ │ ├── git.yml //--> contain tasks to configure git install
│ │ │ └── main.yml
│ │ └── vars
│ │ └── main.yml //--> contain vars to configure develop role
│ └── os_config_tools
│ └── tasks
│ ├── global.yml
│ ├── gui.yml //--> contain tasks to install ubuntu-gui
│ └── main.yml
├── README.md
└── Vagrantfile
Created in 2017 by Oussama EL ABED, Software developer.
- How to install ansible on Babun for windows. see link
- How uses docker-compose. see link
- Useful vagrant boxes with ansible provisionning. see link
- Running Ansible on Windows. see link
MIT