veewee 0.1.26 → 0.1.27

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.
Files changed (69) hide show
  1. data/Gemfile.lock +1 -1
  2. data/README.md +107 -99
  3. data/lib/veewee/command.rb +2 -1
  4. data/lib/veewee/scancode.rb +21 -4
  5. data/lib/veewee/session.rb +2 -2
  6. data/lib/veewee/version.rb +1 -1
  7. data/templates/CentOS-5.6-x86_64-netboot/definition.rb +16 -0
  8. data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +45 -0
  9. data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +58 -0
  10. data/templates/{Debian-6.0.1a-amd64-netboot → Debian-5.0.8-amd64-netboot}/definition.rb +3 -3
  11. data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +57 -0
  12. data/templates/{Debian-6.0.1a-amd64-netboot → Debian-5.0.8-amd64-netboot}/preseed.cfg +0 -0
  13. data/templates/Debian-5.0.8-i386-netboot/definition.rb +39 -0
  14. data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +57 -0
  15. data/templates/Debian-5.0.8-i386-netboot/preseed.cfg +312 -0
  16. data/templates/Debian-6.0.2-amd64-netboot/definition.rb +39 -0
  17. data/templates/Debian-6.0.2-amd64-netboot/postinstall.sh +68 -0
  18. data/templates/Debian-6.0.2-amd64-netboot/preseed.cfg +312 -0
  19. data/templates/{Debian-6.0.1a-i386-netboot → Debian-6.0.2-i386-netboot}/definition.rb +3 -3
  20. data/templates/{Debian-6.0.1a-i386-netboot → Debian-6.0.2-i386-netboot}/postinstall.sh +22 -2
  21. data/templates/{Debian-6.0.1a-i386-netboot → Debian-6.0.2-i386-netboot}/preseed.cfg +0 -0
  22. data/templates/archlinux-64-aif-experimental/definition.rb +29 -0
  23. data/templates/archlinux-64-aif-experimental/postinstall.sh +6 -0
  24. data/templates/archlinux-64-experimental/autorun0 +6 -0
  25. data/templates/archlinux-64-experimental/definition.rb +21 -0
  26. data/templates/archlinux-64-experimental/postinstall.sh +190 -0
  27. data/templates/archlinux-i686/definition.rb +1 -1
  28. data/templates/openindiana-148-ai-x86/auto_install/ai.dtd +58 -0
  29. data/templates/openindiana-148-ai-x86/auto_install/ai_manifest.xml +241 -0
  30. data/templates/openindiana-148-ai-x86/auto_install/configuration.dtd +44 -0
  31. data/templates/openindiana-148-ai-x86/auto_install/default.xml +121 -0
  32. data/templates/openindiana-148-ai-x86/auto_install/default.xml.orig +124 -0
  33. data/templates/openindiana-148-ai-x86/auto_install/sc_profiles/static_network.xml +105 -0
  34. data/templates/openindiana-148-ai-x86/auto_install/software.dtd +105 -0
  35. data/templates/openindiana-148-ai-x86/auto_install/target.dtd +196 -0
  36. data/templates/openindiana-148-ai-x86/default.xml +121 -0
  37. data/templates/openindiana-148-ai-x86/definition.rb +59 -0
  38. data/templates/openindiana-148-ai-x86/postinstall.sh +101 -0
  39. data/templates/solaris-11-express-i386/definition.rb +6 -11
  40. data/templates/solaris-11-express-i386/postinstall.sh +2 -2
  41. data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +1 -0
  42. data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +1 -0
  43. data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +1 -0
  44. data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +1 -0
  45. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +1 -0
  46. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +1 -0
  47. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +1 -0
  48. data/templates/ubuntu-10.10-server-i386/postinstall.sh +1 -0
  49. data/templates/ubuntu-11.04-server-amd64/postinstall.sh +1 -0
  50. data/templates/ubuntu-11.04-server-i386/postinstall.sh +1 -0
  51. data/templates/ubuntu-8.04.4-server-amd64/definition.rb +25 -0
  52. data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +66 -0
  53. data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +88 -0
  54. data/templates/ubuntu-8.04.4-server-i386/definition.rb +25 -0
  55. data/templates/{Debian-6.0.1a-amd64-netboot → ubuntu-8.04.4-server-i386}/postinstall.sh +7 -10
  56. data/templates/ubuntu-8.04.4-server-i386/preseed.cfg +87 -0
  57. data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/Autounattend.xml +1 -1
  58. data/templates/windows-2008R2-amd64/README.md +68 -0
  59. data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/cygwin-setup.exe +0 -0
  60. data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/definition.rb +2 -3
  61. data/templates/{windows-2008R2-amd64-experimental/cygwin-sshd.bat → windows-2008R2-amd64/install-cygwin-sshd.bat} +0 -0
  62. data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/install-winrm.bat +0 -0
  63. data/templates/windows-2008R2-amd64/oracle-cert.cer +0 -0
  64. data/templates/windows-2008R2-amd64/postinstall.sh +122 -0
  65. data/templates/{windows-2008R2-amd64-experimental → windows-2008R2-amd64}/winrm.rb +0 -0
  66. metadata +50 -19
  67. data/templates/windows-2008R2-amd64-experimental/README.md +0 -33
  68. data/templates/windows-2008R2-amd64-experimental/note-virtualbox-additions.txt +0 -23
  69. data/templates/windows-2008R2-amd64-experimental/postinstall.sh +0 -48
