-
Notifications
You must be signed in to change notification settings - Fork 37
/
Vagrantfile
46 lines (37 loc) · 1.76 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.box = "puppetlabs/ubuntu-16.04-64-puppet"
ubuntu.vm.provision :puppet do |puppet|
# Need to set the puppet environment so vagrant detects we are using puppet 4
# See https://github.com/mitchellh/vagrant/pull/5991
puppet.environment = "production"
puppet.environment_path = "environments"
puppet.manifests_path = "environments/production/manifests"
puppet.manifest_file = "default.pp"
end
end
config.vm.define "windows" do |windows|
box_name = "msedge.win10.vagrant"
windows.vm.box = "modern.ie/" + box_name
windows.vm.box_url = "https://vagrantcloud.com/Microsoft/boxes/EdgeOnWindows10/versions/1.0/providers/virtualbox.box"
windows.vm.boot_timeout = 500
windows.vm.network "forwarded_port", guest: 3389, host: 3389, id: "rdp", auto_correct: true
# winrm config, uses modern.ie default user/password. If other credentials are used must be changed here
windows.vm.communicator = "winrm"
windows.winrm.username = "IEUser"
windows.winrm.password = "Passw0rd!"
windows.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--vram", "128"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000]
end
end
end