veewee 0.1.22 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/java/README.txt +5 -0
- data/lib/java/dir2floppy.jar +0 -0
- data/lib/java/dir2floppy.java +137 -0
- data/lib/veewee/session.rb +57 -10
- data/lib/veewee/version.rb +1 -1
- data/lib/veewee/web.rb +1 -1
- data/templates/CentOS-4.8-i386/definition.rb +2 -1
- data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
- data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/definition.rb +4 -4
- data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/ks.cfg +0 -0
- data/templates/{CentOS-5.5-i386-netboot → CentOS-5.6-i386-netboot}/postinstall.sh +1 -1
- data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/definition.rb +4 -2
- data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/ks.cfg +0 -0
- data/templates/{CentOS-5.5-i386 → CentOS-5.6-i386}/postinstall.sh +1 -1
- data/templates/Debian-6.0.1a-amd64-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64/definition.rb +1 -1
- data/templates/Fedora-14-amd64/postinstall.sh +1 -1
- data/templates/Fedora-14-i386-netboot/definition.rb +1 -1
- data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-i386/definition.rb +1 -1
- data/templates/Fedora-14-i386/postinstall.sh +1 -1
- data/templates/gentoo-latest-i386-experimental/definition.rb +29 -0
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +182 -0
- data/templates/opensuse-11.4-i386-experimental/README +11 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml +1269 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +1269 -0
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +1269 -0
- data/templates/opensuse-11.4-i386-experimental/definition.rb +31 -0
- data/templates/opensuse-11.4-i386-experimental/postinstall.sh +89 -0
- data/templates/solaris-11-express-i386/postinstall.sh +5 -5
- data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +44 -15
- data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +46 -16
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +46 -16
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +45 -15
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +45 -15
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +45 -15
- data/templates/ubuntu-11.04-server-amd64/definition.rb +24 -0
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +73 -0
- data/templates/ubuntu-11.04-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-11.04-server-i386/definition.rb +24 -0
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +73 -0
- data/templates/ubuntu-11.04-server-i386/preseed.cfg +87 -0
- data/templates/windows-2008R2-amd64-experimental/Autounattend.xml +132 -0
- data/templates/windows-2008R2-amd64-experimental/README.md +33 -0
- data/templates/windows-2008R2-amd64-experimental/cygwin-setup.exe +0 -0
- data/templates/windows-2008R2-amd64-experimental/cygwin-sshd.bat +38 -0
- data/templates/windows-2008R2-amd64-experimental/definition.rb +17 -0
- data/templates/windows-2008R2-amd64-experimental/install-winrm.bat +6 -0
- data/templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt +23 -0
- data/templates/windows-2008R2-amd64-experimental/postinstall.sh +48 -0
- data/templates/windows-2008R2-amd64-experimental/setup.exe +0 -0
- data/templates/windows-2008R2-amd64-experimental/winrm.rb +8 -0
- metadata +37 -15
- data/templates/ubuntu-10.04.2-server-i386/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-amd64/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall2.sh +0 -9
- data/templates/ubuntu-10.10-server-i386/postinstall2.sh +0 -9
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/lib/java/README.txt
ADDED
Binary file
|
@@ -0,0 +1,137 @@
|
|
1
|
+
package be.jedi.dir2floppy;
|
2
|
+
|
3
|
+
import java.io.File;
|
4
|
+
import java.io.FileInputStream;
|
5
|
+
import java.io.IOException;
|
6
|
+
import java.nio.ByteBuffer;
|
7
|
+
import java.nio.channels.FileChannel;
|
8
|
+
|
9
|
+
import de.waldheinz.fs.FileSystem;
|
10
|
+
import de.waldheinz.fs.FsDirectoryEntry;
|
11
|
+
import de.waldheinz.fs.FsFile;
|
12
|
+
import de.waldheinz.fs.fat.SuperFloppyFormatter;
|
13
|
+
import de.waldheinz.fs.util.FileDisk;
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Hello world!
|
17
|
+
*
|
18
|
+
*/
|
19
|
+
public class Dir2Floppy
|
20
|
+
{
|
21
|
+
public static void main( String[] args )
|
22
|
+
{
|
23
|
+
if (args.length < 2) {
|
24
|
+
System.out.println("Usage: java -jar dir2floppy.jar <sourcedir> <floppyfile>");
|
25
|
+
System.exit(-1);
|
26
|
+
}
|
27
|
+
|
28
|
+
FileDisk device = null;
|
29
|
+
|
30
|
+
//Create the floppy
|
31
|
+
try {
|
32
|
+
device = FileDisk.create(new File(args[1]),(long)1440 * 1024);
|
33
|
+
} catch (IOException e) {
|
34
|
+
// TODO Auto-generated catch block
|
35
|
+
e.printStackTrace();
|
36
|
+
System.exit(-1);
|
37
|
+
}
|
38
|
+
|
39
|
+
//Format the floppy
|
40
|
+
FileSystem fs=null;
|
41
|
+
try {
|
42
|
+
fs = SuperFloppyFormatter.get(device).format();
|
43
|
+
|
44
|
+
} catch (IOException e) {
|
45
|
+
// TODO Auto-generated catch block
|
46
|
+
e.printStackTrace();
|
47
|
+
System.exit(-1);
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
//Iterate of directories
|
52
|
+
File dir = new File(args[0]);
|
53
|
+
|
54
|
+
String[] children = dir.list();
|
55
|
+
if (children == null) {
|
56
|
+
// Either dir does not exist or is not a directory
|
57
|
+
System.out.println("Error. does the directory exist?");
|
58
|
+
System.exit(-1);
|
59
|
+
} else {
|
60
|
+
for (int i=0; i<children.length; i++) {
|
61
|
+
// Get filename of file or directory
|
62
|
+
File aFile=new File(dir.getAbsolutePath()+System.getProperty("file.separator")+children[i]);
|
63
|
+
|
64
|
+
try {
|
65
|
+
// Create the entry on the floppy
|
66
|
+
FsDirectoryEntry floppyEntry = fs.getRoot().addFile(children[i]);
|
67
|
+
//floppyEntry.setName(children[i]);
|
68
|
+
System.out.print("- Processing file: "+children[i]+" ");
|
69
|
+
|
70
|
+
FsFile floppyfile = floppyEntry.getFile();
|
71
|
+
|
72
|
+
// Copy the file over
|
73
|
+
if (aFile.isFile()) {
|
74
|
+
FileInputStream fis= new FileInputStream(aFile);
|
75
|
+
|
76
|
+
FileChannel fci = fis.getChannel();
|
77
|
+
ByteBuffer buffer = ByteBuffer.allocate(1024);
|
78
|
+
|
79
|
+
long counter=0;
|
80
|
+
int len;
|
81
|
+
|
82
|
+
// http://www.kodejava.org/examples/49.html
|
83
|
+
// Here we start to read the source file and write it
|
84
|
+
// to the destination file. We repeat this process
|
85
|
+
// until the read method of input stream channel return
|
86
|
+
// nothing (-1).
|
87
|
+
while(true)
|
88
|
+
{
|
89
|
+
// read a block of data and put it in the buffer
|
90
|
+
int read = fci.read(buffer);
|
91
|
+
|
92
|
+
// did we reach the end of the channel? if yes
|
93
|
+
// jump out the while-loop
|
94
|
+
if (read == -1)
|
95
|
+
break;
|
96
|
+
|
97
|
+
// flip the buffer
|
98
|
+
buffer.flip();
|
99
|
+
|
100
|
+
// write to the destination channel
|
101
|
+
System.out.print(".");
|
102
|
+
floppyfile.write(counter*1024, buffer);
|
103
|
+
counter++;
|
104
|
+
|
105
|
+
|
106
|
+
// clear the buffer and user it for the next read
|
107
|
+
// process
|
108
|
+
buffer.clear();
|
109
|
+
}
|
110
|
+
System.out.println();
|
111
|
+
|
112
|
+
floppyfile.flush();
|
113
|
+
|
114
|
+
fis.close();
|
115
|
+
}
|
116
|
+
} catch (IOException e) {
|
117
|
+
// TODO Auto-generated catch block
|
118
|
+
e.printStackTrace();
|
119
|
+
|
120
|
+
}
|
121
|
+
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
|
126
|
+
try {
|
127
|
+
fs.close();
|
128
|
+
} catch (IOException e) {
|
129
|
+
// TODO Auto-generated catch block
|
130
|
+
e.printStackTrace();
|
131
|
+
}
|
132
|
+
|
133
|
+
System.out.println( "Done" );
|
134
|
+
}
|
135
|
+
|
136
|
+
}
|
137
|
+
|
data/lib/veewee/session.rb
CHANGED
@@ -31,11 +31,11 @@ module Veewee
|
|
31
31
|
def self.declare(options)
|
32
32
|
defaults={
|
33
33
|
:cpu_count => '1', :memory_size=> '256',
|
34
|
-
:disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' ,
|
34
|
+
:disk_size => '10240', :disk_format => 'VDI', :hostiocache => 'off' ,
|
35
35
|
:os_type_id => 'Ubuntu',
|
36
36
|
:iso_file => "ubuntu-10.10-server-i386.iso", :iso_src => "", :iso_md5 => "", :iso_download_timeout => 1000,
|
37
37
|
:boot_wait => "10", :boot_cmd_sequence => [ "boot"],
|
38
|
-
:kickstart_port => "7122", :kickstart_ip => self.local_ip, :kickstart_timeout => 10000
|
38
|
+
:kickstart_port => "7122", :kickstart_ip => self.local_ip, :kickstart_timeout => 10000,
|
39
39
|
:ssh_login_timeout => "100",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
|
40
40
|
:ssh_host_port => "2222", :ssh_guest_port => "22",
|
41
41
|
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
@@ -300,10 +300,19 @@ module Veewee
|
|
300
300
|
else
|
301
301
|
puts "Starting a webserver on port #{@definition[:kickstart_port]}"
|
302
302
|
#:kickstart_port => "7122", :kickstart_ip => self.local_ip, :kickstart_timeout => 1000,:kickstart_file => "preseed.cfg",
|
303
|
-
|
303
|
+
if kickstartfile.is_a? String
|
304
|
+
Veewee::Web.wait_for_request(kickstartfile,{:port => @definition[:kickstart_port],
|
304
305
|
:host => @definition[:kickstart_ip], :timeout => @definition[:kickstart_timeout],
|
305
306
|
:web_dir => File.join(@definition_dir,boxname)})
|
306
|
-
|
307
|
+
end
|
308
|
+
if kickstartfile.is_a? Array
|
309
|
+
kickstartfiles=kickstartfile
|
310
|
+
kickstartfiles.each do |kickfile|
|
311
|
+
Veewee::Web.wait_for_request(kickfile,{:port => @definition[:kickstart_port],
|
312
|
+
:host => @definition[:kickstart_ip], :timeout => @definition[:kickstart_timeout],
|
313
|
+
:web_dir => File.join(@definition_dir,boxname)})
|
314
|
+
end
|
315
|
+
end
|
307
316
|
end
|
308
317
|
|
309
318
|
|
@@ -341,11 +350,11 @@ module Veewee
|
|
341
350
|
exit
|
342
351
|
end
|
343
352
|
command=@definition[:sudo_cmd]
|
344
|
-
command.gsub
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
Veewee::Ssh.execute("localhost","#{
|
353
|
+
newcommand=command.gsub(/%p/,"#{@definition[:ssh_password]}")
|
354
|
+
newcommand.gsub!(/%u/,"#{@definition[:ssh_user]}")
|
355
|
+
newcommand.gsub!(/%f/,"#{postinstall_file}")
|
356
|
+
puts "***#{newcommand}"
|
357
|
+
Veewee::Ssh.execute("localhost","#{newcommand}",ssh_options)
|
349
358
|
end
|
350
359
|
|
351
360
|
end
|
@@ -508,8 +517,46 @@ module Veewee
|
|
508
517
|
Veewee::Shell.execute("#{command}")
|
509
518
|
|
510
519
|
# Modify the vm to enable or disable hw virtualization extensions
|
511
|
-
|
520
|
+
vm_flags=%w{pagefusion acpi ioapic pae hpet hwvirtex hwvirtexcl nestedpaging largepages vtxvpid synthxcpu rtcuseutc}
|
521
|
+
|
522
|
+
vm_flags.each do |vm_flag|
|
523
|
+
unless @definition[vm_flag.to_sym].nil?
|
524
|
+
puts "Setting VM Flag #{vm_flag} to #{@definition[vm_flag.to_sym]}"
|
525
|
+
command="#{@vboxcmd} modi fyvm #{boxname} --#{vm_flag.to_s} #{@definition[vm_flag.to_sym]}"
|
526
|
+
Veewee::Shell.execute("#{command}")
|
527
|
+
end
|
528
|
+
end
|
512
529
|
|
530
|
+
# Todo Check for java
|
531
|
+
# Todo check output of commands
|
532
|
+
|
533
|
+
# Check for floppy
|
534
|
+
unless @definition[:floppy_files].nil?
|
535
|
+
require 'tmpdir'
|
536
|
+
temp_dir=Dir.tmpdir
|
537
|
+
@definition[:floppy_files].each do |filename|
|
538
|
+
full_filename=full_filename=File.join(@definition_dir,boxname,filename)
|
539
|
+
FileUtils.cp("#{full_filename}","#{temp_dir}")
|
540
|
+
end
|
541
|
+
javacode_dir=File.expand_path(File.join(__FILE__,'..','..','java'))
|
542
|
+
floppy_file=File.join(@definition_dir,boxname,"virtualfloppy.vfd")
|
543
|
+
command="java -jar #{javacode_dir}/dir2floppy.jar '#{temp_dir}' '#{floppy_file}'"
|
544
|
+
puts "#{command}"
|
545
|
+
Veewee::Shell.execute("#{command}")
|
546
|
+
|
547
|
+
# Create floppy controller
|
548
|
+
command="#{@vboxcmd} storagectl '#{boxname}' --name 'Floppy Controller' --add floppy"
|
549
|
+
puts "#{command}"
|
550
|
+
Veewee::Shell.execute("#{command}")
|
551
|
+
|
552
|
+
# Attach floppy to machine (the vfd extension is crucial to detect msdos type floppy)
|
553
|
+
command="#{@vboxcmd} storageattach '#{boxname}' --storagectl 'Floppy Controller' --port 0 --device 0 --type fdd --medium '#{floppy_file}'"
|
554
|
+
puts "#{command}"
|
555
|
+
Veewee::Shell.execute("#{command}")
|
556
|
+
|
557
|
+
end
|
558
|
+
|
559
|
+
|
513
560
|
#Exec and system stop the execution here
|
514
561
|
Veewee::Shell.execute("#{command}")
|
515
562
|
|
data/lib/veewee/version.rb
CHANGED
data/lib/veewee/web.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',:ioapic => 'on', :pae => 'on',
|
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
|
+
:iso_download_instructions => "This iso is no more available, for instructions see http://isoredirect.centos.org/centos/4/isos/i386/"
|
6
7
|
:boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
|
7
8
|
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
8
9
|
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
@@ -16,7 +16,7 @@ yum -y clean all
|
|
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
|
18
18
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
19
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
20
20
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
21
21
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
22
22
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
|
4
4
|
:os_type_id => 'RedHat',
|
5
|
-
:iso_file => "CentOS-5.
|
6
|
-
:iso_src => "http://mirror.bytemark.co.uk/centos/5.
|
7
|
-
:iso_md5 => "
|
5
|
+
:iso_file => "CentOS-5.6-i386-netinstall.iso",
|
6
|
+
:iso_src => "http://mirror.bytemark.co.uk/centos/5.6/isos/i386/CentOS-5.6-i386-netinstall.iso",
|
7
|
+
:iso_md5 => "a710105f7f9fe3516f08f6f8514ed2b0",
|
8
8
|
:iso_download_timeout => 1000,
|
9
9
|
:boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
|
10
10
|
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
File without changes
|
@@ -17,7 +17,7 @@ yum -y clean all
|
|
17
17
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
18
18
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
19
19
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
20
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
20
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
21
21
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
22
22
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
23
23
|
|
@@ -1,8 +1,10 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
|
4
4
|
:os_type_id => 'RedHat',
|
5
|
-
:iso_file => "CentOS-5.5-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "
|
5
|
+
:iso_file => "CentOS-5.5-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "181142a5845586579d5d4d96e43a4827", :iso_download_timeout => 1000,
|
6
|
+
:iso_download_instructions => "We can not download the ISO , you need to download it yourself and put it in the iso directory\n"+
|
7
|
+
"- URL: http://isoredirect.centos.org/centos/5/isos/i386/ ",
|
6
8
|
:boot_wait => "10", :boot_cmd_sequence => [
|
7
9
|
'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>'
|
8
10
|
],
|
File without changes
|
@@ -16,7 +16,7 @@ yum -y clean all
|
|
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
|
18
18
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
19
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
20
20
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
21
21
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
22
22
|
|
@@ -14,7 +14,7 @@ sed -i -e 's/%sudo ALL=(ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
|
|
14
14
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
15
15
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
16
16
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
17
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
17
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
18
18
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
19
19
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
20
20
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
4
4
|
:os_type_id => 'Fedora',
|
5
5
|
:iso_file => "Fedora-14-x86_64-netinst.iso",
|
6
6
|
:iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-netinst.iso",
|
@@ -19,7 +19,7 @@ yum -y clean all
|
|
19
19
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
20
20
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
21
21
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
22
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
22
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
23
23
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
24
24
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
25
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
4
4
|
:os_type_id => 'Fedora',
|
5
5
|
:iso_file => "Fedora-14-x86_64-DVD.iso",
|
6
6
|
:iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-DVD.iso",
|
@@ -19,7 +19,7 @@ yum -y clean all
|
|
19
19
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
20
20
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
21
21
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
22
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
22
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
23
23
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
24
24
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
25
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
4
4
|
:os_type_id => 'Fedora',
|
5
5
|
:iso_file => "Fedora-14-i386-netinst.iso",
|
6
6
|
:iso_src => "http://www.gtlib.gatech.edu/pub/fedora.redhat/linux//releases/14/Fedora/i386/iso/Fedora-14-i386-netinst.iso",
|
@@ -19,7 +19,7 @@ yum -y clean all
|
|
19
19
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
20
20
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
21
21
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
22
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
22
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
23
23
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
24
24
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
25
25
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
|
-
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
4
4
|
:os_type_id => 'Fedora',
|
5
5
|
:iso_file => "Fedora-14-i386-DVD.iso",
|
6
6
|
:iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/i386/iso/Fedora-14-i386-DVD.iso",
|
@@ -19,7 +19,7 @@ yum -y clean all
|
|
19
19
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
20
20
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
21
21
|
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
22
|
-
echo 'PATH=$PATH:/opt/ruby/bin
|
22
|
+
echo 'PATH=$PATH:/opt/ruby/bin'> /etc/profile.d/rubyenterprise.sh
|
23
23
|
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
24
24
|
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
25
25
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Veewee::Session.declare( {
|
2
|
+
:cpu_count => '1', :memory_size=> '768',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
|
+
:os_type_id => 'Gentoo',
|
5
|
+
:iso_file => "install-x86-minimal-20110426.iso",
|
6
|
+
:iso_src => "http://distfiles.gentoo.org/releases/x86/autobuilds/current-iso/install-x86-minimal-20110426.iso",
|
7
|
+
:iso_md5 => "548646b9d1042a162f769bc280149417",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "120",:boot_cmd_sequence => [
|
10
|
+
'net-setup eth0<Enter>',
|
11
|
+
'<Wait><Enter>',
|
12
|
+
'2<Enter>',
|
13
|
+
'1<Enter>',
|
14
|
+
'<Wait><Wait>ifconfig -a <Enter>',
|
15
|
+
#'sleep 5 ;curl http://%IP%:%PORT%/stages.sh -o stages.sh &&',
|
16
|
+
#'bash stages.sh &<Enter>',
|
17
|
+
'passwd<Enter><Wait><Wait>',
|
18
|
+
'vagrant<Enter><Wait>',
|
19
|
+
'vagrant<Enter><Wait>',
|
20
|
+
'/etc/init.d/sshd start<Enter>'
|
21
|
+
],
|
22
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "",
|
23
|
+
:ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "vagrant",:ssh_key => "",
|
24
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
25
|
+
:sudo_cmd => "cat '%f'|su -",
|
26
|
+
:shutdown_cmd => "shutdown -p now",
|
27
|
+
:postinstall_files => [ "post_install.sh"],:postinstall_timeout => "10000"
|
28
|
+
}
|
29
|
+
)
|