This repository has been archived by the owner on Feb 24, 2019. It is now read-only.
forked from halfmanhalftaco/irixboot
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVagrantfile
127 lines (108 loc) · 4.38 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# irixboot
# vagrant configuration
# LICENSE: MIT
#####
# Change these settings to match your environment
#####
irixversion = '6.5'
# installmethod can be via CD images or FTP
installmethod = "ftp"
installmirror = "ftp.irisware.com"
# your SGI box's hostname
clientname = 'sgi'
# whatever domain that you make up
clientdomain = 'devonshire.local'
# Internal network your SGI will be on
network = '192.168.0.0'
# Internal network's netmask
netmask = '255.255.255.0'
# your host pc will get this IP
hostip = '192.168.0.1'
# your sgi box's IP address that you make up
clientip = '192.168.0.77'
# your sgi box's physical hardware address, from printenv at PROM
clientether = '08:00:69:0e:af:65'
# This is the name of the interface on your physical machine that's connected to your SGI box
# In my case, it's the ethernet adapter, which is en0
bridgenic = 'en0'
# FTP urls
## IRIX foundation
foundation="http://us.irisware.net/sgi-irix/irix-6.5/network-installs/foundation1.tar.gz
http://us.irisware.net/sgi-irix/irix-6.5/network-installs/foundation2.tar.gz
http://us.irisware.net/sgi-irix/irix-6.5/network-installs/onc3nfs.tar.gz"
## 6.5.30 overlays
overlay="http://us.irisware.net/sgi-irix/irix-6.5/network-installs/irix-6.5.30/apps.tar.gz
http://us.irisware.net/sgi-irix/irix-6.5/network-installs/irix-6.5.30/disc1.tar.gz
http://us.irisware.net/sgi-irix/irix-6.5/network-installs/irix-6.5.30/disc2.tar.gz
http://us.irisware.net/sgi-irix/irix-6.5/network-installs/irix-6.5.30/disc3.tar.gz"
## Dev
devel="http://us.irisware.net/sgi-irix/development/developmentlibraries.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/devf_13.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/mipspro-7.4.3m.tar
http://us.irisware.net/sgi-irix/development/mipspro-74/mipspro744update.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/mipspro_c.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/mipspro_cee.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/mipspro_cpp.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/mipsproap.tar.gz
http://us.irisware.net/sgi-irix/development/mipspro-74/prodev.tar.gz"
## Extras
extras="http://us.irisware.net/sgi-irix/extras/perfcopilot.tar.gz
http://us.irisware.net/sgi-irix/extras/sgipostscriptfonts.tar.gz"
## Nekodeps
nekodeps="nekodeps_custom.0.0.1.tardist"
## Bootstrap
bootstrap="http://ftp.irisware.net/pub/projects/irixboot/openssh_bundle-0.0.1.tardist.gz
http://ftp.irisware.net/pub/projects/irixboot/python_bundle-0.0.1.tardist.gz
http://ftp.irisware.net/pub/projects/irixboot/wget_bundle-0.0.1.tardist.gz"
#####
# end of settings
#####
current_dir = File.dirname(File.expand_path(__FILE__))
disk_prefix = 'installdisk'
disk_ext ='.vdi'
installdisk = "%s/%s%s" % [current_dir,disk_prefix,disk_ext]
Vagrant.configure("2") do |config|
config.vm.box = "debian/contrib-jessie64"
config.vm.box_version = "8.11.0"
#config.vm.network "public_network"
config.vm.post_up_message = [ "irixboot configuration stage" ]
config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
# Create XFS-formatted disk for extracted CD images
config.vm.provider "virtualbox" do |v|
unless File.exist?(installdisk)
v.customize ['createhd', '--filename', installdisk, '--size', 50 * 1024]
end
v.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', installdisk]
end
end
Vagrant.configure("2") do |config|
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "ansible/irix_ansible_setup.yml"
ansible.extra_vars = {
installmethod: installmethod,
irixversion: irixversion,
foundation: foundation,
overlay: overlay,
extras: extras,
nekodeps: nekodeps,
bootstrap: bootstrap,
devel: devel,
installmirror: installmirror,
clientname: clientname,
clientdomain: clientdomain,
clientip: clientip,
clientether: clientether,
netmask: netmask,
network: network,
hostip: hostip
}
end
end
Vagrant.configure("2") do |config|
config.vm.box = "debian/contrib-jessie64"
config.vm.box_version = "8.11.0"
config.vm.network "public_network", ip: hostip, bridge: bridgenic
config.vm.post_up_message = [ "irixboot running at ", hostip ]
config.vm.synced_folder ".", "/vagrant", type: "virtualbox"
end