@@ -15,22 +15,18 @@ Veewee::Session.declare({
15
15
  :boot_wait => "10", :boot_cmd_sequence => [
16
16
  'e',
17
17
  'e',
18
- '<Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace>',
19
- '<Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace><Backspace>',
18
+ '<Backspace>'*22,
20
19
  'false',
21
20
  #',aimanifest=prompt',
22
21
  #',aimanifest=http://%IP%:%PORT%/default.xml',
23
22
  '<Enter>',
24
23
  'b',
25
- '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
26
- '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
27
- '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
28
- '<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
24
+ '<Wait>'*75,
29
25
 
30
26
  # login as root
31
27
  'root<Enter><Wait>',
32
28
  'solaris<Enter><Wait>',
33
-
29
+
34
30
  # Background check when install is complete, add vagrant to the sudo
35
31
  'while (true); do sleep 5; test -f /a/etc/sudoers && grep -v "vagrant" "/a/etc/sudoers" 2> /dev/null',
36
32
  ' && echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /a/etc/sudoers && break ; done &<Enter>',
@@ -39,23 +35,22 @@ Veewee::Session.declare({
39
35
  '<Enter>while (true); do grep "You may wish to reboot" "/tmp/install_log" 2> /dev/null',
40
36
  ' && reboot; sleep 10; done &<Enter>',
41
37
 
42
-
43
38
  # Wait for 5 seconds, so the webserver will be up
44
39
  'sleep 5; curl http://%IP%:%PORT%/default.xml -o default.xml;',
45
40
  'cp default.xml /tmp/ai_combined_manifest.xml;',
46
41
 
47
42
  # Start the installer
48
43
  'svcadm enable svc:/application/auto-installer:default;',
49
-
44
+
50
45
  # Wait for the installer to launch and display the logfile
51
46
  'sleep 3; tail -f /tmp/install_log<Enter>'
52
-
47
+
53
48
  ],
54
49
  :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "default.xml",
55
50
  :ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
56
51
  :ssh_host_port => "7222", :ssh_guest_port => "22",
57
52
  :sudo_cmd => "echo '%p'|sudo -S bash ./%f",
58
- :shutdown_cmd => "/sbin/halt -h -p",
53
+ :shutdown_cmd => "/usr/sbin/halt",
59
54
  :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
60
55
  })
61
56
 
@@ -69,7 +69,7 @@ yes|/usr/sbin/pkgadd -d . SUNWvbox
69
69
  echo "export PATH=/opt/csw/bin:/opt/csw/sbin:$PATH" >> /root/.profile
70
70
  echo "export PATH=/opt/csw/bin:/opt/csw/sbin:$PATH" >> /export/home/vagrant/.profile
71
71
 
72
- puts "Note: validation of this box wil fail, as it's not linux based, working on that"
72
+ echo "Note: validation of this box wil fail, as it's not linux based, working on that"
73
73
 
74
74
  exit
75
75
 
@@ -93,4 +93,4 @@ bash-3.00# cd ruby-enterprise-1.8.6-20080507/source
93
93
  bash-3.00# ./configure --with-openssl-dir=/opt/csw --with-readline-dir=/opt/csw \
94
94
  --with-iconv-dir=/opt/csw --prefix=/opt/rubyenterprise
95
95
  bash-3.00# make
96
- bash-3.00# make install
96
+ bash-3.00# make install
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -50,6 +50,7 @@ mkdir /home/vagrant/.ssh
50
50
  chmod 700 /home/vagrant/.ssh
51
51
  cd /home/vagrant/.ssh
52
52
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
53
+ chmod 600 /home/vagrant/.ssh/authorized_keys
53
54
  chown -R vagrant /home/vagrant/.ssh
54
55
 
55
56
  # Installing the virtualbox guest additions
@@ -0,0 +1,25 @@
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-8.04.4-server-amd64.iso",
6
+ :iso_src => "http://releases.ubuntu.com/8.04.4/ubuntu-8.04.4-server-amd64.iso",
7
+ :iso_md5 => "89fdc8289630fceb036c9818ac19ca4",
8
+ :iso_download_timeout => "1000",
9
+ :boot_wait => "10", :boot_cmd_sequence => [
10
+ '<Esc><Esc><Enter>',
11
+ '/install/vmlinuz 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
+ 'initrd=/install/initrd.gz -- <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 => "7222", :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,66 @@
1
+ #http://adrianbravo.tumblr.com/post/644860401
2
+
3
+ #Updating the box
4
+ apt-get -y update
5
+ apt-get -y install linux-headers-$(uname -r) build-essential
6
+ apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
7
+ apt-get clean
8
+
9
+ #Setting up sudo
10
+ cp /etc/sudoers /etc/sudoers.orig
11
+ sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
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 & Puppet
22
+ /opt/ruby/bin/gem install chef --no-ri --no-rdoc
23
+ /opt/ruby/bin/gem install puppet --no-ri --no-rdoc
24
+
25
+ #Installing vagrant keys
26
+ mkdir /home/vagrant/.ssh
27
+ chmod 700 /home/vagrant/.ssh
28
+ cd /home/vagrant/.ssh
29
+ wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
30
+ chmod 600 /home/vagrant/.ssh/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
+ cd /tmp
36
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
37
+ mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
38
+ sh /mnt/VBoxLinuxAdditions.run
39
+ umount /mnt
40
+
41
+ rm VBoxGuestAdditions_$VBOX_VERSION.iso
42
+
43
+ # Remove items used for building, since they aren't needed anymore
44
+ apt-get -y remove linux-headers-$(uname -r) build-essential
45
+ apt-get -y autoremove
46
+
47
+ # Zero out the free space to save space in the final image:
48
+ dd if=/dev/zero of=/EMPTY bs=1M
49
+ rm -f /EMPTY
50
+
51
+ exit
52
+ # Not sure if this is needed for hardy too
53
+ # Removing leftover leases and persistent rules
54
+ echo "cleaning up dhcp leases"
55
+ rm /var/lib/dhcp3/*
56
+
57
+ # Make sure Udev doesn't block our network
58
+ # http://6.ptmc.org/?p=164
59
+ echo "cleaning up udev rules"
60
+ rm /etc/udev/rules.d/70-persistent-net.rules
61
+ mkdir /etc/udev/rules.d/70-persistent-net.rules
62
+ rm -rf /dev/.udev/
63
+ rm /lib/udev/rules.d/75-persistent-net-generator.rules
64
+
65
+ echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
66
+ echo "pre-up sleep 2" >> /etc/network/interfaces
@@ -0,0 +1,88 @@
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 acpid
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
+ #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
88
+
@@ -0,0 +1,25 @@
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
+ :pae => true, :io_apic_enabled => true,
6
+ :iso_file => "ubuntu-8.04.4-server-i386.iso",
7
+ :iso_src => "http://releases.ubuntu.com/8.04.4/ubuntu-8.04.4-server-i386.iso",
8
+ :iso_md5 => "ef478e539e991dfa09c3b5b7c589aba6",
9
+ :iso_download_timeout => "1000",
10
+ :boot_wait => "10", :boot_cmd_sequence => [
11
+ '<Esc><Esc><Enter>',
12
+ '/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
13
+ 'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
14
+ 'hostname=%NAME% ',
15
+ 'fb=false debconf/frontend=noninteractive ',
16
+ 'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
17
+ 'initrd=/install/initrd.gz -- <Enter>'
18
+ ],
19
+ :kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "preseed.cfg",
20
+ :ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
21
+ :ssh_host_port => "7222", :ssh_guest_port => "22",
22
+ :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
23
+ :shutdown_cmd => "shutdown -P now",
24
+ :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
25
+ })
@@ -1,20 +1,20 @@
1
- #http://adrianbravo.tumblr.com/post/644860401
1
+ p#http://adrianbravo.tumblr.com/post/644860401
2
2
 
3
3
  #Updating the box
4
4
  apt-get -y update
5
5
  apt-get -y install linux-headers-$(uname -r) build-essential
6
- apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
6
+ apt-get -y install zlib1g-dev libssl-dev libreadline5-dev nfs-common
7
7
  apt-get clean
8
8
 
9
9
  #Setting up sudo
10
10
  cp /etc/sudoers /etc/sudoers.orig
11
- sed -i -e 's/%sudo ALL=(ALL) ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
11
+ sed -i -e 's/%admin ALL=(ALL) ALL/%admin ALL=NOPASSWD:ALL/g' /etc/sudoers
12
12
 
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
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
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
 
@@ -27,22 +27,19 @@ mkdir /home/vagrant/.ssh
27
27
  chmod 700 /home/vagrant/.ssh
28
28
  cd /home/vagrant/.ssh
29
29
  wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
30
+ chmod 600 /home/vagrant/.ssh/authorized_keys
30
31
  chown -R vagrant /home/vagrant/.ssh
31
32
 
32
- #the netboot install the virtualbox stuff so we have to remove it
33
- apt-get -y remove virtualbox-ose-guest-dkms
34
- apt-get -y remove virtualbox-ose-guest-utils
35
-
36
33
  #Installing the virtualbox guest additions
37
34
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
38
35
  cd /tmp
39
36
  wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
40
37
  mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
41
- yes|sh /mnt/VBoxLinuxAdditions.run
38
+ sh /mnt/VBoxLinuxAdditions.run
42
39
  umount /mnt
43
40
 
44
41
  apt-get -y remove linux-headers-$(uname -r) build-essential
45
42
  apt-get -y autoremove
46
43
 
47
44
  rm VBoxGuestAdditions_$VBOX_VERSION.iso
48
- exit
45
+ exit
@@ -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 acpid
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
+ #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