- # config.vm.provider :digital_ocean do |provider, override|
- # override.ssh.private_key_path = '~/.ssh/id_rsa'
- # override.vm.box = 'digital_ocean'
- # override.vm.box_url = "https://github.com/smdahlen/vagrant-digitalocean/raw/master/box/digital_ocean.box"
+ config.vm.define "ubuntu18-apache" do |sub|
+ sub.vm.box = "generic/ubuntu1804"
+ sub.vm.provision :shell do |s|
+ s.path = "vagrant/Install-on-Ubuntu-18.sh"
+ s.privileged = false
+ s.args = [checkout, "install-apache"]
+ end
+ end
+
+ config.vm.define "ubuntu18-nginx" do |sub|
+ sub.vm.box = "generic/ubuntu1804"
+ sub.vm.provision :shell do |s|
+ s.path = "vagrant/Install-on-Ubuntu-18.sh"
+ s.privileged = false
+ s.args = [checkout, "install-nginx"]
+ end
+ end
+
+ config.vm.define "centos7" do |sub|
+ sub.vm.box = "centos/7"
+ sub.vm.provision :shell do |s|
+ s.path = "vagrant/Install-on-Centos-7.sh"
+ s.privileged = false
+ s.args = [checkout]
+ end
+ end
+
+ config.vm.define "centos" do |sub|
+ sub.vm.box = "generic/centos8"
+ sub.vm.provision :shell do |s|
+ s.path = "vagrant/Install-on-Centos-8.sh"
+ s.privileged = false
+ s.args = [checkout]
+ end
+ end