veewee 0.2.1 → 0.2.2
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/README.md +4 -2
- data/lib/veewee/export.rb +2 -2
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-4.8-i386/definition.rb +1 -1
- data/templates/CentOS-6.0-x86_64-minimal/definition.rb +1 -1
- data/templates/CentOS-6.1-x86_64-minimal/definition.rb +15 -0
- data/templates/CentOS-6.1-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.1-x86_64-minimal/postinstall.sh +50 -0
- data/templates/Fedora-16-i386/definition.rb +17 -0
- data/templates/Fedora-16-i386/ks.cfg +72 -0
- data/templates/Fedora-16-i386/postinstall.sh +35 -0
- data/templates/Fedora-16-x86_64/definition.rb +17 -0
- data/templates/Fedora-16-x86_64/ks.cfg +72 -0
- data/templates/Fedora-16-x86_64/postinstall.sh +35 -0
- data/templates/archlinux-i386-netboot/aif.cfg +2 -2
- data/templates/freebsd-8.2-pcbsd-i386/definition.rb +1 -1
- data/templates/gentoo-latest-i386-experimental/definition.rb +6 -6
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +34 -0
- data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +214 -0
- data/templates/openindiana-148-ai-x86/definition.rb +1 -1
- data/templates/solaris-11-express-i386/definition.rb +1 -1
- data/templates/ubuntu-10.04.3-server-amd64-alt/definition.rb +2 -2
- data/templates/ubuntu-8.04.4-server-amd64/definition.rb +1 -1
- data/templates/ubuntu-8.04.4-server-i386/definition.rb +1 -1
- data/veewee.gemspec +1 -1
- metadata +96 -34
- data/Gemfile.lock +0 -71
data/README.md
CHANGED
@@ -46,8 +46,6 @@ If you don't use rvm, be sure to execute vagrant through bundle exec
|
|
46
46
|
vagrant basebox define '<boxname>' 'CentOS-6.0-x86_64-netboot'
|
47
47
|
vagrant basebox define '<boxname>' 'Debian-5.0.8-amd64-netboot'
|
48
48
|
vagrant basebox define '<boxname>' 'Debian-5.0.8-i386-netboot'
|
49
|
-
vagrant basebox define '<boxname>' 'Debian-6.0.2-amd64-netboot'
|
50
|
-
vagrant basebox define '<boxname>' 'Debian-6.0.2-i386-netboot'
|
51
49
|
vagrant basebox define '<boxname>' 'Debian-6.0.3-amd64-netboot'
|
52
50
|
vagrant basebox define '<boxname>' 'Debian-6.0.3-i386-netboot'
|
53
51
|
vagrant basebox define '<boxname>' 'Fedora-14-amd64'
|
@@ -73,6 +71,8 @@ If you don't use rvm, be sure to execute vagrant through bundle exec
|
|
73
71
|
vagrant basebox define '<boxname>' 'openSUSE-11.4-NET-x86_64'
|
74
72
|
vagrant basebox define '<boxname>' 'openindiana-148-ai-x86'
|
75
73
|
vagrant basebox define '<boxname>' 'opensuse-11.4-i386-experimental'
|
74
|
+
vagrant basebox define '<boxname>' 'scientificlinux-6.1-i386-netboot'
|
75
|
+
vagrant basebox define '<boxname>' 'scientificlinux-6.1-x86_64-netboot'
|
76
76
|
vagrant basebox define '<boxname>' 'solaris-11-express-i386'
|
77
77
|
vagrant basebox define '<boxname>' 'ubuntu-10.04.2-amd64-netboot'
|
78
78
|
vagrant basebox define '<boxname>' 'ubuntu-10.04.2-server-i386-netboot'
|
@@ -86,6 +86,8 @@ If you don't use rvm, be sure to execute vagrant through bundle exec
|
|
86
86
|
vagrant basebox define '<boxname>' 'ubuntu-11.04-server-amd64'
|
87
87
|
vagrant basebox define '<boxname>' 'ubuntu-11.04-server-i386'
|
88
88
|
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64'
|
89
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64-ishaya'
|
90
|
+
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-amd64-ruby192'
|
89
91
|
vagrant basebox define '<boxname>' 'ubuntu-11.10-server-i386'
|
90
92
|
vagrant basebox define '<boxname>' 'ubuntu-8.04.4-server-amd64'
|
91
93
|
vagrant basebox define '<boxname>' 'ubuntu-8.04.4-server-i386'
|
data/lib/veewee/export.rb
CHANGED
@@ -46,7 +46,7 @@ module Veewee
|
|
46
46
|
exit
|
47
47
|
end
|
48
48
|
|
49
|
-
puts "
|
49
|
+
puts "Executing vagrant voodoo:"
|
50
50
|
export_command="vagrant package --base '#{boxname}' --output '#{box_path}'"
|
51
51
|
puts "#{export_command}"
|
52
52
|
Veewee::Shell.execute("#{export_command}") #hmm, needs to get the gem_home set?
|
@@ -78,4 +78,4 @@ end
|
|
78
78
|
|
79
79
|
|
80
80
|
#vagrant export disables the machine
|
81
|
-
# thebox.ssh_enable_vmachine({:hostport => host_port , :guestport => 22} )
|
81
|
+
# thebox.ssh_enable_vmachine({:hostport => host_port , :guestport => 22} )
|
data/lib/veewee/version.rb
CHANGED
@@ -3,7 +3,7 @@ Veewee::Session.declare({
|
|
3
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
|
+
:iso_download_instructions => "This iso is no more available, for instructions see http://isoredirect.centos.org/centos/4/isos/i386/",
|
7
7
|
:boot_wait => "10", :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
|
8
8
|
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
9
9
|
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '384',
|
3
3
|
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
-
:os_type_id => 'RedHat_64',
|
4
|
+
:os_type_id => 'RedHat_64',
|
5
5
|
:iso_file => "CentOS-6.0-x86_64-minimal.iso", :iso_src => "http://be.mirror.eurid.eu/centos/6.0/isos/x86_64/CentOS-6.0-x86_64-minimal.iso", :iso_md5 => "b9fff4dad7aad0edaa564d7a251cb971", :iso_download_timeout => 1000,
|
6
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
7
|
"- URL: http://isoredirect.centos.org/centos/6/isos/x86_64/ ",
|
@@ -0,0 +1,15 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '512',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'RedHat_64',
|
5
|
+
:iso_file => "CentOS-6.1-x86_64-minimal.iso", :iso_src => "http://mirror.internode.on.net/pub/centos/6.1/isos/x86_64/CentOS-6.1-x86_64-minimal.iso", :iso_md5 => "03177dfefb4ebfeb03f457c29f00b0a1", :iso_download_timeout => 1000,
|
6
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
7
|
+
'<Tab> 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
|
+
})
|
@@ -0,0 +1,37 @@
|
|
1
|
+
install
|
2
|
+
cdrom
|
3
|
+
lang en_US.UTF-8
|
4
|
+
keyboard us
|
5
|
+
network --bootproto=dhcp
|
6
|
+
rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
|
7
|
+
firewall --enabled --service=ssh
|
8
|
+
authconfig --enableshadow --passalgo=sha512
|
9
|
+
selinux --disabled
|
10
|
+
timezone UTC
|
11
|
+
bootloader --location=mbr
|
12
|
+
|
13
|
+
text
|
14
|
+
skipx
|
15
|
+
zerombr
|
16
|
+
|
17
|
+
clearpart --all --initlabel
|
18
|
+
autopart
|
19
|
+
|
20
|
+
auth --useshadow --enablemd5
|
21
|
+
firstboot --disabled
|
22
|
+
reboot
|
23
|
+
|
24
|
+
%packages --ignoremissing
|
25
|
+
@core
|
26
|
+
bzip2
|
27
|
+
|
28
|
+
-ipw2100-firmware
|
29
|
+
-ipw2200-firmware
|
30
|
+
-ivtv-firmware
|
31
|
+
|
32
|
+
%post
|
33
|
+
/usr/bin/yum -y install sudo
|
34
|
+
/usr/sbin/groupadd vagrant
|
35
|
+
/usr/sbin/useradd vagrant -g vagrant -G wheel
|
36
|
+
echo "vagrant"|passwd --stdin vagrant
|
37
|
+
echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
@@ -0,0 +1,50 @@
|
|
1
|
+
#http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
yum -y install gcc make gcc-c++ ruby kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl
|
6
|
+
|
7
|
+
cat > /etc/yum.repos.d/puppetlabs.repo << EOM
|
8
|
+
[puppetlabs]
|
9
|
+
name=puppetlabs
|
10
|
+
baseurl=http://yum.puppetlabs.com/el/6/products/\$basearch
|
11
|
+
enabled=1
|
12
|
+
gpgcheck=0
|
13
|
+
EOM
|
14
|
+
|
15
|
+
cat > /etc/yum.repos.d/epel.repo << EOM
|
16
|
+
[epel]
|
17
|
+
name=epel
|
18
|
+
baseurl=http://download.fedoraproject.org/pub/epel/6/\$basearch
|
19
|
+
enabled=1
|
20
|
+
gpgcheck=0
|
21
|
+
EOM
|
22
|
+
|
23
|
+
yum -y install puppet facter ruby-devel rubygems
|
24
|
+
yum -y clean all
|
25
|
+
rm /etc/yum.repos.d/{puppetlabs,epel}.repo
|
26
|
+
|
27
|
+
gem install --no-ri --no-rdoc chef
|
28
|
+
|
29
|
+
# Installing vagrant keys
|
30
|
+
mkdir /home/vagrant/.ssh
|
31
|
+
chmod 700 /home/vagrant/.ssh
|
32
|
+
cd /home/vagrant/.ssh
|
33
|
+
curl -L -o authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
|
34
|
+
chown -R vagrant /home/vagrant/.ssh
|
35
|
+
|
36
|
+
# Installing the virtualbox guest additions
|
37
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
38
|
+
cd /tmp
|
39
|
+
curl -L -o VBoxGuestAdditions_$VBOX_VERSION.iso http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
40
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
41
|
+
sh /mnt/VBoxLinuxAdditions.run
|
42
|
+
umount /mnt
|
43
|
+
|
44
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
45
|
+
|
46
|
+
sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
|
47
|
+
|
48
|
+
dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
|
49
|
+
|
50
|
+
exit
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
# Minimum RAM requirement for installation is 768MB.
|
3
|
+
:cpu_count => '1', :memory_size=> '768',
|
4
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
5
|
+
:os_type_id => 'Fedora',
|
6
|
+
:iso_file => "Fedora-16-i386-DVD.iso",
|
7
|
+
:iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/16/Fedora/i386/iso/Fedora-16-i386-DVD.iso",
|
8
|
+
:iso_md5 => "0d64ab6b1b800827a9c83d95395b3da0",
|
9
|
+
:iso_download_timeout => 1000,
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
|
11
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
12
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
13
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
14
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
15
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
16
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
17
|
+
})
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Kickstart file automatically generated by anaconda.
|
2
|
+
|
3
|
+
install
|
4
|
+
cdrom
|
5
|
+
lang en_US.UTF-8
|
6
|
+
keyboard us
|
7
|
+
# note we set biosdevname=0 when launching install
|
8
|
+
# this means we will be using standard ethernet devices, e.g. eth[0,1,2] eth
|
9
|
+
network --onboot yes --device eth0 --bootproto dhcp --noipv6
|
10
|
+
timezone --utc America/Los_Angeles
|
11
|
+
rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
|
12
|
+
selinux --enforcing
|
13
|
+
authconfig --enableshadow --passalgo=sha512
|
14
|
+
firewall --service=ssh
|
15
|
+
# The following is the partition information you requested
|
16
|
+
# Note that any partitions you deleted are not expressed
|
17
|
+
# here so unless you clear all partitions first, this is
|
18
|
+
# not guaranteed to work
|
19
|
+
clearpart --all --drives=sda --initlabel
|
20
|
+
|
21
|
+
part biosboot --fstype=biosboot --size=1
|
22
|
+
part /boot --fstype=ext4 --size=500
|
23
|
+
part pv.2 --grow --size=500
|
24
|
+
|
25
|
+
volgroup vg_vagrant --pesize=32768 pv.2
|
26
|
+
logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow
|
27
|
+
logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056
|
28
|
+
bootloader --location=mbr --driveorder=sda --append="norhgb biosdevname=0"
|
29
|
+
# Disable remote repositories, as this is a non-netinst install.
|
30
|
+
#repo --name="Fedora 16 - i386" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-16&arch=i386 --cost=1000
|
31
|
+
#repo --name="Fedora 16 - i386 - Updates" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f16&arch=i386 --cost=1000
|
32
|
+
services --enabled network
|
33
|
+
reboot
|
34
|
+
|
35
|
+
%packages
|
36
|
+
@core
|
37
|
+
@online-docs
|
38
|
+
|
39
|
+
# Requirements for vagrant
|
40
|
+
kernel-devel
|
41
|
+
kernel-headers
|
42
|
+
make
|
43
|
+
gcc
|
44
|
+
%end
|
45
|
+
|
46
|
+
%post
|
47
|
+
# Make ssh quicker in disconnected situations.
|
48
|
+
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
49
|
+
|
50
|
+
# Disable udev persistent net rules
|
51
|
+
# We do this so that we do not persist rules mapped to virtual machines
|
52
|
+
# instances created from this basebox.
|
53
|
+
ln -s /dev/null /etc/udev/rule.d/70-persistent-net.rules
|
54
|
+
|
55
|
+
# Add Vagrant user and group.
|
56
|
+
/usr/sbin/groupadd vagrant
|
57
|
+
/usr/sbin/useradd vagrant -g vagrant
|
58
|
+
echo "vagrant"|passwd --stdin vagrant
|
59
|
+
|
60
|
+
# Give Vagrant user permission to sudo.
|
61
|
+
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant
|
62
|
+
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant
|
63
|
+
chmod 440 /etc/sudoers.d/vagrant
|
64
|
+
|
65
|
+
# Install vagrant authorized ssh key.
|
66
|
+
mkdir /home/vagrant/.ssh
|
67
|
+
curl -L 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' > /home/vagrant/.ssh/authorized_keys
|
68
|
+
chown vagrant:vagrant -R /home/vagrant/.ssh
|
69
|
+
chmod 700 /home/vagrant/.ssh
|
70
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
71
|
+
chcon -R unconfined_u:object_r:user_home_t:s0 /home/vagrant/.ssh
|
72
|
+
%end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
6
|
+
|
7
|
+
yum -y update
|
8
|
+
|
9
|
+
yum -y install \
|
10
|
+
ruby \
|
11
|
+
ruby-devel \
|
12
|
+
puppet \
|
13
|
+
rubygems \
|
14
|
+
rubygem-erubis \
|
15
|
+
rubygem-highline \
|
16
|
+
rubygem-json \
|
17
|
+
rubygem-mime-types \
|
18
|
+
rubygem-net-ssh \
|
19
|
+
rubygem-polyglot \
|
20
|
+
rubygem-rest-client \
|
21
|
+
rubygem-treetop \
|
22
|
+
rubygem-uuidtools
|
23
|
+
|
24
|
+
cd /tmp
|
25
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
26
|
+
mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
27
|
+
sh /mnt/VBoxLinuxAdditions.run
|
28
|
+
umount /mnt
|
29
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
30
|
+
|
31
|
+
gem install chef --no-rdoc --no-ri
|
32
|
+
|
33
|
+
exit
|
34
|
+
|
35
|
+
# EOF
|
@@ -0,0 +1,17 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
# Minimum RAM requirement for installation is 768MB.
|
3
|
+
:cpu_count => '1', :memory_size=> '768',
|
4
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
5
|
+
:os_type_id => 'Fedora',
|
6
|
+
:iso_file => "Fedora-16-x86_64-DVD.iso",
|
7
|
+
:iso_src => "http://download.fedoraproject.org/pub/fedora/linux/releases/16/Fedora/x86_64/iso/Fedora-16-x86_64-DVD.iso",
|
8
|
+
:iso_md5 => "bb38ea1fe4b2fc69e7a6e15cf1c69c91",
|
9
|
+
:iso_download_timeout => 1000,
|
10
|
+
:boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text biosdevname=0 ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
|
11
|
+
:kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
|
12
|
+
:ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
13
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
14
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
15
|
+
:shutdown_cmd => "/sbin/halt -h -p",
|
16
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
|
17
|
+
})
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Kickstart file automatically generated by anaconda.
|
2
|
+
|
3
|
+
install
|
4
|
+
cdrom
|
5
|
+
lang en_US.UTF-8
|
6
|
+
keyboard us
|
7
|
+
# note we set biosdevname=0 when launching install
|
8
|
+
# this means we will be using standard ethernet devices, e.g. eth[0,1,2] eth
|
9
|
+
network --onboot yes --device eth0 --bootproto dhcp --noipv6
|
10
|
+
timezone --utc America/Los_Angeles
|
11
|
+
rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
|
12
|
+
selinux --enforcing
|
13
|
+
authconfig --enableshadow --passalgo=sha512
|
14
|
+
firewall --service=ssh
|
15
|
+
# The following is the partition information you requested
|
16
|
+
# Note that any partitions you deleted are not expressed
|
17
|
+
# here so unless you clear all partitions first, this is
|
18
|
+
# not guaranteed to work
|
19
|
+
clearpart --all --drives=sda --initlabel
|
20
|
+
|
21
|
+
part biosboot --fstype=biosboot --size=1
|
22
|
+
part /boot --fstype=ext4 --size=500
|
23
|
+
part pv.2 --grow --size=500
|
24
|
+
|
25
|
+
volgroup vg_vagrant --pesize=32768 pv.2
|
26
|
+
logvol / --fstype=ext4 --name=lv_root --vgname=vg_vagrant --size=1024 --grow
|
27
|
+
logvol swap --fstype=swap --name=lv_swap --vgname=vg_vagrant --size=528 --grow --maxsize=1056
|
28
|
+
bootloader --location=mbr --driveorder=sda --append="norhgb biosdevname=0"
|
29
|
+
# Disable remote repositories, as this is a non-netinst install.
|
30
|
+
#repo --name="Fedora 16 - x86_64" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-16&arch=x86_64 --cost=1000
|
31
|
+
#repo --name="Fedora 16 - x86_64 - Updates" --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f16&arch=x86_64 --cost=1000
|
32
|
+
services --enabled network
|
33
|
+
reboot
|
34
|
+
|
35
|
+
%packages
|
36
|
+
@core
|
37
|
+
@online-docs
|
38
|
+
|
39
|
+
# Requirements for vagrant
|
40
|
+
kernel-devel
|
41
|
+
kernel-headers
|
42
|
+
make
|
43
|
+
gcc
|
44
|
+
%end
|
45
|
+
|
46
|
+
%post
|
47
|
+
# Make ssh quicker in disconnected situations.
|
48
|
+
echo 'UseDNS no' >> /etc/ssh/sshd_config
|
49
|
+
|
50
|
+
# Disable udev persistent net rules
|
51
|
+
# We do this so that we do not persist rules mapped to virtual machines
|
52
|
+
# instances created from this basebox.
|
53
|
+
ln -s /dev/null /etc/udev/rule.d/70-persistent-net.rules
|
54
|
+
|
55
|
+
# Add Vagrant user and group.
|
56
|
+
/usr/sbin/groupadd vagrant
|
57
|
+
/usr/sbin/useradd vagrant -g vagrant
|
58
|
+
echo "vagrant"|passwd --stdin vagrant
|
59
|
+
|
60
|
+
# Give Vagrant user permission to sudo.
|
61
|
+
echo 'Defaults:vagrant !requiretty' > /etc/sudoers.d/vagrant
|
62
|
+
echo '%vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers.d/vagrant
|
63
|
+
chmod 440 /etc/sudoers.d/vagrant
|
64
|
+
|
65
|
+
# Install vagrant authorized ssh key.
|
66
|
+
mkdir /home/vagrant/.ssh
|
67
|
+
curl -L 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' > /home/vagrant/.ssh/authorized_keys
|
68
|
+
chown vagrant:vagrant -R /home/vagrant/.ssh
|
69
|
+
chmod 700 /home/vagrant/.ssh
|
70
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
71
|
+
chcon -R unconfined_u:object_r:user_home_t:s0 /home/vagrant/.ssh
|
72
|
+
%end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
6
|
+
|
7
|
+
yum -y update
|
8
|
+
|
9
|
+
yum -y install \
|
10
|
+
ruby \
|
11
|
+
ruby-devel \
|
12
|
+
puppet \
|
13
|
+
rubygems \
|
14
|
+
rubygem-erubis \
|
15
|
+
rubygem-highline \
|
16
|
+
rubygem-json \
|
17
|
+
rubygem-mime-types \
|
18
|
+
rubygem-net-ssh \
|
19
|
+
rubygem-polyglot \
|
20
|
+
rubygem-rest-client \
|
21
|
+
rubygem-treetop \
|
22
|
+
rubygem-uuidtools
|
23
|
+
|
24
|
+
cd /tmp
|
25
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
26
|
+
mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
27
|
+
sh /mnt/VBoxLinuxAdditions.run
|
28
|
+
umount /mnt
|
29
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
30
|
+
|
31
|
+
gem install chef --no-rdoc --no-ri
|
32
|
+
|
33
|
+
exit
|
34
|
+
|
35
|
+
# EOF
|
@@ -8,7 +8,7 @@ if [ -d /repo/core ]; then
|
|
8
8
|
TARGET_REPOSITORIES=(core 'file:///repo/$repo/$arch')
|
9
9
|
else
|
10
10
|
MIRROR='http://archlinux.mirror.kangaroot.net/$repo/os/$arch'
|
11
|
-
TARGET_REPOSITORIES=(core $var_MIRRORLIST extra $var_MIRRORLIST)
|
11
|
+
TARGET_REPOSITORIES=(core $var_MIRRORLIST extra $var_MIRRORLIST community $var_MIRRORLIST)
|
12
12
|
fi
|
13
13
|
|
14
14
|
# time/date
|
@@ -17,7 +17,7 @@ TIMEZONE=Europe/Brussels
|
|
17
17
|
|
18
18
|
# packages to install
|
19
19
|
TARGET_GROUPS=base
|
20
|
-
TARGET_PACKAGES='sudo openssh vim ruby linux-headers make gcc glibc git perl net-tools'
|
20
|
+
TARGET_PACKAGES='sudo openssh vim libyaml ruby linux-headers make gcc glibc git perl net-tools'
|
21
21
|
TARGET_PACKAGES_EXCLUDE='nano emacs wpa_supplicant xfsprogs reiserfsprogs pcmciautils mdadm jfsutils cryptsetup lvm2'
|
22
22
|
|
23
23
|
# hard drive setup
|
@@ -9,7 +9,7 @@ Veewee::Session.declare({
|
|
9
9
|
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
10
10
|
:os_type_id => 'FreeBSD',
|
11
11
|
:iso_file => "PCBSD8.2-x86-DVD.iso",
|
12
|
-
:iso_src => "http://
|
12
|
+
:iso_src => "http://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-DVD.iso",
|
13
13
|
:iso_md5 => "6433a8abf6073b177750d48398bed341",
|
14
14
|
:iso_download_timeout => "1000",
|
15
15
|
:boot_wait => "70", :boot_cmd_sequence => [
|
@@ -3,7 +3,7 @@ Veewee::Session.declare( {
|
|
3
3
|
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
4
|
:os_type_id => 'Gentoo',
|
5
5
|
:iso_file => "install-x86-minimal-20110726.iso",
|
6
|
-
:iso_src => "http://ftp.halifax.rwth-aachen.de/gentoo/releases/x86/autobuilds/20110726/install-x86-minimal-20110726.iso"
|
6
|
+
:iso_src => "http://ftp.halifax.rwth-aachen.de/gentoo/releases/x86/autobuilds/20110726/install-x86-minimal-20110726.iso",
|
7
7
|
:iso_md5 => "29fc74988e7f86417395e376afc1af47",
|
8
8
|
:iso_download_timeout => "1000",
|
9
9
|
:boot_wait => "120",:boot_cmd_sequence => [
|
@@ -11,12 +11,12 @@ Veewee::Session.declare( {
|
|
11
11
|
'<Wait><Enter>',
|
12
12
|
'2<Enter>',
|
13
13
|
'1<Enter>',
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
'<Wait><Wait>ifconfig -a <Enter>',
|
15
|
+
#'sleep 5 ;curl http://%IP%:%PORT%/stages.sh -o stages.sh &&',
|
16
|
+
#'bash stages.sh &<Enter>',
|
17
17
|
'passwd<Enter><Wait><Wait>',
|
18
|
-
|
19
|
-
|
18
|
+
'vagrant<Enter><Wait>',
|
19
|
+
'vagrant<Enter><Wait>',
|
20
20
|
'/etc/init.d/sshd start<Enter>'
|
21
21
|
],
|
22
22
|
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "",
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Veewee::Session.declare( {
|
2
|
+
:cpu_count => '8', :memory_size=> '2048',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
|
+
:os_type_id => 'Gentoo',
|
5
|
+
:iso_file => "install-amd64-minimal-20111013.iso",
|
6
|
+
:iso_src => "http://mirror.switch.ch/ftp/mirror/gentoo/releases/amd64/autobuilds/20111013/install-amd64-minimal-20111013.iso",
|
7
|
+
:iso_md5 => "3a08f6c41b7ba1a7574fed14629778c9",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "1",:boot_cmd_sequence => [
|
10
|
+
'<Wait>'*2,
|
11
|
+
'gentoo-nofb<Enter>',
|
12
|
+
'<Wait>'*10,
|
13
|
+
'<Enter>',
|
14
|
+
'<Wait>'*10,
|
15
|
+
'net-setup eth0<Enter>',
|
16
|
+
'<Wait><Enter>',
|
17
|
+
'2<Enter>',
|
18
|
+
'1<Enter>',
|
19
|
+
'<Wait><Wait>ifconfig -a <Enter>',
|
20
|
+
#'sleep 5 ;curl http://%IP%:%PORT%/stages.sh -o stages.sh &&',
|
21
|
+
#'bash stages.sh &<Enter>',
|
22
|
+
'passwd<Enter><Wait><Wait>',
|
23
|
+
'vagrant<Enter><Wait>',
|
24
|
+
'vagrant<Enter><Wait>',
|
25
|
+
'/etc/init.d/sshd start<Enter>'
|
26
|
+
],
|
27
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "",
|
28
|
+
:ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "vagrant",:ssh_key => "",
|
29
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
30
|
+
:sudo_cmd => "cat '%f'|su -",
|
31
|
+
:shutdown_cmd => "shutdown -p now",
|
32
|
+
:postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000"
|
33
|
+
}
|
34
|
+
)
|
@@ -0,0 +1,214 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
date > /etc/vagrant_box_build_time
|
4
|
+
|
5
|
+
#Based on http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml
|
6
|
+
|
7
|
+
#Partition the disk
|
8
|
+
#This assumes a predefined layout - customize to your own liking
|
9
|
+
|
10
|
+
#/boot -> /dev/sda1
|
11
|
+
#swap -> /dev/sda2
|
12
|
+
#root -> /dev/sda3
|
13
|
+
|
14
|
+
sfdisk --force /dev/sda <<EOF
|
15
|
+
# partition table of /dev/sda
|
16
|
+
unit: sectors
|
17
|
+
|
18
|
+
/dev/sda1 : start= 2048, size= 409600, Id=83
|
19
|
+
/dev/sda2 : start= 411648, size= 2097152, Id=82
|
20
|
+
/dev/sda3 : start= 2508800, size= 18257920, Id=83
|
21
|
+
/dev/sda4 : start= 0, size= 0, Id= 0
|
22
|
+
EOF
|
23
|
+
|
24
|
+
sleep 2
|
25
|
+
|
26
|
+
#Format the /boot
|
27
|
+
mke2fs /dev/sda1
|
28
|
+
|
29
|
+
#Main partition /
|
30
|
+
mke2fs -j /dev/sda3
|
31
|
+
|
32
|
+
#Format the swap and use it
|
33
|
+
mkswap /dev/sda2
|
34
|
+
swapon /dev/sda2
|
35
|
+
|
36
|
+
#Mount the new disk
|
37
|
+
mkdir /mnt/gentoo
|
38
|
+
mount /dev/sda3 /mnt/gentoo
|
39
|
+
mkdir /mnt/gentoo/boot
|
40
|
+
mount /dev/sda1 /mnt/gentoo/boot
|
41
|
+
cd /mnt/gentoo
|
42
|
+
|
43
|
+
#Note: we retry as sometimes mirrors fail to have the files
|
44
|
+
|
45
|
+
#Download a stage3 archive
|
46
|
+
while true; do
|
47
|
+
wget http://mirror.switch.ch/ftp/mirror/gentoo/releases/amd64/autobuilds/20111013/stage3-amd64-20111013.tar.bz2 && > gotstage3
|
48
|
+
if [ -f "gotstage3" ]
|
49
|
+
then
|
50
|
+
break
|
51
|
+
else
|
52
|
+
echo "trying in 2seconds"
|
53
|
+
sleep 2
|
54
|
+
fi
|
55
|
+
done
|
56
|
+
tar xjpf stage3*
|
57
|
+
|
58
|
+
#Download Portage snapshot
|
59
|
+
cd /mnt/gentoo/usr
|
60
|
+
while true; do
|
61
|
+
wget http://mirror.switch.ch/ftp/mirror/gentoo/snapshots/portage-latest.tar.bz2 && > gotportage
|
62
|
+
if [ -f "gotportage" ]
|
63
|
+
then
|
64
|
+
break
|
65
|
+
else
|
66
|
+
echo "trying in 2seconds"
|
67
|
+
sleep 2
|
68
|
+
fi
|
69
|
+
done
|
70
|
+
|
71
|
+
tar xjf portage-lat*
|
72
|
+
|
73
|
+
#Chroot
|
74
|
+
cd /
|
75
|
+
mount -t proc proc /mnt/gentoo/proc
|
76
|
+
mount --rbind /dev /mnt/gentoo/dev
|
77
|
+
cp -L /etc/resolv.conf /mnt/gentoo/etc/
|
78
|
+
echo "env-update && source /etc/profile" | chroot /mnt/gentoo /bin/bash -
|
79
|
+
|
80
|
+
# Get the kernel sources
|
81
|
+
echo "emerge =sys-kernel/gentoo-sources-2.6.39-r3" | chroot /mnt/gentoo /bin/bash -
|
82
|
+
|
83
|
+
# We will use genkernel to automate the kernel compilation
|
84
|
+
# http://www.gentoo.org/doc/en/genkernel.xml
|
85
|
+
echo "emerge grub" | chroot /mnt/gentoo /bin/bash -
|
86
|
+
echo "emerge genkernel" | chroot /mnt/gentoo /bin/bash -
|
87
|
+
echo 'MAKEOPTS="-j17"' >> /mnt/gentoo/etc/make.conf
|
88
|
+
|
89
|
+
cat <<EOF | chroot /mnt/gentoo /bin/bash -
|
90
|
+
cat <<GRUBCONF > /boot/grub/grub.conf
|
91
|
+
default 0
|
92
|
+
timeout 1
|
93
|
+
|
94
|
+
title=Gentoo Linux (2.6.39-gentoo-r3)
|
95
|
+
root (hd0,0)
|
96
|
+
kernel /boot/kernel-genkernel-x86_64-2.6.39-gentoo-r3 root=/dev/ram0 real_root=/dev/sda3
|
97
|
+
initrd /boot/initramfs-genkernel-x86_64-2.6.39-gentoo-r3
|
98
|
+
GRUBCONF
|
99
|
+
EOF
|
100
|
+
|
101
|
+
echo "genkernel --bootloader=grub --no-splash --install all" | chroot /mnt/gentoo /bin/bash -
|
102
|
+
|
103
|
+
cat <<EOF | chroot /mnt/gentoo /bin/bash -
|
104
|
+
/sbin/grub --batch --device-map=/dev/null <<GRUBEOF
|
105
|
+
device (hd0) /dev/sda
|
106
|
+
root (hd0,0)
|
107
|
+
setup (hd0)
|
108
|
+
quit
|
109
|
+
GRUBEOF
|
110
|
+
EOF
|
111
|
+
|
112
|
+
cat <<EOF | chroot /mnt/gentoo /bin/bash -
|
113
|
+
cat <<FSTAB > /etc/fstab
|
114
|
+
/dev/sda1 /boot ext2 noauto,noatime 1 2
|
115
|
+
/dev/sda3 / ext3 noatime 0 1
|
116
|
+
/dev/sda2 none swap sw 0 0
|
117
|
+
FSTAB
|
118
|
+
EOF
|
119
|
+
|
120
|
+
|
121
|
+
#We need some things to do here
|
122
|
+
#Network
|
123
|
+
cat <<EOF | chroot /mnt/gentoo /bin/bash -
|
124
|
+
cd /etc/conf.d
|
125
|
+
echo 'config_eth0=( "dhcp" )' >> net
|
126
|
+
#echo 'dhcpd_eth0=( "-t 10" )' >> net
|
127
|
+
#echo 'dhcp_eth0=( "release nodns nontp nois" )' >> net
|
128
|
+
ln -s net.lo /etc/init.d/net.eth0
|
129
|
+
rc-update add net.eth0 default
|
130
|
+
#Module?
|
131
|
+
rc-update add sshd default
|
132
|
+
EOF
|
133
|
+
|
134
|
+
#Root password
|
135
|
+
|
136
|
+
# make.conf customization for more CPU cores
|
137
|
+
echo 'MAKEOPTS="-j17"' >> /mnt/gentoo/etc/make.conf
|
138
|
+
|
139
|
+
# Cron & Syslog
|
140
|
+
echo "emerge syslog-ng vixie-cron" | chroot /mnt/gentoo sh -
|
141
|
+
echo "rc-update add syslog-ng default" | chroot /mnt/gentoo sh -
|
142
|
+
echo "rc-update add vixie-cron default" | chroot /mnt/gentoo sh -
|
143
|
+
|
144
|
+
#Get an editor going
|
145
|
+
echo "emerge vim" | chroot /mnt/gentoo sh -
|
146
|
+
|
147
|
+
#Allow external ssh
|
148
|
+
echo "echo 'sshd:ALL' > /etc/hosts.allow" | chroot /mnt/gentoo sh -
|
149
|
+
echo "echo 'ALL:ALL' > /etc/hosts.deny" | chroot /mnt/gentoo sh -
|
150
|
+
|
151
|
+
#create vagrant user / password vagrant
|
152
|
+
chroot /mnt/gentoo useradd -m -r vagrant -p '$1$MPmczGP9$1SeNO4bw5YgiEJuo/ZkWq1'
|
153
|
+
|
154
|
+
#Configure Sudo
|
155
|
+
chroot /mnt/gentoo emerge sudo
|
156
|
+
echo "echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" | chroot /mnt/gentoo sh -
|
157
|
+
|
158
|
+
#Installing vagrant keys
|
159
|
+
chroot /mnt/gentoo emerge wget
|
160
|
+
|
161
|
+
echo "creating vagrant ssh keys"
|
162
|
+
chroot /mnt/gentoo mkdir /home/vagrant/.ssh
|
163
|
+
chroot /mnt/gentoo chmod 700 /home/vagrant/.ssh
|
164
|
+
chroot /mnt/gentoo cd /home/vagrant/.ssh
|
165
|
+
chroot /mnt/gentoo wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
166
|
+
chroot /mnt/gentoo chmod 600 /home/vagrant/.ssh/authorized_keys
|
167
|
+
chroot /mnt/gentoo chown -R vagrant /home/vagrant/.ssh
|
168
|
+
|
169
|
+
#This could be done in postinstall
|
170
|
+
#reboot
|
171
|
+
|
172
|
+
#get some ruby running
|
173
|
+
chroot /mnt/gentoo emerge git curl gcc automake m4
|
174
|
+
chroot /mnt/gentoo emerge libiconv readline zlib openssl curl git libyaml sqlite libxslt
|
175
|
+
echo "bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)"| chroot /mnt/gentoo /bin/bash -
|
176
|
+
echo "/usr/local/rvm/bin/rvm install ruby-1.8.7 "| chroot /mnt/gentoo sh -
|
177
|
+
echo "/usr/local/rvm/bin/rvm use ruby-1.8.7 --default "| chroot /mnt/gentoo sh -
|
178
|
+
|
179
|
+
#Installing chef & Puppet
|
180
|
+
echo ". /usr/local/rvm/scripts/rvm ; gem install chef --no-ri --no-rdoc"| chroot /mnt/gentoo sh -
|
181
|
+
echo ". /usr/local/rvm/scripts/rvm ; gem install puppet --no-ri --no-rdoc"| chroot /mnt/gentoo sh -
|
182
|
+
|
183
|
+
|
184
|
+
echo "adding rvm to global bash rc"
|
185
|
+
echo "echo '. /usr/local/rvm/scripts/rvm' >> /etc/bash/bash.rc" | chroot /mnt/gentoo sh -
|
186
|
+
|
187
|
+
/bin/cp -f /root/.vbox_version /mnt/gentoo/home/vagrant/.vbox_version
|
188
|
+
VBOX_VERSION=$(cat /root/.vbox_version)
|
189
|
+
|
190
|
+
#Kernel headers
|
191
|
+
echo "emerge =sys-kernel/linux-headers-2.6.39" | chroot /mnt/gentoo /bin/bash -
|
192
|
+
|
193
|
+
#Installing the virtualbox guest additions
|
194
|
+
cat <<EOF | chroot /mnt/gentoo /bin/bash -
|
195
|
+
mkdir /etc/portage
|
196
|
+
cat <<KEYWORDSEOF > /etc/portage/package.keywords
|
197
|
+
=app-emulation/virtualbox-guest-additions-4.1.6-r1
|
198
|
+
KEYWORDSEOF
|
199
|
+
emerge =app-emulation/virtualbox-guest-additions-4.1.6-r1
|
200
|
+
rc-update add virtualbox-guest-additions default
|
201
|
+
EOF
|
202
|
+
|
203
|
+
rm -rf /mnt/gentoo/usr/portage/distfiles
|
204
|
+
mkdir /mnt/gentoo/usr/portage/distfiles
|
205
|
+
echo "chown portage:portage /usr/portage/distfiles" | chroot /mnt/gentoo /bin/bash -
|
206
|
+
|
207
|
+
echo "sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 rc.vboxadd):' /etc/rc.conf" | chroot /mnt/gentoo sh -
|
208
|
+
|
209
|
+
exit
|
210
|
+
cd /
|
211
|
+
umount /mnt/gentoo/{proc,sys,dev}
|
212
|
+
umount /mnt/gentoo
|
213
|
+
|
214
|
+
reboot
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '768',
|
3
3
|
#Disk size needs to be 12Gig +
|
4
|
-
:disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'on', :
|
4
|
+
:disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'on', :hwvirtext => 'on',
|
5
5
|
:os_type_id => 'OpenSolaris',
|
6
6
|
:iso_file => "oi-dev-148-ai-x86.iso",
|
7
7
|
:iso_src => "http://dlc.openindiana.org/isos/148/oi-dev-148-ai-x86.iso",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Veewee::Session.declare({
|
2
2
|
:cpu_count => '1', :memory_size=> '768',
|
3
3
|
#Disk size needs to be 12Gig +
|
4
|
-
:disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'off', :
|
4
|
+
:disk_size => '15140', :disk_format => 'VDI', :hostiocache => 'off', :hwvirtext => 'on',
|
5
5
|
:os_type_id => 'OpenSolaris',
|
6
6
|
:iso_file => "sol-11-exp-201011-ai-x86.iso",
|
7
7
|
:iso_src => "",
|
@@ -2,7 +2,7 @@ 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 => 'Ubuntu_64',
|
5
|
-
:pae =>
|
5
|
+
:pae => "on", :ioapic => "on",
|
6
6
|
:iso_file => "ubuntu-8.04.4-server-amd64.iso",
|
7
7
|
:iso_src => "http://releases.ubuntu.com/8.04.4/ubuntu-8.04.4-server-amd64.iso",
|
8
8
|
:iso_md5 => "89fdc8289630fceb036c9818ac19ca4",
|
@@ -2,7 +2,7 @@ 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 => 'Ubuntu',
|
5
|
-
:pae =>
|
5
|
+
:pae => "on", :ioapic => "on",
|
6
6
|
:iso_file => "ubuntu-8.04.4-server-i386.iso",
|
7
7
|
:iso_src => "http://releases.ubuntu.com/8.04.4/ubuntu-8.04.4-server-i386.iso",
|
8
8
|
:iso_md5 => "ef478e539e991dfa09c3b5b7c589aba6",
|
data/veewee.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.add_dependency "thor", "~> 0.14.6"
|
21
21
|
s.add_dependency "highline", "~> 1.6.1"
|
22
22
|
s.add_dependency "progressbar"
|
23
|
-
s.add_dependency "cucumber", "
|
23
|
+
s.add_dependency "cucumber", ">= 1.0.0"
|
24
24
|
s.add_dependency "rspec", "~> 2.5"
|
25
25
|
#s.add_dependency "simon", "~> 0.1.1"
|
26
26
|
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veewee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Patrick Debois
|
@@ -11,107 +16,149 @@ autorequire:
|
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
18
|
|
14
|
-
date: 2011-
|
19
|
+
date: 2011-12-15 00:00:00 Z
|
15
20
|
dependencies:
|
16
21
|
- !ruby/object:Gem::Dependency
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
19
23
|
none: false
|
20
24
|
requirements:
|
21
25
|
- - ~>
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
hash: 59
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 8
|
31
|
+
- 2
|
23
32
|
version: 0.8.2
|
33
|
+
requirement: *id001
|
34
|
+
name: vagrant
|
24
35
|
type: :runtime
|
25
36
|
prerelease: false
|
26
|
-
version_requirements: *id001
|
27
37
|
- !ruby/object:Gem::Dependency
|
28
|
-
|
29
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
30
39
|
none: false
|
31
40
|
requirements:
|
32
41
|
- - ~>
|
33
42
|
- !ruby/object:Gem::Version
|
43
|
+
hash: 11
|
44
|
+
segments:
|
45
|
+
- 2
|
46
|
+
- 1
|
47
|
+
- 0
|
34
48
|
version: 2.1.0
|
49
|
+
requirement: *id002
|
50
|
+
name: net-ssh
|
35
51
|
type: :runtime
|
36
52
|
prerelease: false
|
37
|
-
version_requirements: *id002
|
38
53
|
- !ruby/object:Gem::Dependency
|
39
|
-
|
40
|
-
requirement: &id003 !ruby/object:Gem::Requirement
|
54
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
41
55
|
none: false
|
42
56
|
requirements:
|
43
57
|
- - ~>
|
44
58
|
- !ruby/object:Gem::Version
|
59
|
+
hash: 31
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 1
|
63
|
+
- 2
|
45
64
|
version: 0.1.2
|
65
|
+
requirement: *id003
|
66
|
+
name: popen4
|
46
67
|
type: :runtime
|
47
68
|
prerelease: false
|
48
|
-
version_requirements: *id003
|
49
69
|
- !ruby/object:Gem::Dependency
|
50
|
-
|
51
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
70
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
52
71
|
none: false
|
53
72
|
requirements:
|
54
73
|
- - ~>
|
55
74
|
- !ruby/object:Gem::Version
|
75
|
+
hash: 43
|
76
|
+
segments:
|
77
|
+
- 0
|
78
|
+
- 14
|
79
|
+
- 6
|
56
80
|
version: 0.14.6
|
81
|
+
requirement: *id004
|
82
|
+
name: thor
|
57
83
|
type: :runtime
|
58
84
|
prerelease: false
|
59
|
-
version_requirements: *id004
|
60
85
|
- !ruby/object:Gem::Dependency
|
61
|
-
|
62
|
-
requirement: &id005 !ruby/object:Gem::Requirement
|
86
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
63
87
|
none: false
|
64
88
|
requirements:
|
65
89
|
- - ~>
|
66
90
|
- !ruby/object:Gem::Version
|
91
|
+
hash: 13
|
92
|
+
segments:
|
93
|
+
- 1
|
94
|
+
- 6
|
95
|
+
- 1
|
67
96
|
version: 1.6.1
|
97
|
+
requirement: *id005
|
98
|
+
name: highline
|
68
99
|
type: :runtime
|
69
100
|
prerelease: false
|
70
|
-
version_requirements: *id005
|
71
101
|
- !ruby/object:Gem::Dependency
|
72
|
-
|
73
|
-
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
74
103
|
none: false
|
75
104
|
requirements:
|
76
105
|
- - ">="
|
77
106
|
- !ruby/object:Gem::Version
|
107
|
+
hash: 3
|
108
|
+
segments:
|
109
|
+
- 0
|
78
110
|
version: "0"
|
111
|
+
requirement: *id006
|
112
|
+
name: progressbar
|
79
113
|
type: :runtime
|
80
114
|
prerelease: false
|
81
|
-
version_requirements: *id006
|
82
115
|
- !ruby/object:Gem::Dependency
|
83
|
-
|
84
|
-
requirement: &id007 !ruby/object:Gem::Requirement
|
116
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
85
117
|
none: false
|
86
118
|
requirements:
|
87
|
-
- -
|
119
|
+
- - ">="
|
88
120
|
- !ruby/object:Gem::Version
|
89
|
-
|
121
|
+
hash: 23
|
122
|
+
segments:
|
123
|
+
- 1
|
124
|
+
- 0
|
125
|
+
- 0
|
126
|
+
version: 1.0.0
|
127
|
+
requirement: *id007
|
128
|
+
name: cucumber
|
90
129
|
type: :runtime
|
91
130
|
prerelease: false
|
92
|
-
version_requirements: *id007
|
93
131
|
- !ruby/object:Gem::Dependency
|
94
|
-
|
95
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
132
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
96
133
|
none: false
|
97
134
|
requirements:
|
98
135
|
- - ~>
|
99
136
|
- !ruby/object:Gem::Version
|
137
|
+
hash: 9
|
138
|
+
segments:
|
139
|
+
- 2
|
140
|
+
- 5
|
100
141
|
version: "2.5"
|
142
|
+
requirement: *id008
|
143
|
+
name: rspec
|
101
144
|
type: :runtime
|
102
145
|
prerelease: false
|
103
|
-
version_requirements: *id008
|
104
146
|
- !ruby/object:Gem::Dependency
|
105
|
-
|
106
|
-
requirement: &id009 !ruby/object:Gem::Requirement
|
147
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
107
148
|
none: false
|
108
149
|
requirements:
|
109
150
|
- - ">="
|
110
151
|
- !ruby/object:Gem::Version
|
152
|
+
hash: 23
|
153
|
+
segments:
|
154
|
+
- 1
|
155
|
+
- 0
|
156
|
+
- 0
|
111
157
|
version: 1.0.0
|
158
|
+
requirement: *id009
|
159
|
+
name: bundler
|
112
160
|
type: :development
|
113
161
|
prerelease: false
|
114
|
-
version_requirements: *id009
|
115
162
|
description: Expand the 'vagrant box' command to support the creation of base boxes from scratch
|
116
163
|
email:
|
117
164
|
- patrick.debois@jedi.be
|
@@ -126,7 +173,6 @@ files:
|
|
126
173
|
- .gitignore
|
127
174
|
- .rvmrc
|
128
175
|
- Gemfile
|
129
|
-
- Gemfile.lock
|
130
176
|
- README.md
|
131
177
|
- Rakefile
|
132
178
|
- bin/veewee
|
@@ -182,6 +228,9 @@ files:
|
|
182
228
|
- templates/CentOS-6.0-x86_64/definition.rb
|
183
229
|
- templates/CentOS-6.0-x86_64/ks.cfg
|
184
230
|
- templates/CentOS-6.0-x86_64/postinstall.sh
|
231
|
+
- templates/CentOS-6.1-x86_64-minimal/definition.rb
|
232
|
+
- templates/CentOS-6.1-x86_64-minimal/ks.cfg
|
233
|
+
- templates/CentOS-6.1-x86_64-minimal/postinstall.sh
|
185
234
|
- templates/Debian-5.0.8-amd64-netboot/definition.rb
|
186
235
|
- templates/Debian-5.0.8-amd64-netboot/postinstall.sh
|
187
236
|
- templates/Debian-5.0.8-amd64-netboot/preseed.cfg
|
@@ -218,6 +267,12 @@ files:
|
|
218
267
|
- templates/Fedora-15-x86_64/definition.rb
|
219
268
|
- templates/Fedora-15-x86_64/ks.cfg
|
220
269
|
- templates/Fedora-15-x86_64/postinstall.sh
|
270
|
+
- templates/Fedora-16-i386/definition.rb
|
271
|
+
- templates/Fedora-16-i386/ks.cfg
|
272
|
+
- templates/Fedora-16-i386/postinstall.sh
|
273
|
+
- templates/Fedora-16-x86_64/definition.rb
|
274
|
+
- templates/Fedora-16-x86_64/ks.cfg
|
275
|
+
- templates/Fedora-16-x86_64/postinstall.sh
|
221
276
|
- templates/Sysrescuecd-2.0.0-experimental/autorun0
|
222
277
|
- templates/Sysrescuecd-2.0.0-experimental/definition.rb
|
223
278
|
- templates/archlinux-i386-netboot/aif.cfg
|
@@ -245,6 +300,8 @@ files:
|
|
245
300
|
- templates/freebsd-8.2-pcbsd-i386/postinstall.sh
|
246
301
|
- templates/gentoo-latest-i386-experimental/definition.rb
|
247
302
|
- templates/gentoo-latest-i386-experimental/postinstall.sh
|
303
|
+
- templates/gentoo-latest-x86_64-experimental/definition.rb
|
304
|
+
- templates/gentoo-latest-x86_64-experimental/postinstall.sh
|
248
305
|
- templates/openSUSE-11.4-DVD-i586/autoinst_de.xml
|
249
306
|
- templates/openSUSE-11.4-DVD-i586/autoinst_en.xml
|
250
307
|
- templates/openSUSE-11.4-DVD-i586/definition.rb
|
@@ -377,7 +434,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
377
434
|
requirements:
|
378
435
|
- - ">="
|
379
436
|
- !ruby/object:Gem::Version
|
380
|
-
hash:
|
437
|
+
hash: 3
|
381
438
|
segments:
|
382
439
|
- 0
|
383
440
|
version: "0"
|
@@ -386,11 +443,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
386
443
|
requirements:
|
387
444
|
- - ">="
|
388
445
|
- !ruby/object:Gem::Version
|
446
|
+
hash: 23
|
447
|
+
segments:
|
448
|
+
- 1
|
449
|
+
- 3
|
450
|
+
- 6
|
389
451
|
version: 1.3.6
|
390
452
|
requirements: []
|
391
453
|
|
392
454
|
rubyforge_project: veewee
|
393
|
-
rubygems_version: 1.8.
|
455
|
+
rubygems_version: 1.8.12
|
394
456
|
signing_key:
|
395
457
|
specification_version: 3
|
396
458
|
summary: Vagrant box creation
|
data/Gemfile.lock
DELETED
@@ -1,71 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
veewee (0.2.1)
|
5
|
-
cucumber (~> 1.0.2)
|
6
|
-
highline (~> 1.6.1)
|
7
|
-
net-ssh (~> 2.1.0)
|
8
|
-
popen4 (~> 0.1.2)
|
9
|
-
progressbar
|
10
|
-
rspec (~> 2.5)
|
11
|
-
thor (~> 0.14.6)
|
12
|
-
vagrant (~> 0.8.2)
|
13
|
-
|
14
|
-
GEM
|
15
|
-
remote: http://rubygems.org/
|
16
|
-
specs:
|
17
|
-
Platform (0.4.0)
|
18
|
-
archive-tar-minitar (0.5.2)
|
19
|
-
builder (3.0.0)
|
20
|
-
cucumber (1.0.6)
|
21
|
-
builder (>= 2.1.2)
|
22
|
-
diff-lcs (>= 1.1.2)
|
23
|
-
gherkin (~> 2.4.18)
|
24
|
-
json (>= 1.4.6)
|
25
|
-
term-ansicolor (>= 1.0.6)
|
26
|
-
diff-lcs (1.1.3)
|
27
|
-
erubis (2.7.0)
|
28
|
-
ffi (1.0.11)
|
29
|
-
gherkin (2.4.21)
|
30
|
-
json (>= 1.4.6)
|
31
|
-
highline (1.6.8)
|
32
|
-
i18n (0.6.0)
|
33
|
-
json (1.5.4)
|
34
|
-
net-scp (1.0.4)
|
35
|
-
net-ssh (>= 1.99.1)
|
36
|
-
net-ssh (2.1.4)
|
37
|
-
open4 (1.3.0)
|
38
|
-
popen4 (0.1.2)
|
39
|
-
Platform (>= 0.4.0)
|
40
|
-
open4 (>= 0.4.0)
|
41
|
-
progressbar (0.9.2)
|
42
|
-
rake (0.9.2.2)
|
43
|
-
rspec (2.7.0)
|
44
|
-
rspec-core (~> 2.7.0)
|
45
|
-
rspec-expectations (~> 2.7.0)
|
46
|
-
rspec-mocks (~> 2.7.0)
|
47
|
-
rspec-core (2.7.1)
|
48
|
-
rspec-expectations (2.7.0)
|
49
|
-
diff-lcs (~> 1.1.2)
|
50
|
-
rspec-mocks (2.7.0)
|
51
|
-
term-ansicolor (1.0.7)
|
52
|
-
thor (0.14.6)
|
53
|
-
vagrant (0.8.7)
|
54
|
-
archive-tar-minitar (= 0.5.2)
|
55
|
-
erubis (~> 2.7.0)
|
56
|
-
i18n (~> 0.6.0)
|
57
|
-
json (~> 1.5.1)
|
58
|
-
net-scp (~> 1.0.4)
|
59
|
-
net-ssh (~> 2.1.4)
|
60
|
-
thor (~> 0.14.6)
|
61
|
-
virtualbox (~> 0.9.1)
|
62
|
-
virtualbox (0.9.2)
|
63
|
-
ffi (~> 1.0.9)
|
64
|
-
|
65
|
-
PLATFORMS
|
66
|
-
ruby
|
67
|
-
|
68
|
-
DEPENDENCIES
|
69
|
-
bundler (>= 1.0.0)
|
70
|
-
rake
|
71
|
-
veewee!
|