veewee 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/veewee/scancode.rb +39 -21
- data/lib/veewee/session.rb +15 -4
- data/lib/veewee/version.rb +1 -1
- data/templates/Archlinux-latest/definition.rb +10 -11
- data/templates/Archlinux-latest/postinstall.sh +12 -12
- data/templates/CentOS-4.8-i386/definition.rb +6 -7
- data/templates/CentOS-4.8-i386/postinstall.sh +7 -7
- data/templates/CentOS-5.5-i386-netboot/definition.rb +16 -17
- data/templates/CentOS-5.5-i386-netboot/postinstall.sh +6 -11
- data/templates/CentOS-5.5-i386/definition.rb +15 -16
- data/templates/CentOS-5.5-i386/postinstall.sh +6 -11
- data/templates/Debian-6.0-amd64-netboot/definition.rb +18 -19
- data/templates/Debian-6.0-amd64-netboot/postinstall.sh +4 -5
- data/templates/Debian-6.0-amd64-netboot/preseed.cfg +1 -1
- data/templates/Debian-6.0-i386-netboot/definition.rb +4 -5
- data/templates/Debian-6.0-i386-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64-netboot/definition.rb +16 -0
- data/templates/Fedora-14-amd64-netboot/ks.cfg +40 -0
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +52 -0
- data/templates/Fedora-14-amd64/definition.rb +16 -0
- data/templates/Fedora-14-amd64/ks.cfg +41 -0
- data/templates/Fedora-14-amd64/postinstall.sh +52 -0
- data/templates/Fedora-14-i386-netboot/definition.rb +16 -0
- data/templates/Fedora-14-i386-netboot/ks.cfg +40 -0
- data/templates/Fedora-14-i386-netboot/postinstall.sh +52 -0
- data/templates/Fedora-14-i386/definition.rb +16 -0
- data/templates/Fedora-14-i386/ks.cfg +41 -0
- data/templates/Fedora-14-i386/postinstall.sh +52 -0
- data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +11 -12
- data/templates/freebsd-8.2-experimental/definition.rb +9 -10
- data/templates/freebsd-8.2-experimental/postinstall.sh +16 -16
- data/templates/freebsd-8.2-pcbsd-i386/definition.rb +16 -17
- data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +1 -1
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +2 -2
- data/templates/solaris-11-express-i386-experimental/auto_install/ai.dtd +58 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/ai_manifest.xml +241 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/configuration.dtd +44 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/default.xml +124 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/default.xml.orig +124 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/sc_profiles/static_network.xml +105 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/software.dtd +105 -0
- data/templates/solaris-11-express-i386-experimental/auto_install/target.dtd +196 -0
- data/templates/solaris-11-express-i386-experimental/default.xml +121 -0
- data/templates/solaris-11-express-i386-experimental/definition.rb +65 -0
- data/templates/solaris-11-express-i386-experimental/postinstall.sh +72 -0
- data/templates/ubuntu-10.04.2-server-amd64/definition.rb +24 -0
- data/templates/{ubuntu-10.04.1-server-amd64 → ubuntu-10.04.2-server-amd64}/postinstall.sh +3 -4
- data/templates/{ubuntu-10.04.1-server-amd64 → ubuntu-10.04.2-server-amd64}/preseed.cfg +3 -3
- data/templates/ubuntu-10.04.2-server-i386/definition.rb +24 -0
- data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/postinstall.sh +2 -3
- data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/postinstall2.sh +0 -0
- data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/preseed.cfg +3 -3
- data/templates/ubuntu-10.10-server-amd64-netboot/definition.rb +16 -17
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +2 -3
- data/templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg +2 -2
- data/templates/ubuntu-10.10-server-amd64/definition.rb +16 -17
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +2 -3
- data/templates/ubuntu-10.10-server-amd64/preseed.cfg +3 -3
- data/templates/ubuntu-10.10-server-i386-netboot/definition.rb +16 -17
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +3 -4
- data/templates/ubuntu-10.10-server-i386-netboot/preseed.cfg +2 -2
- data/templates/ubuntu-10.10-server-i386/definition.rb +16 -17
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +3 -4
- data/templates/ubuntu-10.10-server-i386/preseed.cfg +4 -4
- metadata +34 -11
- data/templates/ubuntu-10.04.1-server-amd64/definition.rb +0 -25
- data/templates/ubuntu-10.04.1-server-i386/definition.rb +0 -25
data/Gemfile.lock
CHANGED
data/lib/veewee/scancode.rb
CHANGED
@@ -19,8 +19,13 @@ module Veewee
|
|
19
19
|
# A workaround is to send the scancodes one-by-one.
|
20
20
|
codes=""
|
21
21
|
for keycode in keycodes.split(' ') do
|
22
|
+
|
23
|
+
unless keycode=="wait"
|
22
24
|
send_keycode(vboxcmd,vname,keycode)
|
23
25
|
sleep 0.01
|
26
|
+
else
|
27
|
+
sleep 1
|
28
|
+
end
|
24
29
|
end
|
25
30
|
#sleep after each sequence (needs to be param)
|
26
31
|
sleep 1
|
@@ -42,38 +47,51 @@ module Veewee
|
|
42
47
|
#http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
|
43
48
|
|
44
49
|
k=Hash.new
|
45
|
-
k['1'] = '02' ; k['2'] = '03' ; k['3'] = '04'; k['4']= '05
|
46
|
-
k['
|
47
|
-
|
50
|
+
k['1'] = '02 82' ; k['2'] = '03 83' ; k['3'] = '04 84'; k['4']= '05 85' ;
|
51
|
+
k['5']='06 86'; k['6'] = '07 87' ; k['7'] = '08 88'; k['8'] = '09 89'; k['9']= '0a 8a';
|
52
|
+
k['0']='0b 8b'; k['-'] = '0c 8c'; k['='] = '0d 8d' ;
|
53
|
+
k['Tab'] = '0f 8f';
|
54
|
+
k['q'] = '10 90' ; k['w'] = '11 91' ; k['e'] = '12 92';
|
55
|
+
k['r'] = '13 93' ; k['t'] = '14 94' ; k['y'] = '15 95';
|
56
|
+
k['u']= '16 96' ; k['i']='17 97'; k['o'] = '18 98' ; k['p'] = '19 99' ;
|
48
57
|
|
49
58
|
k['Q'] = '2a 10 aa' ; k['W'] = '2a 11 aa' ; k['E'] = '2a 12 aa'; k['R'] = '2a 13 aa' ; k['T'] = '2a 14 aa' ; k['Y'] = '2a 15 aa'; k['U']= '2a 16 aa' ; k['I']='2a 17 aa'; k['O'] = '2a 18 aa' ; k['P'] = '2a 19 aa' ;
|
50
59
|
|
51
|
-
k['a'] = '1e'; k['s'] = '1f' ; k['d'] = '20' ; k['f'] = '21'; k['g'] = '22' ; k['h'] = '23' ; k['j'] = '24
|
52
|
-
k['
|
60
|
+
k['a'] = '1e 9e'; k['s'] = '1f 9f' ; k['d'] = '20 a0' ; k['f'] = '21 a1'; k['g'] = '22 a2' ; k['h'] = '23 a3' ; k['j'] = '24 a4';
|
61
|
+
k['k']= '25 a5' ; k['l']='26 a6';
|
62
|
+
k['A'] = '2a 1e aa 9e'; k['S'] = '2a 1f aa 9f' ; k['D'] = '2a 20 aa a0' ; k['F'] = '2a 21 aa a1';
|
63
|
+
k['G'] = '2a 22 aa a2' ; k['H'] = '2a 23 aa a3' ; k['J'] = '2a 24 aa a4'; k['K']= '2a 25 aa a5' ; k['L']='2a 26 aa a6';
|
53
64
|
|
54
|
-
k[';'] = '27' ;k['"']='2a 28 aa';k['\'']='28';
|
65
|
+
k[';'] = '27 a7' ;k['"']='2a 28 aa a8';k['\'']='28 a8';
|
55
66
|
|
56
|
-
k['\\'] = '2b'; k['|'] = '2a 2b aa';
|
67
|
+
k['\\'] = '2b ab'; k['|'] = '2a 2b aa 8b';
|
57
68
|
|
58
|
-
k['[']='1a'; k[']']='1b';
|
59
|
-
k['<']='2a 33 aa'; k['>']='2a 34 aa';
|
60
|
-
k['$']='2a 05 aa';
|
61
|
-
k['+']='2a 0d aa';
|
69
|
+
k['[']='1a 9a'; k[']']='1b 9b';
|
70
|
+
k['<']='2a 33 aa b3'; k['>']='2a 34 aa b4';
|
71
|
+
k['$']='2a 05 aa 85';
|
72
|
+
k['+']='2a 0d aa 8d';
|
62
73
|
|
63
|
-
k['z'] = '2c'; k['x'] = '2d' ; k['c'] = '2e' ; k['v'] = '2f'; k['b'] = '30' ; k['n'] = '31
|
64
|
-
k['
|
74
|
+
k['z'] = '2c ac'; k['x'] = '2d ad' ; k['c'] = '2e ae' ; k['v'] = '2f af'; k['b'] = '30 b0' ; k['n'] = '31 b1' ;
|
75
|
+
k['m'] = '32 b2';
|
76
|
+
k['Z'] = '2a 2c aa ac'; k['X'] = '2a 2d aa ad' ; k['C'] = '2a 2e aa ae' ; k['V'] = '2a 2f aa af';
|
77
|
+
k['B'] = '2a 30 aa b0' ; k['N'] = '2a 31 aa b1' ; k['M'] = '2a 32 aa b2';
|
78
|
+
|
79
|
+
k[',']= '33 b3' ; k['.']='34 b4'; k['/'] = '35 b5' ;k[':'] = '2a 27 aa a7';
|
80
|
+
k['%'] = '2a 06 aa 8§'; k['_'] = '2a 0c aa 8c';
|
81
|
+
k['&'] = '2a 08 aa 88';
|
82
|
+
k['('] = '2a 0a aa 8a';
|
83
|
+
k[')'] = '2a 0b aa 8b';
|
65
84
|
|
66
|
-
k[',']= '33' ; k['.']='34'; k['/'] = '35' ;k[':'] = '2a 27 aa';
|
67
|
-
k['%'] = '2a 06 aa'; k['_'] = '2a 0c aa';
|
68
85
|
|
69
86
|
special=Hash.new;
|
70
|
-
special['<Enter>'] = '1c';
|
71
|
-
special['<Backspace>'] = '0e';
|
72
|
-
special['<Spacebar>'] = '39';
|
73
|
-
special['<Return>'] = '1c'
|
74
|
-
special['<Esc>'] = '01';
|
75
|
-
special['<Tab>'] = '0f';
|
87
|
+
special['<Enter>'] = '1c 9c';
|
88
|
+
special['<Backspace>'] = '0e 8e';
|
89
|
+
special['<Spacebar>'] = '39 b9';
|
90
|
+
special['<Return>'] = '1c 9c'
|
91
|
+
special['<Esc>'] = '01 81';
|
92
|
+
special['<Tab>'] = '0f 8f';
|
76
93
|
special['<KillX>'] = '1d 38 0e';
|
94
|
+
special['<Wait>'] = 'wait';
|
77
95
|
|
78
96
|
#special['<Up>'] = '01';
|
79
97
|
#special['<Down>'] = '01';
|
data/lib/veewee/session.rb
CHANGED
@@ -22,6 +22,7 @@ module Veewee
|
|
22
22
|
@veewee_dir=env[:veewee_dir]
|
23
23
|
@definition_dir=env[:definition_dir]
|
24
24
|
@template_dir=env[:template_dir]
|
25
|
+
@validation_dir=env[:veewee_dir] + 'validation'
|
25
26
|
@box_dir=env[:box_dir]
|
26
27
|
@iso_dir=env[:iso_dir]
|
27
28
|
@tmp_dir=env[:tmp_dir]
|
@@ -30,7 +31,7 @@ module Veewee
|
|
30
31
|
def self.declare(options)
|
31
32
|
defaults={
|
32
33
|
:cpu_count => '1', :memory_size=> '256',
|
33
|
-
:disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' ,
|
34
|
+
:disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' , :use_hw_virt_ext => 'on', :use_pae => 'off',
|
34
35
|
:os_type_id => 'Ubuntu',
|
35
36
|
:iso_file => "ubuntu-10.10-server-i386.iso", :iso_src => "", :iso_md5 => "", :iso_download_timeout => 1000,
|
36
37
|
:boot_wait => "10", :boot_cmd_sequence => [ "boot"],
|
@@ -488,16 +489,26 @@ module Veewee
|
|
488
489
|
#TODO One day ruby-virtualbox will be able to handle this creation
|
489
490
|
#Box does not exist, we can start to create it
|
490
491
|
|
491
|
-
command="#{@vboxcmd} createvm --name '#{boxname}' --ostype '#{@definition[:os_type_id]}' --register"
|
492
|
+
command="#{@vboxcmd} createvm --name '#{boxname}' --ostype '#{@definition[:os_type_id]}' --register"
|
493
|
+
|
494
|
+
#Exec and system stop the execution here
|
495
|
+
Veewee::Shell.execute("#{command}")
|
496
|
+
|
497
|
+
# Modify the vm to enable or disable hw virtualization extensions
|
498
|
+
command="#{@vboxcmd} modifyvm #{boxname} --hwvirtex #{@definition[:use_hw_virt_ext]} --pae #{@definition[:use_pae]}"
|
492
499
|
|
493
500
|
#Exec and system stop the execution here
|
494
501
|
Veewee::Shell.execute("#{command}")
|
495
502
|
|
496
503
|
#Set a shared folder for validation
|
497
|
-
|
504
|
+
if !File.exists?(@validation_dir)
|
505
|
+
FileUtils.mkdir(File.expand_path(@validation_dir))
|
506
|
+
end
|
507
|
+
|
508
|
+
command="#{@vboxcmd} sharedfolder add '#{boxname}' --name 'veewee-validation' --hostpath '#{File.expand_path(@validation_dir)}' --automount"
|
498
509
|
|
499
510
|
Veewee::Shell.execute("#{command}")
|
500
|
-
|
511
|
+
|
501
512
|
end
|
502
513
|
|
503
514
|
vm=VirtualBox::VM.find(boxname)
|
data/lib/veewee/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Veewee::Session.declare(
|
1
|
+
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '256',
|
3
3
|
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
4
|
:os_type_id => 'Linux',
|
@@ -6,17 +6,16 @@ Veewee::Session.declare( {
|
|
6
6
|
:iso_src => "http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.0.0/systemrescuecd-x86-2.0.0.iso?r=http%3A%2F%2Fwww.sysresccd.org%2FDownload&ts=1297107227&use_mirror=ignum",
|
7
7
|
:iso_md5 => "51012e0bb943cff6367e5cea3a61cdbe",
|
8
8
|
:iso_download_timeout => "1000",
|
9
|
-
:boot_wait => "10"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
:kickstart_port => "7122", :kickstart_timeout => "10000"
|
15
|
-
:ssh_login_timeout => "10000"
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
10
|
+
'<Tab> ',
|
11
|
+
'setkmap=us dodhcp=eth0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant',
|
12
|
+
'<Enter>'
|
13
|
+
],
|
14
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "autorun0",
|
15
|
+
:ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "vagrant", :ssh_key => "",
|
16
16
|
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
17
17
|
:sudo_cmd => "sh '%f'",
|
18
18
|
:shutdown_cmd => "shutdown -H",
|
19
|
-
:postinstall_files => [ "postinstall.sh"]
|
20
|
-
|
21
|
-
)
|
19
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
|
20
|
+
})
|
22
21
|
#'setkmap=us dodhcp=eth0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant',
|
@@ -57,10 +57,10 @@ mkfs.ext3 /dev/sda1
|
|
57
57
|
mkswap /dev/sda2
|
58
58
|
swapon /dev/sda2
|
59
59
|
|
60
|
-
mkdir /newarch
|
60
|
+
mkdir /newarch
|
61
61
|
mount /dev/sda1 /newarch
|
62
62
|
|
63
|
-
mkdir -p /newarch/var/lib/pacman
|
63
|
+
mkdir -p /newarch/var/lib/pacman
|
64
64
|
|
65
65
|
#setting pacman - mirror - Belgium
|
66
66
|
#Customize to your own liking
|
@@ -74,24 +74,24 @@ sed -i 's/^#\(.*kangaroot.*\)/\1/' /etc/pacman.d/mirrorlist
|
|
74
74
|
pacman -Sy -r /newarch
|
75
75
|
|
76
76
|
#pacman: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
|
77
|
-
#require bzip2
|
78
|
-
pacman --noconfirm --cachedir /newarch/var/cache/pacman/pkg -S base -r /newarch
|
77
|
+
#require bzip2
|
78
|
+
pacman --noconfirm --cachedir /newarch/var/cache/pacman/pkg -S base -r /newarch
|
79
79
|
|
80
80
|
#Create the devices
|
81
|
-
cd /newarch/dev
|
82
|
-
rm -f console ; mknod -m 600 console c 5 1
|
83
|
-
rm -f null ; mknod -m 666 null c 1 3
|
81
|
+
cd /newarch/dev
|
82
|
+
rm -f console ; mknod -m 600 console c 5 1
|
83
|
+
rm -f null ; mknod -m 666 null c 1 3
|
84
84
|
rm -f zero ; mknod -m 666 zero c 1 5
|
85
85
|
|
86
86
|
#Copy the dns information (cp is aliased so we use the binary)
|
87
|
-
/bin/cp -f /etc/resolv.conf /newarch/etc/
|
87
|
+
/bin/cp -f /etc/resolv.conf /newarch/etc/
|
88
88
|
|
89
89
|
#Mount the process architecture
|
90
90
|
mount -t proc proc /newarch/proc
|
91
91
|
mount -t sysfs sys /newarch/sys
|
92
92
|
mount -o bind /dev /newarch/dev
|
93
93
|
|
94
|
-
chroot /newarch pacman --noconfirm -S kernel26
|
94
|
+
chroot /newarch pacman --noconfirm -S kernel26
|
95
95
|
|
96
96
|
#set the mirror list within the machine
|
97
97
|
chroot /newarch sed -i 's/^#\(.*kangaroot.*\)/\1/' /etc/pacman.d/mirrorlist
|
@@ -170,10 +170,10 @@ chroot /newarch pacman --noconfirm -S kernel26-headers
|
|
170
170
|
/bin/cp -f /root/.vbox_version /newarch/home/vagrant/.vbox_version
|
171
171
|
VBOX_VERSION=$(cat /root/.vbox_version)
|
172
172
|
|
173
|
-
|
173
|
+
#Installing the virtualbox guest additions
|
174
174
|
cat <<EOF | chroot /newarch /bin/bash -
|
175
175
|
cd /tmp
|
176
|
-
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
176
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
177
177
|
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
178
178
|
sh /mnt/VBoxLinuxAdditions.run
|
179
179
|
umount /mnt
|
@@ -187,4 +187,4 @@ cd /
|
|
187
187
|
umount /newarch/{proc,sys,dev}
|
188
188
|
umount /newarch
|
189
189
|
|
190
|
-
reboot
|
190
|
+
reboot
|
@@ -1,14 +1,13 @@
|
|
1
|
-
Veewee::Session.declare(
|
1
|
+
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
3
|
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
4
|
:os_type_id => 'RedHat',
|
5
5
|
:iso_file => "CentOS-4.8-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "", :iso_download_timeout => 1000,
|
6
|
-
:boot_wait => "10"
|
7
|
-
:kickstart_port => "7122", :kickstart_timeout => 10000
|
8
|
-
:ssh_login_timeout => "100"
|
6
|
+
:boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
|
7
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
8
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
9
9
|
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
10
10
|
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
11
11
|
:shutdown_cmd => "/sbin/halt -h -p",
|
12
|
-
:postinstall_files => [ "postinstall.sh"]
|
13
|
-
|
14
|
-
)
|
12
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
13
|
+
})
|
@@ -6,12 +6,12 @@ yum -y install gcc bzip2 make kernel-devel-`uname -r`
|
|
6
6
|
#yum -y update
|
7
7
|
#yum -y upgrade
|
8
8
|
|
9
|
-
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
9
|
+
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
10
10
|
|
11
11
|
yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
|
12
|
-
|
12
|
+
|
13
13
|
yum -y clean all
|
14
|
-
|
14
|
+
|
15
15
|
#Installing ruby
|
16
16
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
17
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
@@ -31,17 +31,17 @@ cd /home/vagrant/.ssh
|
|
31
31
|
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
32
32
|
chown -R vagrant /home/vagrant/.ssh
|
33
33
|
|
34
|
+
#Installing the virtualbox guest additions
|
34
35
|
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
35
|
-
#INstalling the virtualbox guest additions
|
36
36
|
cd /tmp
|
37
|
-
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
37
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
38
38
|
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
39
39
|
sh /mnt/VBoxLinuxAdditions.run
|
40
40
|
umount /mnt
|
41
41
|
|
42
42
|
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
43
43
|
|
44
|
-
#poweroff -h
|
44
|
+
#poweroff -h
|
45
45
|
|
46
46
|
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
47
47
|
|
@@ -49,5 +49,5 @@ sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
|
49
49
|
exit
|
50
50
|
|
51
51
|
|
52
|
-
|
52
|
+
|
53
53
|
|
@@ -1,17 +1,16 @@
|
|
1
|
-
Veewee::Session.declare(
|
2
|
-
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI'
|
4
|
-
:os_type_id => 'RedHat',
|
5
|
-
:iso_file => "CentOS-5.5-i386-netinstall.iso",
|
6
|
-
:iso_src => "http://mirror.bytemark.co.uk/centos/5.5/isos/i386/CentOS-5.5-i386-netinstall.iso",
|
7
|
-
:iso_md5 => "0172883a3039772165db073693debae5",
|
8
|
-
:iso_download_timeout => 1000,
|
9
|
-
:boot_wait => "10"
|
10
|
-
:kickstart_port => "7122", :kickstart_timeout => 10000
|
11
|
-
:ssh_login_timeout => "100"
|
12
|
-
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
13
|
-
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
14
|
-
:shutdown_cmd => "/sbin/halt -h -p",
|
15
|
-
:postinstall_files => [ "postinstall.sh"]
|
16
|
-
}
|
17
|
-
)
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'RedHat',
|
5
|
+
:iso_file => "CentOS-5.5-i386-netinstall.iso",
|
6
|
+
:iso_src => "http://mirror.bytemark.co.uk/centos/5.5/isos/i386/CentOS-5.5-i386-netinstall.iso",
|
7
|
+
:iso_md5 => "0172883a3039772165db073693debae5",
|
8
|
+
:iso_download_timeout => 1000,
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
|
10
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
11
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
12
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
13
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
14
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
15
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
16
|
+
})
|
@@ -6,10 +6,10 @@ yum -y install gcc bzip2 make kernel-devel-`uname -r`
|
|
6
6
|
#yum -y update
|
7
7
|
#yum -y upgrade
|
8
8
|
|
9
|
-
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
9
|
+
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
10
10
|
|
11
11
|
yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
|
12
|
-
|
12
|
+
|
13
13
|
|
14
14
|
yum -y clean all
|
15
15
|
|
@@ -32,10 +32,10 @@ cd /home/vagrant/.ssh
|
|
32
32
|
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
33
33
|
chown -R vagrant /home/vagrant/.ssh
|
34
34
|
|
35
|
+
#Installing the virtualbox guest additions
|
35
36
|
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
36
|
-
#INstalling the virtualbox guest additions
|
37
37
|
cd /tmp
|
38
|
-
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
38
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
39
39
|
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
40
40
|
sh /mnt/VBoxLinuxAdditions.run
|
41
41
|
umount /mnt
|
@@ -45,11 +45,6 @@ rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
|
45
45
|
|
46
46
|
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
47
47
|
|
48
|
-
#poweroff -h
|
49
|
-
|
50
|
-
exit
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
48
|
+
#poweroff -h
|
55
49
|
|
50
|
+
exit
|
@@ -1,16 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
)
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'RedHat',
|
5
|
+
:iso_file => "CentOS-5.5-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "75c92246479df172de41b14c9b966344", :iso_download_timeout => 1000,
|
6
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
7
|
+
'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
8
|
+
],
|
9
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
10
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
11
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
12
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
13
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
14
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
15
|
+
})
|
@@ -6,12 +6,12 @@ yum -y install gcc bzip2 make kernel-devel-`uname -r`
|
|
6
6
|
#yum -y update
|
7
7
|
#yum -y upgrade
|
8
8
|
|
9
|
-
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
9
|
+
yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
|
10
10
|
|
11
11
|
yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
|
12
12
|
|
13
13
|
yum -y clean all
|
14
|
-
|
14
|
+
|
15
15
|
#Installing ruby
|
16
16
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
17
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
@@ -31,10 +31,10 @@ cd /home/vagrant/.ssh
|
|
31
31
|
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
32
32
|
chown -R vagrant /home/vagrant/.ssh
|
33
33
|
|
34
|
+
#Installing the virtualbox guest additions
|
34
35
|
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
35
|
-
#INstalling the virtualbox guest additions
|
36
36
|
cd /tmp
|
37
|
-
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
37
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
38
38
|
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
39
39
|
sh /mnt/VBoxLinuxAdditions.run
|
40
40
|
umount /mnt
|
@@ -43,11 +43,6 @@ rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
|
43
43
|
|
44
44
|
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
45
45
|
|
46
|
-
#poweroff -h
|
47
|
-
|
48
|
-
exit
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
46
|
+
#poweroff -h
|
53
47
|
|
48
|
+
exit
|