Last active
March 11, 2018 09:37
-
-
Save jacqinthebox/dbd166b57dd7bd33d0192573faf02a2c to your computer and use it in GitHub Desktop.
Best Vagrantfile #ruby #vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $hostfile = <<HOSTFILE | |
| Add-Content $ENV:windir\\System32\\drivers\\etc\\hosts "192.168.56.20 `t `t mysql01.dev.datbedrijf.nl" | |
| netsh advfirewall set allprofiles state off | |
| HOSTFILE | |
| Vagrant.configure(2) do |config| | |
| config.vm.define "dc01" do |dc01_config| | |
| dc01_config.vm.box = "windows_server_2016" | |
| dc01_config.vm.hostname = "dc01" | |
| dc01_config.vm.network "private_network", ip: "192.168.56.10" | |
| dc01_config.vm.provider "virtualbox" do |v| | |
| v.linked_clone = true | |
| v.customize ["modifyvm", :id, "--vram", "128"] | |
| v.customize ["modifyvm", :id, "--accelerate3d", "on"] | |
| end | |
| dc01_config.vm.provider "parallels" do |p| | |
| p.linked_clone = true | |
| end | |
| #dc01_config.vm.provision :shell,inline: $hostfile | |
| end | |
| config.vm.define "file01" do |file01_config| | |
| file01_config.vm.box = "windows_server_2016" | |
| file01_config.vm.hostname = "file01" | |
| file01_config.vm.network "private_network", ip: "192.168.56.20" | |
| file01_config.vm.provider "virtualbox" do |v| | |
| v.linked_clone = true | |
| v.customize ["modifyvm", :id, "--vram", "128"] | |
| v.customize ["modifyvm", :id, "--accelerate3d", "on"] | |
| end | |
| file01_config.vm.provider "parallels" do |p| | |
| p.linked_clone = true | |
| end | |
| #file01_config.vm.provision :shell,inline: $hostfile | |
| end | |
| config.vm.define "file02" do |file02_config| | |
| file02_config.vm.box = "windows_server_2016" | |
| file02_config.vm.hostname = "file02" | |
| file02_config.vm.network "private_network", ip: "192.168.56.30" | |
| file02_config.vm.provider "virtualbox" do |v| | |
| v.linked_clone = true | |
| v.customize ["modifyvm", :id, "--vram", "128"] | |
| v.customize ["modifyvm", :id, "--accelerate3d", "on"] | |
| end | |
| file02_config.vm.provider "parallels" do |p| | |
| p.linked_clone = true | |
| end | |
| #file01_config.vm.provision :shell,inline: $hostfile | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment