This is a simple Vagrantfile with yaml config for Multi Machine environment.
- vagrant multi machine: use for create any machine you want
- choose your favourite box
- update your file hosts automatically
- YAML config file. No more Vagrantfile to edit!
- with vagrant plugin HostsUpdater: no more /etc/hosts file to edit!
- virtualbox 5.x
- vagrant >1.8.4
- vagrant HostsUpdater plugin: https://github.com/cogitatio/vagrant-hostsupdater
install with
vagrant plugin install vagrant-hostsupdater
- (in case of error of shared folder mount errors) vagrant vagrant-vbguest plugin (install with the command
vagrant plugin install vagrant-vbguest
)
- download https://github.com/gmdotnet/Vagrant-Multi-Machine/archive/master.zip
- unzip on your favorite work folder
- rename
config/config.yaml.sample
inconfig/config.yaml
- change settings in
config/config.yaml
(if you need more information about sync folder and rsync folder just have a look here: https://www.vagrantup.com/docs/synced-folders/basic_usage.html) - run
vagrant up
on folder where isVagrantfile
- (optional) make your configuration on vagrant machine entering by run
vagrant ssh
- have fun and happy coding!
If you want, you can use giuseppemorelli/lamp-stack
as box to have a LAMP stack.
More info in other repository: https://github.com/gmdotnet/Vagrant-LAMP
Giuseppe Morelli - giuseppemorelli.net