- Vagrant: https://www.vagrantup.com/downloads.html
- Virtualbox: https://www.virtualbox.org/wiki/Downloads
- Retrieve GIT Repository:
sudo apt install git
cd /opt/ ; git clone https://github.com/malavolti/vagrant4ansible
- Move on the "
vagrant4ansible
" directory extracted.cd /opt/vagrant4ansible
- Install the Guest Additions with "
vagrant plugin install vagrant-vbguest
" - Install the Vagrant plugin to resize hard disk (10GB): "
vagrant plugin install vagrant-disksize
" - Run "
vagrant up
" command to instance the Development Environment. - Change your own "
/etc/hosts
" (Linux) and add these 2 lines for the Development Environment:192.168.33.10 idp.example.org 192.168.44.10 sp.example.org
- Now you are able to access to the Development Environment Server "
idp.example.org
" (192.168.33.10) or "sp.example.org
" (192.168.44.10) with "vagrant ssh
" and it will possible to see your Apache2 sites directly from your preferred Browser Internet (Chrome, FireFox, Opera, ...)
- Download the Repository from: https://github.com/malavolti/vagrant4ansible/archive/master.zip
- Extract the ZIP file on your computer as "
vagrant4ansible
". - Run "
cmd
" command (Windows) as Administrator and move on the "vagrant4ansible
" directory extracted. - Install the Guest Additions with "
vagrant plugin install vagrant-vbguest
" - Install the Vagrant plugin to resize hard disk (10GB): "
vagrant plugin install vagrant-disksize
" - Run "
vagrant up
" command to instance the Development Environment. - Change your hosts file on "
C:\Windows\System32\drivers\etc\hosts
" (Windows) and add these 2 lines the Development Environment:192.168.33.10 idp.example.org 192.168.44.10 sp.example.org
- Now you are able to access to the Development Environment Server "
idp.example.org
" (192.168.33.10) or "sp.example.org
" (192.168.44.10) and it will possible to see your Apache2 sites directly from your preferred Browser Internet (Chrome, FireFox, Opera, ...)
-
To shutdown the Development Environment use "
vagrant halt
" within the "cmd
" prompt (Windows) or terminal (Linux/OSX) -
To reload the Development Environment use "
vagrant reload
" within the "cmd
" prompt (Windows) or terminal (Linux/OSX) -
To destroy the Development Environment use "
vagrant destroy
" within the "cmd
" prompt (Windows) or terminal (Linux/OSX) -
To use the Development Environment use "
vagrant ssh
" (to connect into the VM) and "sudo su
" (to obtain ROOT access) within the "cmd
" prompt (Windows) or terminal (Linux/OSX)