forked from SpinW/github_runners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile.idtemplate
95 lines (89 loc) · 4.01 KB
/
Vagrantfile.idtemplate
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
require 'vagrant-openstack-provider'
Vagrant.configure("2") do |config|
config.vm.define "linux_IDSTR" do |linux|
linux.vm.box = "matlab_linux"
linux.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--macaddress1", "5CA1AB1E0001" ]
end
linux.vm.provision :shell, path: 'bootstrap_linux.sh'
linux.trigger.before :destroy do |trigger|
trigger.info = "Remove the github runner"
trigger.run_remote = {inline: "/root/teardown.sh"}
end
end
# config.ssh.username = "vagrant"
# config.ssh.private_key_path = "~/.vagrant.d/insecure_private_key"
# config.vm.define "linux_IDSTR" do |linux|
# linux.vm.provider "openstack" do |os|
# os.openstack_auth_url = "https://openstack.nubes.rl.ac.uk:5000/v3"
# os.identity_api_version = "3"
# os.project_name = "SpinW_CI"
# os.project_domain_name = "default"
# os.user_domain_name = "stfc"
# os.username = ENV['OS_USERNAME']
# os.password = ENV['OS_PASSWORD']
# os.region = "RegionOne"
# os.flavor = "m3.small"
# os.image = "matlab_linux"
# os.availability_zone = "ceph"
# os.keypair_name = "vagrant_insecure"
# os.server_name = "linux_IDSTR"
# end
# linux.vm.synced_folder ".", "/vagrant", type: "rsync"
# linux.vm.provision :shell, path: 'bootstrap_linux.sh'
# linux.trigger.before :destroy do |trigger|
# trigger.info = "Remove the github runner"
# trigger.run_remote = {inline: "/root/teardown.sh"}
# end
# end
# config.vm.define "windows_IDSTR" do |windows|
# windows.vm.provider "openstack" do |os|
# os.openstack_auth_url = "https://openstack.nubes.rl.ac.uk:5000/v3"
# os.identity_api_version = "3"
# os.project_name = "SpinW_CI"
# os.project_domain_name = "default"
# os.user_domain_name = "stfc"
# os.username = ENV['OS_USERNAME']
# os.password = ENV['OS_PASSWORD']
# os.region = "RegionOne"
# os.flavor = "m3.small"
# os.image = "matlab_windows"
# os.availability_zone = "ceph"
# os.keypair_name = "vagrant_insecure"
# os.server_name = "windows_IDSTR"
# end
# windows.vm.guest = :windows
# windows.vm.communicator = 'winrm'
# # NFS folder syncing doesn't work on qemu and we didn't install rsync
# windows.vm.synced_folder ".", "/vagrant", disabled: true
# windows.vm.provision "file", source: "bootstrap_vars_windows", destination: "c:/vagrant/bootstrap_vars_windows"
# windows.vm.provision :shell, path: 'bootstrap_windows.ps1'
# windows.trigger.before :destroy do |trigger|
# trigger.info = "Remove the github runner"
# trigger.run_remote = {inline: "c:/users/vagrant/teardown.ps1"}
# end
# end
# config.vm.define "macos_IDSTR" do |macos|
# macos.vm.box = "matlab_macOS"
# macos.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: [".vagrant/", ".git/", "*.box", "boxes/", "modify_boxes/"]
# macos.vm.provision :shell, inline: "/bin/zsh /vagrant/bootstrap_macos.sh", :run => 'always'
#
# macos.trigger.before :destroy do |trigger|
# trigger.info = "Remove the github runner"
# trigger.run_remote = {inline: "/Users/vagrant/teardown.sh"}
# end
# end
config.vm.define "windows_IDSTR" do |windows|
windows.vm.box = "matlab_windows"
windows.vm.provider "virtualbox" do |vb|
#vb.customize ["modifyvm", :id, "--memory", 8192]
#vb.customize ["modifyvm", :id, "--cpus", 4]
vb.customize ["modifyvm", :id, "--macaddress1", "020000160423" ]
end
windows.vm.provision :shell, path: 'bootstrap_windows.ps1'
windows.trigger.before :destroy do |trigger|
trigger.info = "Remove the github runner"
trigger.run_remote = {inline: "c:/users/vagrant/teardown.ps1"}
end
end
end