veewee 0.1.7 → 0.1.8
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/Gemfile.lock +1 -1
- data/lib/veewee/scancode.rb +2 -0
- data/lib/veewee/session.rb +15 -2
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-4.8-i386/postinstall.sh +2 -2
- data/templates/CentOS-5.5-i386-netboot/postinstall.sh +2 -2
- data/templates/CentOS-5.5-i386/postinstall.sh +2 -2
- data/templates/Sysrescuecd-2.0.0-experimental/autorun0 +59 -0
- data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +21 -0
- data/templates/ubuntu-10.04.1-server-amd64/postinstall.sh +12 -1
- data/templates/ubuntu-10.04.1-server-i386/postinstall.sh +2 -2
- data/templates/ubuntu-10.10-server-amd64-netboot/definition.rb +25 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +43 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall2.sh +9 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg +87 -0
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +3 -3
- data/templates/ubuntu-10.10-server-i386-netboot/definition.rb +25 -0
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +43 -0
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall2.sh +9 -0
- data/templates/ubuntu-10.10-server-i386-netboot/preseed.cfg +87 -0
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +2 -2
- metadata +41 -12
data/Gemfile.lock
CHANGED
data/lib/veewee/scancode.rb
CHANGED
data/lib/veewee/session.rb
CHANGED
@@ -374,10 +374,23 @@ module Veewee
|
|
374
374
|
found=false
|
375
375
|
VirtualBox::HardDrive.all.each do |d|
|
376
376
|
if !d.location.match(/#{location}/).nil?
|
377
|
-
|
377
|
+
|
378
|
+
if File.exists?(d.location)
|
379
|
+
command="#{@vboxcmd} closemedium disk '#{d.location}' --delete"
|
380
|
+
else
|
381
|
+
command="#{@vboxcmd} closemedium disk '#{d.location}'"
|
382
|
+
end
|
383
|
+
|
378
384
|
command="#{@vboxcmd} closemedium disk '#{d.location}' --delete"
|
379
385
|
puts "Deleting disk #{d.location}"
|
380
|
-
|
386
|
+
puts "#{command}"
|
387
|
+
|
388
|
+
Veewee::Shell.execute("#{command}")
|
389
|
+
|
390
|
+
if File.exists?(d.location)
|
391
|
+
puts "We tried to delete the disk file '#{d.location} but failed"
|
392
|
+
exit
|
393
|
+
end
|
381
394
|
#v.3
|
382
395
|
#d.destroy(true)
|
383
396
|
break
|
data/lib/veewee/version.rb
CHANGED
@@ -13,13 +13,13 @@ yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstr
|
|
13
13
|
#Installing ruby
|
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
|
-
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby
|
16
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
17
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
|
|
21
21
|
#Installing chef
|
22
|
-
/opt/ruby/bin/gem install chef
|
22
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
23
23
|
|
24
24
|
#Installing vagrant keys
|
25
25
|
mkdir /home/vagrant/.ssh
|
@@ -13,13 +13,13 @@ yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstr
|
|
13
13
|
#Installing ruby
|
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
|
-
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby
|
16
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
17
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
|
|
21
21
|
#Installing chef
|
22
|
-
/opt/ruby/bin/gem install chef
|
22
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
23
23
|
|
24
24
|
#Installing vagrant keys
|
25
25
|
mkdir /home/vagrant/.ssh
|
@@ -13,13 +13,13 @@ yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstr
|
|
13
13
|
#Installing ruby
|
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
|
-
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby
|
16
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
17
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
|
|
21
21
|
#Installing chef
|
22
|
-
/opt/ruby/bin/gem install chef
|
22
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
23
23
|
|
24
24
|
#Installing vagrant keys
|
25
25
|
mkdir /home/vagrant/.ssh
|
@@ -0,0 +1,59 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
#https://wiki.archlinux.org/index.php/Install_from_Existing_Linux
|
4
|
+
|
5
|
+
ARCH=i686
|
6
|
+
mkdir /tmp/archlinux
|
7
|
+
cd /tmp/archlinux
|
8
|
+
|
9
|
+
alias wget='wget --trust-server-names'
|
10
|
+
|
11
|
+
wget http://www.archlinux.org/packages/core/$ARCH/pacman/download/
|
12
|
+
wget http://www.archlinux.org/packages/core/any/pacman-mirrorlist/download/
|
13
|
+
|
14
|
+
wget http://www.archlinux.org/packages/core/$ARCH/libfetch/download/
|
15
|
+
wget http://www.archlinux.org/packages/core/$ARCH/libarchive/download/
|
16
|
+
wget http://www.archlinux.org/packages/core/$ARCH/openssl/download/
|
17
|
+
wget http://www.archlinux.org/packages/core/$ARCH/xz/download/
|
18
|
+
wget http://www.archlinux.org/packages/core/$ARCH/expat/download/
|
19
|
+
|
20
|
+
for f in *.tar.gz ; do tar xzvf $f ; done
|
21
|
+
|
22
|
+
export PATH=/tmp/archlinux/usr/bin:$PATH
|
23
|
+
export LD_LIBRARY_PATH=/tmp/archlinux/usr/lib:$LD_LIBRARY_PATH
|
24
|
+
alias pacman="pacman --config /tmp/archlinux/etc/pacman.conf"
|
25
|
+
|
26
|
+
cd /
|
27
|
+
for f in /tmp/archlinux/pacman-*pkg.tar.gz ; do
|
28
|
+
tar xzf $f
|
29
|
+
done
|
30
|
+
|
31
|
+
#needs fdisk first
|
32
|
+
mkfs.ext3 /dev/sda1
|
33
|
+
mkfs.ext3 -j -O dir_index /dev/sda1
|
34
|
+
|
35
|
+
mkreiserfs /dev/sdxx
|
36
|
+
|
37
|
+
mkswap /dev/sda2
|
38
|
+
swapon /dev/sda2
|
39
|
+
|
40
|
+
mkdir /newarch
|
41
|
+
mount /dev/sda1 /newarch
|
42
|
+
|
43
|
+
mkdir -p /newarch/var/lib/pacman
|
44
|
+
pacman -Sy -r /newarch
|
45
|
+
|
46
|
+
pacman --cachedir /newarch/var/cache/pacman/pkg -S base -r /newarch
|
47
|
+
|
48
|
+
cd /newarch/dev
|
49
|
+
rm console ; mknod -m 600 console c 5 1
|
50
|
+
rm null ; mknod -m 666 null c 1 3
|
51
|
+
rm zero ; mknod -m 666 zero c 1 5
|
52
|
+
|
53
|
+
cp /etc/resolv.conf /newarch/etc/
|
54
|
+
|
55
|
+
mount -t proc proc /newarch/proc
|
56
|
+
mount -t sysfs sys /newarch/sys
|
57
|
+
mount -o bind /dev /newarch/dev
|
58
|
+
|
59
|
+
chroot /newroot pacman -S kernel26
|
@@ -0,0 +1,21 @@
|
|
1
|
+
Veewee::Session.declare( {
|
2
|
+
:cpu_count => '1', :memory_size=> '256',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' ,
|
4
|
+
:os_type_id => 'Linux',
|
5
|
+
:iso_file => "systemrescuecd-x86-2.0.0.iso",
|
6
|
+
:iso_src => "http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.0.0/systemrescuecd-x86-2.0.0.iso?r=http%3A%2F%2Fwww.sysresccd.org%2FDownload&ts=1297107227&use_mirror=ignum",
|
7
|
+
:iso_md5 => "51012e0bb943cff6367e5cea3a61cdbe",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10",:boot_cmd_sequence => [
|
10
|
+
'<Tab> ',
|
11
|
+
'setkmap=us dodhcp=eth0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant',
|
12
|
+
'<Enter>'
|
13
|
+
],
|
14
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "autorun0",
|
15
|
+
:ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "vagrant",:ssh_key => "",
|
16
|
+
:ssh_host_port => "2222", :ssh_guest_port => "22",
|
17
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
18
|
+
:shutdown_cmd => "shutdown -H",
|
19
|
+
:postinstall_files => [ ],:postinstall_timeout => "10000"
|
20
|
+
}
|
21
|
+
)
|
@@ -10,6 +10,17 @@ apt-get clean
|
|
10
10
|
cp /etc/sudoers /etc/sudoers.orig
|
11
11
|
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
12
12
|
|
13
|
+
#Installing ruby
|
14
|
+
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
15
|
+
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
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/'> /etc/profile.d/rubyenterprise.sh
|
18
|
+
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
19
|
+
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
20
|
+
|
21
|
+
#Installing chef
|
22
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
23
|
+
|
13
24
|
#Installing vagrant keys
|
14
25
|
mkdir /home/vagrant/.ssh
|
15
26
|
chmod 700 /home/vagrant/.ssh
|
@@ -23,7 +34,7 @@ VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
|
23
34
|
cd /tmp
|
24
35
|
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
25
36
|
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
26
|
-
sh /mnt/VBoxLinuxAdditions
|
37
|
+
sh /mnt/VBoxLinuxAdditions.run
|
27
38
|
umount /mnt
|
28
39
|
|
29
40
|
apt-get -y remove linux-headers-$(uname -r) build-essential
|
@@ -15,13 +15,13 @@ sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
|
15
15
|
#Installing ruby
|
16
16
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
17
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
18
|
-
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby
|
18
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
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
|
|
23
23
|
#Installing chef
|
24
|
-
/opt/ruby/bin/gem install chef
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
25
|
|
26
26
|
#Installing vagrant keys
|
27
27
|
mkdir /home/vagrant/.ssh
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Veewee::Session.declare( {
|
2
|
+
:cpu_count => '1', :memory_size=> '256',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' ,
|
4
|
+
:os_type_id => 'Ubuntu_64',
|
5
|
+
:iso_file => "ubuntu-10.10-server-amd64-netboot.iso",
|
6
|
+
:iso_src => "http://archive.ubuntu.com/ubuntu/dists/maverick/main/installer-amd64/current/images/netboot/mini.iso",
|
7
|
+
:iso_md5 => "3d9f096398991ed1eaa9ff32128e199a",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10",:boot_cmd_sequence => [
|
10
|
+
'<Tab>',
|
11
|
+
'noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
12
|
+
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
|
13
|
+
'hostname=%NAME% ',
|
14
|
+
'fb=false debconf/frontend=noninteractive ',
|
15
|
+
'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
|
16
|
+
' -- <Enter>'
|
17
|
+
],
|
18
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "preseed.cfg",
|
19
|
+
:ssh_login_timeout => "10000",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
|
20
|
+
:ssh_host_port => "2222", :ssh_guest_port => "22",
|
21
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
22
|
+
:shutdown_cmd => "shutdown -P now",
|
23
|
+
:postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000"
|
24
|
+
}
|
25
|
+
)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#http://adrianbravo.tumblr.com/post/644860401
|
2
|
+
|
3
|
+
#Updating the box
|
4
|
+
apt-get -y update
|
5
|
+
#apt-get -y upgrade
|
6
|
+
apt-get -y remove apparmor
|
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
|
+
#Setting up sudo
|
12
|
+
cp /etc/sudoers /etc/sudoers.orig
|
13
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
14
|
+
|
15
|
+
#Installing ruby
|
16
|
+
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
|
+
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
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/'> /etc/profile.d/rubyenterprise.sh
|
20
|
+
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
21
|
+
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
22
|
+
|
23
|
+
#Installing chef
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
|
+
|
26
|
+
#Installing vagrant keys
|
27
|
+
mkdir /home/vagrant/.ssh
|
28
|
+
chmod 700 /home/vagrant/.ssh
|
29
|
+
cd /home/vagrant/.ssh
|
30
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
31
|
+
chown -R vagrant /home/vagrant/.ssh
|
32
|
+
|
33
|
+
#INstalling the virtualbox guest additions
|
34
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
35
|
+
#INstalling the virtualbox guest additions
|
36
|
+
cd /tmp
|
37
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
38
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
39
|
+
sh /mnt/VBoxLinuxAdditions.run
|
40
|
+
umount /mnt
|
41
|
+
|
42
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
43
|
+
exit
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#as root
|
2
|
+
apt-get -y install curl
|
3
|
+
apt-get -y install git
|
4
|
+
|
5
|
+
#as non root
|
6
|
+
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
|
7
|
+
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> $HOME/.bash_profile
|
8
|
+
source "$HOME/.rvm/scripts/rvm"
|
9
|
+
rvm install ree
|
@@ -0,0 +1,87 @@
|
|
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 none
|
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
|
+
#choose-mirror-bin mirror/protocol string http
|
82
|
+
#choose-mirror-bin mirror/http/hostname string 192.168.4.150
|
83
|
+
#choose-mirror-bin mirror/http/directory string /ubuntu
|
84
|
+
#choose-mirror-bin mirror/suite select maverick
|
85
|
+
#d-i debian-installer/allow_unauthenticated string true
|
86
|
+
|
87
|
+
choose-mirror-bin mirror/http/proxy string
|
@@ -15,13 +15,13 @@ sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
|
15
15
|
#Installing ruby
|
16
16
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
17
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
18
|
-
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby
|
18
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
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
|
|
23
23
|
#Installing chef
|
24
|
-
/opt/ruby/bin/gem install chef
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
25
|
|
26
26
|
#Installing vagrant keys
|
27
27
|
mkdir /home/vagrant/.ssh
|
@@ -36,7 +36,7 @@ VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
|
36
36
|
cd /tmp
|
37
37
|
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
38
38
|
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
39
|
-
sh /mnt/VBoxLinuxAdditions
|
39
|
+
sh /mnt/VBoxLinuxAdditions.run
|
40
40
|
umount /mnt
|
41
41
|
|
42
42
|
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Veewee::Session.declare( {
|
2
|
+
:cpu_count => '1', :memory_size=> '256',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' ,
|
4
|
+
:os_type_id => 'Ubuntu',
|
5
|
+
:iso_file => "ubuntu-10.10-server-i386-netboot.iso",
|
6
|
+
:iso_src => "http://archive.ubuntu.com/ubuntu/dists/maverick/main/installer-i386/current/images/netboot/mini.iso",
|
7
|
+
:iso_md5 => "02abb1a71bde21a1335e9368dad529ca",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "10",:boot_cmd_sequence => [
|
10
|
+
'<Tabr>',
|
11
|
+
'noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
|
12
|
+
'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
|
13
|
+
'hostname=%NAME% ',
|
14
|
+
'fb=false debconf/frontend=noninteractive ',
|
15
|
+
'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
|
16
|
+
' -- <Enter>'
|
17
|
+
],
|
18
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "preseed.cfg",
|
19
|
+
:ssh_login_timeout => "10000",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
|
20
|
+
:ssh_host_port => "2222", :ssh_guest_port => "22",
|
21
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
22
|
+
:shutdown_cmd => "shutdown -P now",
|
23
|
+
:postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000"
|
24
|
+
}
|
25
|
+
)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#http://adrianbravo.tumblr.com/post/644860401
|
2
|
+
|
3
|
+
#Updating the box
|
4
|
+
apt-get -y update
|
5
|
+
#apt-get -y upgrade
|
6
|
+
apt-get -y remove apparmor
|
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
|
+
#Setting up sudo
|
12
|
+
cp /etc/sudoers /etc/sudoers.orig
|
13
|
+
sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
14
|
+
|
15
|
+
#Installing ruby
|
16
|
+
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
|
+
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
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/'> /etc/profile.d/rubyenterprise.sh
|
20
|
+
rm -rf ./ruby-enterprise-1.8.7-2010.02/
|
21
|
+
rm ruby-enterprise-1.8.7-2010.02.tar.gz
|
22
|
+
|
23
|
+
#Installing chef
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
|
+
|
26
|
+
#Installing vagrant keys
|
27
|
+
mkdir /home/vagrant/.ssh
|
28
|
+
chmod 700 /home/vagrant/.ssh
|
29
|
+
cd /home/vagrant/.ssh
|
30
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
31
|
+
chown -R vagrant /home/vagrant/.ssh
|
32
|
+
|
33
|
+
#INstalling the virtualbox guest additions
|
34
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
35
|
+
#INstalling the virtualbox guest additions
|
36
|
+
cd /tmp
|
37
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
38
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
39
|
+
sh /mnt/VBoxLinuxAdditions.run
|
40
|
+
umount /mnt
|
41
|
+
|
42
|
+
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
43
|
+
exit
|
@@ -0,0 +1,9 @@
|
|
1
|
+
#as root
|
2
|
+
apt-get -y install curl
|
3
|
+
apt-get -y install git
|
4
|
+
|
5
|
+
#as non root
|
6
|
+
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
|
7
|
+
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> $HOME/.bash_profile
|
8
|
+
source "$HOME/.rvm/scripts/rvm"
|
9
|
+
rvm install ree
|
@@ -0,0 +1,87 @@
|
|
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 none
|
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
|
+
#choose-mirror-bin mirror/protocol string http
|
82
|
+
#choose-mirror-bin mirror/http/hostname string 192.168.4.150
|
83
|
+
#choose-mirror-bin mirror/http/directory string /ubuntu
|
84
|
+
#choose-mirror-bin mirror/suite select maverick
|
85
|
+
#d-i debian-installer/allow_unauthenticated string true
|
86
|
+
|
87
|
+
choose-mirror-bin mirror/http/proxy string
|
@@ -15,13 +15,13 @@ sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
|
|
15
15
|
#Installing ruby
|
16
16
|
wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
|
17
17
|
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
|
18
|
-
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby
|
18
|
+
./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
|
19
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
|
|
23
23
|
#Installing chef
|
24
|
-
/opt/ruby/bin/gem install chef
|
24
|
+
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
|
25
25
|
|
26
26
|
#Installing vagrant keys
|
27
27
|
mkdir /home/vagrant/.ssh
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veewee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Patrick Debois
|
@@ -15,105 +16,119 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-02-
|
19
|
+
date: 2011-02-08 00:00:00 +01:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
23
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
23
25
|
requirements:
|
24
26
|
- - ~>
|
25
27
|
- !ruby/object:Gem::Version
|
28
|
+
hash: 3
|
26
29
|
segments:
|
27
30
|
- 0
|
28
31
|
- 7
|
29
32
|
- 0
|
30
33
|
version: 0.7.0
|
34
|
+
type: :runtime
|
31
35
|
requirement: *id001
|
32
36
|
name: vagrant
|
33
37
|
prerelease: false
|
34
|
-
type: :runtime
|
35
38
|
- !ruby/object:Gem::Dependency
|
36
39
|
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
37
41
|
requirements:
|
38
42
|
- - ~>
|
39
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 11
|
40
45
|
segments:
|
41
46
|
- 2
|
42
47
|
- 1
|
43
48
|
- 0
|
44
49
|
version: 2.1.0
|
50
|
+
type: :runtime
|
45
51
|
requirement: *id002
|
46
52
|
name: net-ssh
|
47
53
|
prerelease: false
|
48
|
-
type: :runtime
|
49
54
|
- !ruby/object:Gem::Dependency
|
50
55
|
version_requirements: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
51
57
|
requirements:
|
52
58
|
- - ~>
|
53
59
|
- !ruby/object:Gem::Version
|
60
|
+
hash: 31
|
54
61
|
segments:
|
55
62
|
- 0
|
56
63
|
- 1
|
57
64
|
- 2
|
58
65
|
version: 0.1.2
|
66
|
+
type: :runtime
|
59
67
|
requirement: *id003
|
60
68
|
name: popen4
|
61
69
|
prerelease: false
|
62
|
-
type: :runtime
|
63
70
|
- !ruby/object:Gem::Dependency
|
64
71
|
version_requirements: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
65
73
|
requirements:
|
66
74
|
- - ~>
|
67
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 43
|
68
77
|
segments:
|
69
78
|
- 0
|
70
79
|
- 14
|
71
80
|
- 6
|
72
81
|
version: 0.14.6
|
82
|
+
type: :runtime
|
73
83
|
requirement: *id004
|
74
84
|
name: thor
|
75
85
|
prerelease: false
|
76
|
-
type: :runtime
|
77
86
|
- !ruby/object:Gem::Dependency
|
78
87
|
version_requirements: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
79
89
|
requirements:
|
80
90
|
- - ~>
|
81
91
|
- !ruby/object:Gem::Version
|
92
|
+
hash: 13
|
82
93
|
segments:
|
83
94
|
- 1
|
84
95
|
- 6
|
85
96
|
- 1
|
86
97
|
version: 1.6.1
|
98
|
+
type: :runtime
|
87
99
|
requirement: *id005
|
88
100
|
name: highline
|
89
101
|
prerelease: false
|
90
|
-
type: :runtime
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
103
|
version_requirements: &id006 !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
93
105
|
requirements:
|
94
106
|
- - ">="
|
95
107
|
- !ruby/object:Gem::Version
|
108
|
+
hash: 3
|
96
109
|
segments:
|
97
110
|
- 0
|
98
111
|
version: "0"
|
112
|
+
type: :runtime
|
99
113
|
requirement: *id006
|
100
114
|
name: progressbar
|
101
115
|
prerelease: false
|
102
|
-
type: :runtime
|
103
116
|
- !ruby/object:Gem::Dependency
|
104
117
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
105
119
|
requirements:
|
106
120
|
- - ">="
|
107
121
|
- !ruby/object:Gem::Version
|
122
|
+
hash: 23
|
108
123
|
segments:
|
109
124
|
- 1
|
110
125
|
- 0
|
111
126
|
- 0
|
112
127
|
version: 1.0.0
|
128
|
+
type: :development
|
113
129
|
requirement: *id007
|
114
130
|
name: bundler
|
115
131
|
prerelease: false
|
116
|
-
type: :development
|
117
132
|
description: Expand the 'vagrant box' command to support the creation of base boxes from scratch
|
118
133
|
email:
|
119
134
|
- patrick.debois@jedi.be
|
@@ -153,6 +168,8 @@ files:
|
|
153
168
|
- templates/CentOS-5.5-i386/definition.rb
|
154
169
|
- templates/CentOS-5.5-i386/ks.cfg
|
155
170
|
- templates/CentOS-5.5-i386/postinstall.sh
|
171
|
+
- templates/Sysrescuecd-2.0.0-experimental/autorun0
|
172
|
+
- templates/Sysrescuecd-2.0.0-experimental/definition.rb
|
156
173
|
- templates/ubuntu-10.04.1-server-amd64/definition.rb
|
157
174
|
- templates/ubuntu-10.04.1-server-amd64/postinstall.sh
|
158
175
|
- templates/ubuntu-10.04.1-server-amd64/preseed.cfg
|
@@ -160,10 +177,18 @@ files:
|
|
160
177
|
- templates/ubuntu-10.04.1-server-i386/postinstall.sh
|
161
178
|
- templates/ubuntu-10.04.1-server-i386/postinstall2.sh
|
162
179
|
- templates/ubuntu-10.04.1-server-i386/preseed.cfg
|
180
|
+
- templates/ubuntu-10.10-server-amd64-netboot/definition.rb
|
181
|
+
- templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh
|
182
|
+
- templates/ubuntu-10.10-server-amd64-netboot/postinstall2.sh
|
183
|
+
- templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg
|
163
184
|
- templates/ubuntu-10.10-server-amd64/definition.rb
|
164
185
|
- templates/ubuntu-10.10-server-amd64/postinstall.sh
|
165
186
|
- templates/ubuntu-10.10-server-amd64/postinstall2.sh
|
166
187
|
- templates/ubuntu-10.10-server-amd64/preseed.cfg
|
188
|
+
- templates/ubuntu-10.10-server-i386-netboot/definition.rb
|
189
|
+
- templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
|
190
|
+
- templates/ubuntu-10.10-server-i386-netboot/postinstall2.sh
|
191
|
+
- templates/ubuntu-10.10-server-i386-netboot/preseed.cfg
|
167
192
|
- templates/ubuntu-10.10-server-i386/definition.rb
|
168
193
|
- templates/ubuntu-10.10-server-i386/postinstall.sh
|
169
194
|
- templates/ubuntu-10.10-server-i386/postinstall2.sh
|
@@ -182,16 +207,20 @@ rdoc_options: []
|
|
182
207
|
require_paths:
|
183
208
|
- lib
|
184
209
|
required_ruby_version: !ruby/object:Gem::Requirement
|
210
|
+
none: false
|
185
211
|
requirements:
|
186
212
|
- - ">="
|
187
213
|
- !ruby/object:Gem::Version
|
214
|
+
hash: 3
|
188
215
|
segments:
|
189
216
|
- 0
|
190
217
|
version: "0"
|
191
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
192
220
|
requirements:
|
193
221
|
- - ">="
|
194
222
|
- !ruby/object:Gem::Version
|
223
|
+
hash: 23
|
195
224
|
segments:
|
196
225
|
- 1
|
197
226
|
- 3
|
@@ -200,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
229
|
requirements: []
|
201
230
|
|
202
231
|
rubyforge_project: veewee
|
203
|
-
rubygems_version: 1.
|
232
|
+
rubygems_version: 1.4.2
|
204
233
|
signing_key:
|
205
234
|
specification_version: 3
|
206
235
|
summary: Vagrant box creation
|