veewee 0.1.25 → 0.1.26
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 +2 -0
- data/Gemfile.lock +7 -9
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-5.6-i386/definition.rb +1 -1
- data/templates/{Archlinux-latest → archlinux-i686}/autorun0 +0 -0
- data/templates/{Archlinux-latest → archlinux-i686}/definition.rb +0 -0
- data/templates/{Archlinux-latest → archlinux-i686}/postinstall.sh +3 -2
- data/templates/ubuntu-10.04.2-amd64-netboot/definition.rb +23 -0
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +87 -0
- data/templates/ubuntu-10.04.2-amd64-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +15 -1
- data/templates/ubuntu-10.04.2-server-i386-netboot/definition.rb +23 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +87 -0
- data/templates/ubuntu-10.04.2-server-i386-netboot/preseed.cfg +89 -0
- data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +15 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +15 -1
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +14 -0
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +15 -1
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +15 -1
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +15 -1
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +15 -1
- data/templates/windows-2008R2-amd64-experimental/cygwin-sshd.bat +1 -1
- data/veewee.gemspec +1 -0
- metadata +13 -8
- data/templates/windows-2008R2-amd64-experimental/setup.exe +0 -0
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
veewee (0.1.
|
4
|
+
veewee (0.1.26)
|
5
5
|
cucumber (= 0.8.5)
|
6
6
|
highline (~> 1.6.1)
|
7
7
|
net-ssh (~> 2.1.0)
|
@@ -27,11 +27,10 @@ GEM
|
|
27
27
|
diff-lcs (1.1.2)
|
28
28
|
erubis (2.6.6)
|
29
29
|
abstract (>= 1.0.0)
|
30
|
-
ffi (0.
|
31
|
-
rake (>= 0.8.7)
|
30
|
+
ffi (1.0.9)
|
32
31
|
gherkin (2.1.5)
|
33
32
|
trollop (~> 1.16.2)
|
34
|
-
highline (1.6.
|
33
|
+
highline (1.6.2)
|
35
34
|
i18n (0.5.0)
|
36
35
|
json (1.5.1)
|
37
36
|
json_pure (1.4.6)
|
@@ -44,19 +43,18 @@ GEM
|
|
44
43
|
Platform (>= 0.4.0)
|
45
44
|
open4 (>= 0.4.0)
|
46
45
|
progressbar (0.9.0)
|
47
|
-
rake (0.8.7)
|
48
46
|
rspec (2.5.0)
|
49
47
|
rspec-core (~> 2.5.0)
|
50
48
|
rspec-expectations (~> 2.5.0)
|
51
49
|
rspec-mocks (~> 2.5.0)
|
52
|
-
rspec-core (2.5.
|
50
|
+
rspec-core (2.5.2)
|
53
51
|
rspec-expectations (2.5.0)
|
54
52
|
diff-lcs (~> 1.1.2)
|
55
53
|
rspec-mocks (2.5.0)
|
56
54
|
term-ansicolor (1.0.5)
|
57
55
|
thor (0.14.6)
|
58
56
|
trollop (1.16.2)
|
59
|
-
vagrant (0.7.
|
57
|
+
vagrant (0.7.5)
|
60
58
|
archive-tar-minitar (= 0.5.2)
|
61
59
|
erubis (~> 2.6.6)
|
62
60
|
i18n (~> 0.5.0)
|
@@ -66,8 +64,8 @@ GEM
|
|
66
64
|
net-ssh (~> 2.1.0)
|
67
65
|
thor (~> 0.14.6)
|
68
66
|
virtualbox (~> 0.8.3)
|
69
|
-
virtualbox (0.8.
|
70
|
-
ffi (~> 0
|
67
|
+
virtualbox (0.8.6)
|
68
|
+
ffi (~> 1.0)
|
71
69
|
|
72
70
|
PLATFORMS
|
73
71
|
ruby
|
data/lib/veewee/version.rb
CHANGED
@@ -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', :ioapic => 'on', :pae => 'on',
|
4
4
|
:os_type_id => 'RedHat',
|
5
|
-
:iso_file => "CentOS-5.
|
5
|
+
:iso_file => "CentOS-5.6-i386-bin-DVD.iso", :iso_src => "", :iso_md5 => "181142a5845586579d5d4d96e43a4827", :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/5/isos/i386/ ",
|
8
8
|
:boot_wait => "10", :boot_cmd_sequence => [
|
File without changes
|
File without changes
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
#https://wiki.archlinux.org/index.php/Install_from_Existing_Linux
|
4
4
|
|
5
|
+
#ARCH=x86_64
|
5
6
|
ARCH=i686
|
6
7
|
mkdir /tmp/archlinux
|
7
8
|
cd /tmp/archlinux
|
@@ -42,8 +43,8 @@ sfdisk --force /dev/sda <<EOF
|
|
42
43
|
# partition table of /dev/sda
|
43
44
|
unit: sectors
|
44
45
|
|
45
|
-
/dev/sda1 : start= 2048, size=
|
46
|
-
/dev/sda2 : start=
|
46
|
+
/dev/sda1 : start= 2048, size= 16777216, Id=83
|
47
|
+
/dev/sda2 : start= 16779264, size= 3987456, Id=82
|
47
48
|
/dev/sda3 : start= 0, size= 0, Id= 0
|
48
49
|
/dev/sda4 : start= 0, size= 0, Id= 0
|
49
50
|
EOF
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'Ubuntu_64',
|
5
|
+
:iso_file => "ubuntu-10.04.x-server-amd64-netboot.iso",
|
6
|
+
:iso_src => "http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-amd64/current/images/netboot/mini.iso",
|
7
|
+
:iso_md5 => "d260ca4ad6d0c81bf5cf38a63fa63b5b",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
10
|
+
'linux noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
11
|
+
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
|
12
|
+
'hostname=%NAME% ',
|
13
|
+
'fb=false debconf/frontend=noninteractive ',
|
14
|
+
'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
|
15
|
+
'initrd=initrd.gz -- <Enter>'
|
16
|
+
],
|
17
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "preseed.cfg",
|
18
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
19
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
20
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
21
|
+
:shutdown_cmd => "shutdown -P now",
|
22
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
|
23
|
+
})
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
2
|
+
|
3
|
+
# Apt-install various things necessary for Ruby, guest additions,
|
4
|
+
# etc., and remove optional things to trim down the machine.
|
5
|
+
apt-get -y update
|
6
|
+
apt-get -y upgrade
|
7
|
+
apt-get -y install linux-headers-$(uname -r) build-essential
|
8
|
+
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
|
9
|
+
apt-get clean
|
10
|
+
|
11
|
+
# Setup sudo to allow no-password sudo for "admin"
|
12
|
+
cp /etc/sudoers /etc/sudoers.orig
|
13
|
+
sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers
|
14
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
15
|
+
|
16
|
+
# Install NFS client
|
17
|
+
apt-get -y install nfs-common
|
18
|
+
|
19
|
+
# Install Ruby from source in /opt so that users of Vagrant
|
20
|
+
# can install their own Rubies using packages or however.
|
21
|
+
# We must install the 1.8.x series since Puppet doesn't support
|
22
|
+
# Ruby 1.9 yet.
|
23
|
+
wget http://ftp.ruby-lang.org/pub/ruby/ruby-1.8.7-p334.tar.gz
|
24
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
25
|
+
cd ruby-1.8.7-p334
|
26
|
+
./configure --prefix=/opt/ruby
|
27
|
+
make
|
28
|
+
make install
|
29
|
+
cd ..
|
30
|
+
rm -rf ruby-1.8.7-p334*
|
31
|
+
|
32
|
+
# Install RubyGems 1.7.2
|
33
|
+
wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz
|
34
|
+
tar xzf rubygems-1.7.2.tgz
|
35
|
+
cd rubygems-1.7.2
|
36
|
+
/opt/ruby/bin/ruby setup.rb
|
37
|
+
cd ..
|
38
|
+
rm -rf rubygems-1.7.2*
|
39
|
+
|
40
|
+
# Installing chef & Puppet
|
41
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
42
|
+
/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
|
43
|
+
|
44
|
+
# Add /opt/ruby/bin to the global path as the last resort so
|
45
|
+
# Ruby, RubyGems, and Chef/Puppet are visible
|
46
|
+
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
|
47
|
+
|
48
|
+
# Installing vagrant keys
|
49
|
+
mkdir /home/vagrant/.ssh
|
50
|
+
chmod 700 /home/vagrant/.ssh
|
51
|
+
cd /home/vagrant/.ssh
|
52
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
53
|
+
chown -R vagrant /home/vagrant/.ssh
|
54
|
+
|
55
|
+
# Installing the virtualbox guest additions
|
56
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
57
|
+
cd /tmp
|
58
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
59
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
60
|
+
sh /mnt/VBoxLinuxAdditions.run
|
61
|
+
umount /mnt
|
62
|
+
|
63
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
64
|
+
|
65
|
+
# Remove items used for building, since they aren't needed anymore
|
66
|
+
apt-get -y remove linux-headers-$(uname -r) build-essential
|
67
|
+
apt-get -y autoremove
|
68
|
+
|
69
|
+
# Zero out the free space to save space in the final image:
|
70
|
+
dd if=/dev/zero of=/EMPTY bs=1M
|
71
|
+
rm -f /EMPTY
|
72
|
+
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -0,0 +1,89 @@
|
|
1
|
+
## Options to set on the command line
|
2
|
+
d-i debian-installer/locale string en_US
|
3
|
+
d-i console-setup/ask_detect boolean false
|
4
|
+
d-i console-setup/layout string Belgium
|
5
|
+
|
6
|
+
#d-i netcfg/get_hostname string dummy
|
7
|
+
d-i netcfg/get_hostname string unassigned-hostname
|
8
|
+
d-i netcfg/get_domain string unassigned-domain
|
9
|
+
|
10
|
+
# Continue without a default route
|
11
|
+
# Not working , specify a dummy in the DHCP
|
12
|
+
#d-i netcfg/no_default_route boolean
|
13
|
+
|
14
|
+
d-i time/zone string Europe/Brussels
|
15
|
+
d-i clock-setup/utc-auto boolean true
|
16
|
+
d-i clock-setup/utc boolean true
|
17
|
+
|
18
|
+
d-i kbd-chooser/method select Belgian
|
19
|
+
|
20
|
+
d-i netcfg/wireless_wep string
|
21
|
+
|
22
|
+
d-i base-installer/kernel/override-image string linux-server
|
23
|
+
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic
|
24
|
+
|
25
|
+
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive
|
26
|
+
d-i debconf debconf/frontend select Noninteractive
|
27
|
+
|
28
|
+
d-i pkgsel/install-language-support boolean false
|
29
|
+
tasksel tasksel/first multiselect standard, ubuntu-server
|
30
|
+
|
31
|
+
#d-i partman-auto/method string regular
|
32
|
+
d-i partman-auto/method string lvm
|
33
|
+
#d-i partman-auto/purge_lvm_from_device boolean true
|
34
|
+
|
35
|
+
d-i partman-lvm/confirm boolean true
|
36
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
37
|
+
d-i partman-auto/choose_recipe select atomic
|
38
|
+
|
39
|
+
d-i partman/confirm_write_new_label boolean true
|
40
|
+
d-i partman/confirm_nooverwrite boolean true
|
41
|
+
d-i partman/choose_partition select finish
|
42
|
+
d-i partman/confirm boolean true
|
43
|
+
|
44
|
+
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883
|
45
|
+
#Message: "write the changes to disk and configure lvm preseed"
|
46
|
+
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
|
47
|
+
#preseed partman-lvm/confirm_nooverwrite boolean true
|
48
|
+
|
49
|
+
# Write the changes to disks and configure LVM?
|
50
|
+
d-i partman-lvm/confirm boolean true
|
51
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
52
|
+
d-i partman-auto-lvm/guided_size string max
|
53
|
+
|
54
|
+
## Default user, we can get away with a recipe to change this
|
55
|
+
d-i passwd/user-fullname string vagrant
|
56
|
+
d-i passwd/username string vagrant
|
57
|
+
d-i passwd/user-password password vagrant
|
58
|
+
d-i passwd/user-password-again password vagrant
|
59
|
+
d-i user-setup/encrypt-home boolean false
|
60
|
+
d-i user-setup/allow-password-weak boolean true
|
61
|
+
|
62
|
+
## minimum is puppet and ssh and ntp
|
63
|
+
# Individual additional packages to install
|
64
|
+
d-i pkgsel/include string openssh-server ntp
|
65
|
+
|
66
|
+
# Whether to upgrade packages after debootstrap.
|
67
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
68
|
+
d-i pkgsel/upgrade select full-upgrade
|
69
|
+
|
70
|
+
d-i grub-installer/only_debian boolean true
|
71
|
+
d-i grub-installer/with_other_os boolean true
|
72
|
+
d-i finish-install/reboot_in_progress note
|
73
|
+
|
74
|
+
#For the update
|
75
|
+
d-i pkgsel/update-policy select none
|
76
|
+
|
77
|
+
# debconf-get-selections --install
|
78
|
+
#Use mirror
|
79
|
+
#d-i apt-setup/use_mirror boolean true
|
80
|
+
#d-i mirror/country string manual
|
81
|
+
d-i mirror/country string US
|
82
|
+
|
83
|
+
d-i mirror/protocol string http
|
84
|
+
d-i mirror/country string manual
|
85
|
+
d-i mirror/http/hostname string us.archive.ubuntu.com
|
86
|
+
d-i mirror/http/directory string /ubuntu
|
87
|
+
d-i mirror/suite select lucid
|
88
|
+
d-i mirror/http/proxy string
|
89
|
+
#d-i debian-installer/allow_unauthenticated string true
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
-
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '384',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
|
4
|
+
:os_type_id => 'Ubuntu',
|
5
|
+
:iso_file => "ubuntu-10.04.x-server-i386-netboot.iso",
|
6
|
+
:iso_src => "http://archive.ubuntu.com/ubuntu/dists/lucid/main/installer-i386/current/images/netboot/mini.iso",
|
7
|
+
:iso_md5 => "d260ca4ad6d0c81bf5cf38a63fa63b5b",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10", :boot_cmd_sequence => [
|
10
|
+
'linux noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
11
|
+
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
|
12
|
+
'hostname=%NAME% ',
|
13
|
+
'fb=false debconf/frontend=noninteractive ',
|
14
|
+
'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
|
15
|
+
'initrd=initrd.gz -- <Enter>'
|
16
|
+
],
|
17
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "preseed.cfg",
|
18
|
+
:ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
|
19
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
20
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
21
|
+
:shutdown_cmd => "shutdown -P now",
|
22
|
+
:postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
|
23
|
+
})
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
2
|
+
|
3
|
+
# Apt-install various things necessary for Ruby, guest additions,
|
4
|
+
# etc., and remove optional things to trim down the machine.
|
5
|
+
apt-get -y update
|
6
|
+
apt-get -y upgrade
|
7
|
+
apt-get -y install linux-headers-$(uname -r) build-essential
|
8
|
+
apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
|
9
|
+
apt-get clean
|
10
|
+
|
11
|
+
# Setup sudo to allow no-password sudo for "admin"
|
12
|
+
cp /etc/sudoers /etc/sudoers.orig
|
13
|
+
sed -i -e '/Defaults\s\+env_reset/a Defaults\texempt_group=admin' /etc/sudoers
|
14
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
15
|
+
|
16
|
+
# Install NFS client
|
17
|
+
apt-get -y install nfs-common
|
18
|
+
|
19
|
+
# Install Ruby from source in /opt so that users of Vagrant
|
20
|
+
# can install their own Rubies using packages or however.
|
21
|
+
# We must install the 1.8.x series since Puppet doesn't support
|
22
|
+
# Ruby 1.9 yet.
|
23
|
+
wget http://ftp.ruby-lang.org/pub/ruby/ruby-1.8.7-p334.tar.gz
|
24
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
25
|
+
cd ruby-1.8.7-p334
|
26
|
+
./configure --prefix=/opt/ruby
|
27
|
+
make
|
28
|
+
make install
|
29
|
+
cd ..
|
30
|
+
rm -rf ruby-1.8.7-p334*
|
31
|
+
|
32
|
+
# Install RubyGems 1.7.2
|
33
|
+
wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz
|
34
|
+
tar xzf rubygems-1.7.2.tgz
|
35
|
+
cd rubygems-1.7.2
|
36
|
+
/opt/ruby/bin/ruby setup.rb
|
37
|
+
cd ..
|
38
|
+
rm -rf rubygems-1.7.2*
|
39
|
+
|
40
|
+
# Installing chef & Puppet
|
41
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
42
|
+
/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
|
43
|
+
|
44
|
+
# Add /opt/ruby/bin to the global path as the last resort so
|
45
|
+
# Ruby, RubyGems, and Chef/Puppet are visible
|
46
|
+
echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
|
47
|
+
|
48
|
+
# Installing vagrant keys
|
49
|
+
mkdir /home/vagrant/.ssh
|
50
|
+
chmod 700 /home/vagrant/.ssh
|
51
|
+
cd /home/vagrant/.ssh
|
52
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
53
|
+
chown -R vagrant /home/vagrant/.ssh
|
54
|
+
|
55
|
+
# Installing the virtualbox guest additions
|
56
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
57
|
+
cd /tmp
|
58
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
59
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
60
|
+
sh /mnt/VBoxLinuxAdditions.run
|
61
|
+
umount /mnt
|
62
|
+
|
63
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
64
|
+
|
65
|
+
# Remove items used for building, since they aren't needed anymore
|
66
|
+
apt-get -y remove linux-headers-$(uname -r) build-essential
|
67
|
+
apt-get -y autoremove
|
68
|
+
|
69
|
+
# Zero out the free space to save space in the final image:
|
70
|
+
dd if=/dev/zero of=/EMPTY bs=1M
|
71
|
+
rm -f /EMPTY
|
72
|
+
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -0,0 +1,89 @@
|
|
1
|
+
## Options to set on the command line
|
2
|
+
d-i debian-installer/locale string en_US
|
3
|
+
d-i console-setup/ask_detect boolean false
|
4
|
+
d-i console-setup/layout string Belgium
|
5
|
+
|
6
|
+
#d-i netcfg/get_hostname string dummy
|
7
|
+
d-i netcfg/get_hostname string unassigned-hostname
|
8
|
+
d-i netcfg/get_domain string unassigned-domain
|
9
|
+
|
10
|
+
# Continue without a default route
|
11
|
+
# Not working , specify a dummy in the DHCP
|
12
|
+
#d-i netcfg/no_default_route boolean
|
13
|
+
|
14
|
+
d-i time/zone string Europe/Brussels
|
15
|
+
d-i clock-setup/utc-auto boolean true
|
16
|
+
d-i clock-setup/utc boolean true
|
17
|
+
|
18
|
+
d-i kbd-chooser/method select Belgian
|
19
|
+
|
20
|
+
d-i netcfg/wireless_wep string
|
21
|
+
|
22
|
+
d-i base-installer/kernel/override-image string linux-server
|
23
|
+
#d-i base-installer/kernel/override-image string linux-image-2.6.32-21-generic
|
24
|
+
|
25
|
+
# Choices: Dialog, Readline, Gnome, Kde, Editor, Noninteractive
|
26
|
+
d-i debconf debconf/frontend select Noninteractive
|
27
|
+
|
28
|
+
d-i pkgsel/install-language-support boolean false
|
29
|
+
tasksel tasksel/first multiselect standard, ubuntu-server
|
30
|
+
|
31
|
+
#d-i partman-auto/method string regular
|
32
|
+
d-i partman-auto/method string lvm
|
33
|
+
#d-i partman-auto/purge_lvm_from_device boolean true
|
34
|
+
|
35
|
+
d-i partman-lvm/confirm boolean true
|
36
|
+
d-i partman-lvm/device_remove_lvm boolean true
|
37
|
+
d-i partman-auto/choose_recipe select atomic
|
38
|
+
|
39
|
+
d-i partman/confirm_write_new_label boolean true
|
40
|
+
d-i partman/confirm_nooverwrite boolean true
|
41
|
+
d-i partman/choose_partition select finish
|
42
|
+
d-i partman/confirm boolean true
|
43
|
+
|
44
|
+
#http://ubuntu-virginia.ubuntuforums.org/showthread.php?p=9626883
|
45
|
+
#Message: "write the changes to disk and configure lvm preseed"
|
46
|
+
#http://serverfault.com/questions/189328/ubuntu-kickstart-installation-using-lvm-waits-for-input
|
47
|
+
#preseed partman-lvm/confirm_nooverwrite boolean true
|
48
|
+
|
49
|
+
# Write the changes to disks and configure LVM?
|
50
|
+
d-i partman-lvm/confirm boolean true
|
51
|
+
d-i partman-lvm/confirm_nooverwrite boolean true
|
52
|
+
d-i partman-auto-lvm/guided_size string max
|
53
|
+
|
54
|
+
## Default user, we can get away with a recipe to change this
|
55
|
+
d-i passwd/user-fullname string vagrant
|
56
|
+
d-i passwd/username string vagrant
|
57
|
+
d-i passwd/user-password password vagrant
|
58
|
+
d-i passwd/user-password-again password vagrant
|
59
|
+
d-i user-setup/encrypt-home boolean false
|
60
|
+
d-i user-setup/allow-password-weak boolean true
|
61
|
+
|
62
|
+
## minimum is puppet and ssh and ntp
|
63
|
+
# Individual additional packages to install
|
64
|
+
d-i pkgsel/include string openssh-server ntp
|
65
|
+
|
66
|
+
# Whether to upgrade packages after debootstrap.
|
67
|
+
# Allowed values: none, safe-upgrade, full-upgrade
|
68
|
+
d-i pkgsel/upgrade select full-upgrade
|
69
|
+
|
70
|
+
d-i grub-installer/only_debian boolean true
|
71
|
+
d-i grub-installer/with_other_os boolean true
|
72
|
+
d-i finish-install/reboot_in_progress note
|
73
|
+
|
74
|
+
#For the update
|
75
|
+
d-i pkgsel/update-policy select none
|
76
|
+
|
77
|
+
# debconf-get-selections --install
|
78
|
+
#Use mirror
|
79
|
+
#d-i apt-setup/use_mirror boolean true
|
80
|
+
#d-i mirror/country string manual
|
81
|
+
d-i mirror/country string US
|
82
|
+
|
83
|
+
d-i mirror/protocol string http
|
84
|
+
d-i mirror/country string manual
|
85
|
+
d-i mirror/http/hostname string us.archive.ubuntu.com
|
86
|
+
d-i mirror/http/directory string /ubuntu
|
87
|
+
d-i mirror/suite select lucid
|
88
|
+
d-i mirror/http/proxy string
|
89
|
+
#d-i debian-installer/allow_unauthenticated string true
|
@@ -70,4 +70,19 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
73
88
|
exit
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
-
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
73
87
|
exit
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
-
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
-
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
-
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -70,4 +70,18 @@ apt-get -y autoremove
|
|
70
70
|
dd if=/dev/zero of=/EMPTY bs=1M
|
71
71
|
rm -f /EMPTY
|
72
72
|
|
73
|
-
|
73
|
+
# Removing leftover leases and persistent rules
|
74
|
+
echo "cleaning up dhcp leases"
|
75
|
+
rm /var/lib/dhcp3/*
|
76
|
+
|
77
|
+
# Make sure Udev doesn't block our network
|
78
|
+
# http://6.ptmc.org/?p=164
|
79
|
+
echo "cleaning up udev rules"
|
80
|
+
rm /etc/udev/rules.d/70-persistent-net.rules
|
81
|
+
mkdir /etc/udev/rules.d/70-persistent-net.rules
|
82
|
+
rm -rf /dev/.udev/
|
83
|
+
rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
84
|
+
|
85
|
+
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
86
|
+
echo "pre-up sleep 2" >> /etc/network/interfaces
|
87
|
+
exit
|
@@ -8,7 +8,7 @@ REM goto a temp directory
|
|
8
8
|
cd %SystemDrive%\windows\temp
|
9
9
|
|
10
10
|
REM run the installation
|
11
|
-
cmd /c a:/setup.exe -q -R %SystemDrive%\cygwin -P openssh,openssl,curl,cygrunsrv,wget,rebase,vim -s http://cygwin.mirrors.pair.com
|
11
|
+
cmd /c a:/cygwin-setup.exe -q -R %SystemDrive%\cygwin -P openssh,openssl,curl,cygrunsrv,wget,rebase,vim -s http://cygwin.mirrors.pair.com
|
12
12
|
|
13
13
|
%SystemDrive%\cygwin\bin\bash -c 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin cygrunsrv -R sshd'
|
14
14
|
|
data/veewee.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veewee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 26
|
10
|
+
version: 0.1.26
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Patrick Debois
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-06-06 00:00:00 +02:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -195,9 +195,6 @@ files:
|
|
195
195
|
- lib/veewee/utils.rb
|
196
196
|
- lib/veewee/version.rb
|
197
197
|
- lib/veewee/web.rb
|
198
|
-
- templates/Archlinux-latest/autorun0
|
199
|
-
- templates/Archlinux-latest/definition.rb
|
200
|
-
- templates/Archlinux-latest/postinstall.sh
|
201
198
|
- templates/CentOS-4.8-i386/definition.rb
|
202
199
|
- templates/CentOS-4.8-i386/ks.cfg
|
203
200
|
- templates/CentOS-4.8-i386/postinstall.sh
|
@@ -227,6 +224,9 @@ files:
|
|
227
224
|
- templates/Fedora-14-i386/postinstall.sh
|
228
225
|
- templates/Sysrescuecd-2.0.0-experimental/autorun0
|
229
226
|
- templates/Sysrescuecd-2.0.0-experimental/definition.rb
|
227
|
+
- templates/archlinux-i686/autorun0
|
228
|
+
- templates/archlinux-i686/definition.rb
|
229
|
+
- templates/archlinux-i686/postinstall.sh
|
230
230
|
- templates/freebsd-8.2-experimental/definition.rb
|
231
231
|
- templates/freebsd-8.2-experimental/postinstall.sh
|
232
232
|
- templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb
|
@@ -254,9 +254,15 @@ files:
|
|
254
254
|
- templates/solaris-11-express-i386/default.xml
|
255
255
|
- templates/solaris-11-express-i386/definition.rb
|
256
256
|
- templates/solaris-11-express-i386/postinstall.sh
|
257
|
+
- templates/ubuntu-10.04.2-amd64-netboot/definition.rb
|
258
|
+
- templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh
|
259
|
+
- templates/ubuntu-10.04.2-amd64-netboot/preseed.cfg
|
257
260
|
- templates/ubuntu-10.04.2-server-amd64/definition.rb
|
258
261
|
- templates/ubuntu-10.04.2-server-amd64/postinstall.sh
|
259
262
|
- templates/ubuntu-10.04.2-server-amd64/preseed.cfg
|
263
|
+
- templates/ubuntu-10.04.2-server-i386-netboot/definition.rb
|
264
|
+
- templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh
|
265
|
+
- templates/ubuntu-10.04.2-server-i386-netboot/preseed.cfg
|
260
266
|
- templates/ubuntu-10.04.2-server-i386/definition.rb
|
261
267
|
- templates/ubuntu-10.04.2-server-i386/postinstall.sh
|
262
268
|
- templates/ubuntu-10.04.2-server-i386/preseed.cfg
|
@@ -286,7 +292,6 @@ files:
|
|
286
292
|
- templates/windows-2008R2-amd64-experimental/install-winrm.bat
|
287
293
|
- templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt
|
288
294
|
- templates/windows-2008R2-amd64-experimental/postinstall.sh
|
289
|
-
- templates/windows-2008R2-amd64-experimental/setup.exe
|
290
295
|
- templates/windows-2008R2-amd64-experimental/winrm.rb
|
291
296
|
- trials/docu-vbox.txt
|
292
297
|
- trials/f.rb
|
Binary file
|