veewee 0.1.17 → 0.1.18

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 (68) hide show
  1. data/Gemfile.lock +1 -1
  2. data/lib/veewee/scancode.rb +39 -21
  3. data/lib/veewee/session.rb +15 -4
  4. data/lib/veewee/version.rb +1 -1
  5. data/templates/Archlinux-latest/definition.rb +10 -11
  6. data/templates/Archlinux-latest/postinstall.sh +12 -12
  7. data/templates/CentOS-4.8-i386/definition.rb +6 -7
  8. data/templates/CentOS-4.8-i386/postinstall.sh +7 -7
  9. data/templates/CentOS-5.5-i386-netboot/definition.rb +16 -17
  10. data/templates/CentOS-5.5-i386-netboot/postinstall.sh +6 -11
  11. data/templates/CentOS-5.5-i386/definition.rb +15 -16
  12. data/templates/CentOS-5.5-i386/postinstall.sh +6 -11
  13. data/templates/Debian-6.0-amd64-netboot/definition.rb +18 -19
  14. data/templates/Debian-6.0-amd64-netboot/postinstall.sh +4 -5
  15. data/templates/Debian-6.0-amd64-netboot/preseed.cfg +1 -1
  16. data/templates/Debian-6.0-i386-netboot/definition.rb +4 -5
  17. data/templates/Debian-6.0-i386-netboot/postinstall.sh +1 -1
  18. data/templates/Fedora-14-amd64-netboot/definition.rb +16 -0
  19. data/templates/Fedora-14-amd64-netboot/ks.cfg +40 -0
  20. data/templates/Fedora-14-amd64-netboot/postinstall.sh +52 -0
  21. data/templates/Fedora-14-amd64/definition.rb +16 -0
  22. data/templates/Fedora-14-amd64/ks.cfg +41 -0
  23. data/templates/Fedora-14-amd64/postinstall.sh +52 -0
  24. data/templates/Fedora-14-i386-netboot/definition.rb +16 -0
  25. data/templates/Fedora-14-i386-netboot/ks.cfg +40 -0
  26. data/templates/Fedora-14-i386-netboot/postinstall.sh +52 -0
  27. data/templates/Fedora-14-i386/definition.rb +16 -0
  28. data/templates/Fedora-14-i386/ks.cfg +41 -0
  29. data/templates/Fedora-14-i386/postinstall.sh +52 -0
  30. data/templates/Sysrescuecd-2.0.0-experimental/definition.rb +11 -12
  31. data/templates/freebsd-8.2-experimental/definition.rb +9 -10
  32. data/templates/freebsd-8.2-experimental/postinstall.sh +16 -16
  33. data/templates/freebsd-8.2-pcbsd-i386/definition.rb +16 -17
  34. data/templates/freebsd-8.2-pcbsd-i386/pcinstall.fbg.cfg +1 -1
  35. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +2 -2
  36. data/templates/solaris-11-express-i386-experimental/auto_install/ai.dtd +58 -0
  37. data/templates/solaris-11-express-i386-experimental/auto_install/ai_manifest.xml +241 -0
  38. data/templates/solaris-11-express-i386-experimental/auto_install/configuration.dtd +44 -0
  39. data/templates/solaris-11-express-i386-experimental/auto_install/default.xml +124 -0
  40. data/templates/solaris-11-express-i386-experimental/auto_install/default.xml.orig +124 -0
  41. data/templates/solaris-11-express-i386-experimental/auto_install/sc_profiles/static_network.xml +105 -0
  42. data/templates/solaris-11-express-i386-experimental/auto_install/software.dtd +105 -0
  43. data/templates/solaris-11-express-i386-experimental/auto_install/target.dtd +196 -0
  44. data/templates/solaris-11-express-i386-experimental/default.xml +121 -0
  45. data/templates/solaris-11-express-i386-experimental/definition.rb +65 -0
  46. data/templates/solaris-11-express-i386-experimental/postinstall.sh +72 -0
  47. data/templates/ubuntu-10.04.2-server-amd64/definition.rb +24 -0
  48. data/templates/{ubuntu-10.04.1-server-amd64 → ubuntu-10.04.2-server-amd64}/postinstall.sh +3 -4
  49. data/templates/{ubuntu-10.04.1-server-amd64 → ubuntu-10.04.2-server-amd64}/preseed.cfg +3 -3
  50. data/templates/ubuntu-10.04.2-server-i386/definition.rb +24 -0
  51. data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/postinstall.sh +2 -3
  52. data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/postinstall2.sh +0 -0
  53. data/templates/{ubuntu-10.04.1-server-i386 → ubuntu-10.04.2-server-i386}/preseed.cfg +3 -3
  54. data/templates/ubuntu-10.10-server-amd64-netboot/definition.rb +16 -17
  55. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +2 -3
  56. data/templates/ubuntu-10.10-server-amd64-netboot/preseed.cfg +2 -2
  57. data/templates/ubuntu-10.10-server-amd64/definition.rb +16 -17
  58. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +2 -3
  59. data/templates/ubuntu-10.10-server-amd64/preseed.cfg +3 -3
  60. data/templates/ubuntu-10.10-server-i386-netboot/definition.rb +16 -17
  61. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +3 -4
  62. data/templates/ubuntu-10.10-server-i386-netboot/preseed.cfg +2 -2
  63. data/templates/ubuntu-10.10-server-i386/definition.rb +16 -17
  64. data/templates/ubuntu-10.10-server-i386/postinstall.sh +3 -4
  65. data/templates/ubuntu-10.10-server-i386/preseed.cfg +4 -4
  66. metadata +34 -11
  67. data/templates/ubuntu-10.04.1-server-amd64/definition.rb +0 -25
  68. data/templates/ubuntu-10.04.1-server-i386/definition.rb +0 -25
@@ -0,0 +1,16 @@
1
+ Veewee::Session.declare({
2
+ :cpu_count => '1', :memory_size=> '384',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :use_hw_virt_ext => 'on',
4
+ :os_type_id => 'Fedora',
5
+ :iso_file => "Fedora-14-i386-DVD.iso",
6
+ :iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/i386/iso/Fedora-14-i386-DVD.iso",
7
+ :iso_md5 => "1cc67641506d2f931d669b8d3528dded",
8
+ :iso_download_timeout => 1000,
9
+ :boot_wait => "10", :boot_cmd_sequence => [ '<Tab> linux text ks=http://%IP%:%PORT%/ks.cfg<Enter><Enter>' ],
10
+ :kickstart_port => "7122", :kickstart_timeout => 10000, :kickstart_file => "ks.cfg",
11
+ :ssh_login_timeout => "100", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
12
+ :ssh_host_port => "7222", :ssh_guest_port => "22",
13
+ :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
14
+ :shutdown_cmd => "/sbin/halt -h -p",
15
+ :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => 10000
16
+ })
@@ -0,0 +1,41 @@
1
+ # Kickstart file automatically generated by anaconda.
2
+
3
+ install
4
+ cdrom
5
+ lang en_US.UTF-8
6
+ keyboard us
7
+ #xconfig --card "VMWare" --videoram 16384 --hsync 31.5-37.9 --vsync 50-70 --resolution 800x600 --depth 16
8
+ network --onboot yes --device eth0 --bootproto dhcp --noipv6
9
+ rootpw --iscrypted $6$n/NGsk5H2aiBMXL4$r/oPkJtB5rasvQHPo9AvIJBe6sNVlQbpZxvTRMN7.qZk/Sn9u2qZ0XgNxflUvK20y7OIWdr/vv7MED6gzkBiH0
10
+ firewall --enabled --trust eth0 --ssh
11
+ selinux --enforcing
12
+ authconfig --enableshadow --passalgo=sha512 --enablefingerprint
13
+ timezone --utc America/Los_Angeles
14
+ bootloader --location=mbr --driveorder=sda --append="nomodeset rhgb quiet"
15
+ # The following is the partition information you requested
16
+ # Note that any partitions you deleted are not expressed
17
+ # here so unless you clear all partitions first, this is
18
+ # not guaranteed to work
19
+ clearpart --all --drives=sda --initlabel
20
+ part /boot --fstype=ext4 --size=500 --ondisk=sda
21
+ part pv.2 --size=0 --grow --size=500
22
+ volgroup vg_main --pesize=32768 pv.2
23
+ logvol swap --fstype=swap --name=lv_swap --vgname=vg_main --size=528 --grow --maxsize=1056
24
+ logvol / --fstype=ext4 --name=lv_root --vgname=vg_main --size=1024 --grow
25
+ # We leave the repo commands out so that we install from the iso
26
+ #repo --name="Fedora 14 - i386" --baseurl=http://mirrors.xmission.com/fedora/releases/14/Everything/i386/os/ --cost=1000
27
+ #repo --name="Fedora 14 - i386 - Updates" --baseurl=http://mirror.pnl.gov/fedora/linux/updates/14/i386/ --cost=1000
28
+ services --enabled network
29
+ reboot
30
+
31
+ %packages
32
+ @core
33
+ @online-docs
34
+ %end
35
+
36
+ %post
37
+ /usr/sbin/groupadd vagrant
38
+ /usr/sbin/useradd vagrant -g vagrant -G wheel
39
+ echo "vagrant"|passwd --stdin vagrant
40
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
41
+ %end
@@ -0,0 +1,52 @@
1
+ #http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
2
+ #kernel source is needed for vbox additions
3
+
4
+ yum -y install gcc bzip2 make patch kernel-devel-`uname -r`
5
+
6
+ #yum -y update
7
+ #yum -y upgrade
8
+
9
+ yum -y install gcc-c++ zlib-devel openssl-devel readline-devel sqlite3-devel
10
+
11
+ # don't remove these because dependency removal will remove policycoreutils package and we should
12
+ # not care about these packages being installed in the first place
13
+ #yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
14
+
15
+
16
+ yum -y clean all
17
+
18
+ #Installing ruby
19
+ wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
20
+ tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
21
+ ./ruby-enterprise-1.8.7-2010.02/installer -a /opt/ruby --no-dev-docs --dont-install-useful-gems
22
+ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
23
+ rm -rf ./ruby-enterprise-1.8.7-2010.02/
24
+ rm ruby-enterprise-1.8.7-2010.02.tar.gz
25
+
26
+ #Installing chef & Puppet
27
+ /opt/ruby/bin/gem install chef --no-ri --no-rdoc
28
+ /opt/ruby/bin/gem install puppet --no-ri --no-rdoc
29
+
30
+ #Installing vagrant keys
31
+ mkdir /home/vagrant/.ssh
32
+ chmod 700 /home/vagrant/.ssh
33
+ cd /home/vagrant/.ssh
34
+ wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
35
+ chown -R vagrant /home/vagrant/.ssh
36
+
37
+ #Installing the virtualbox guest additions
38
+ VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
39
+ cd /tmp
40
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
41
+ mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
42
+ sh /mnt/VBoxLinuxAdditions.run
43
+ umount /mnt
44
+
45
+ rm VBoxGuestAdditions_$VBOX_VERSION.iso
46
+
47
+
48
+ sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
49
+
50
+ #poweroff -h
51
+
52
+ exit
@@ -1,21 +1,20 @@
1
- Veewee::Session.declare( {
1
+ Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '256',
3
- :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
4
4
  :os_type_id => 'Linux',
5
5
  :iso_file => "systemrescuecd-x86-2.0.0.iso",
6
6
  :iso_src => "http://downloads.sourceforge.net/project/systemrescuecd/sysresccd-x86/2.0.0/systemrescuecd-x86-2.0.0.iso",
7
7
  :iso_md5 => "51012e0bb943cff6367e5cea3a61cdbe",
8
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 => "",
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
16
  :ssh_host_port => "7222", :ssh_guest_port => "22",
17
17
  :sudo_cmd => "sh '%f'",
18
18
  :shutdown_cmd => "shutdown -H",
19
- :postinstall_files => [ ],:postinstall_timeout => "10000"
20
- }
21
- )
19
+ :postinstall_files => [ ], :postinstall_timeout => "10000"
20
+ })
@@ -1,20 +1,19 @@
1
- Veewee::Session.declare( {
1
+ Veewee::Session.declare({
2
2
  :cpu_count => '1', :memory_size=> '256',
3
- :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
4
4
  :os_type_id => 'FreeBSD_64',
5
5
  :iso_file => "mfsbsd-8.2-amd64.iso",
6
6
  :iso_src => "http://mfsbsd.vx.sk/iso/mfsbsd-8.2-amd64.iso",
7
7
  :iso_md5 => "3296cf0e5844",
8
8
  :iso_download_timeout => "1000",
9
- :boot_wait => "10",:boot_cmd_sequence => [
10
- '<Enter>'
11
- ],
12
- :kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "",
13
- :ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "mfsroot",:ssh_key => "",
9
+ :boot_wait => "10", :boot_cmd_sequence => [
10
+ '<Enter>'
11
+ ],
12
+ :kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "",
13
+ :ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "mfsroot", :ssh_key => "",
14
14
  :ssh_host_port => "7222", :ssh_guest_port => "22",
15
15
  :sudo_cmd => "sh '%f'",
16
16
  :shutdown_cmd => "shutdown -H",
17
- :postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000"
18
- }
19
- )
17
+ :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
18
+ })
20
19
  #'setkmap=us dodhcp=eth0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant',
@@ -6,20 +6,20 @@ sysctl kern.geom.debugflags=16
6
6
 
7
7
  #http://forum.nginx.org/read.php?23,146311,146451
8
8
  # Init the disk with an MBR
9
- gpart create -s mbr ad4
9
+ gpart create -s mbr ad4
10
10
  # Create a BSD container
11
- gpart add -t freebsd ad4
11
+ gpart add -t freebsd ad4
12
12
  # Init with a BSD scheme
13
- gpart create -s bsd ad4s1
13
+ gpart create -s bsd ad4s1
14
14
 
15
15
  # 1GB for /
16
- gpart add -t freebsd-ufs -s 1G ad4s1
16
+ gpart add -t freebsd-ufs -s 1G ad4s1
17
17
 
18
- gpart add -t freebsd-swap -s 2G ad4s1
18
+ gpart add -t freebsd-swap -s 2G ad4s1
19
19
  # 2GB for swap
20
- gpart add -t freebsd-ufs -s 2G ad4s1
20
+ gpart add -t freebsd-ufs -s 2G ad4s1
21
21
  # 2GB for /var
22
- gpart add -t freebsd-ufs ad4s1
22
+ gpart add -t freebsd-ufs ad4s1
23
23
  # all rest for /usr
24
24
 
25
25
  #install bootcode
@@ -27,7 +27,7 @@ gpart bootcode -p /boot/boot -i 1 ad4s1
27
27
  gpart set -a active -i ad4
28
28
 
29
29
  cat <<EOF >/install.cfg
30
- # This is the installation configuration file for our rackmounted FreeBSD
30
+ # This is the installation configuration file for our rackmounted FreeBSD
31
31
  # cluster machines
32
32
 
33
33
  # Turn on extra debugging.
@@ -48,7 +48,7 @@ debug=yes
48
48
  tryDHCP=NO
49
49
 
50
50
  ################################
51
- # Which installation device to use
51
+ # Which installation device to use
52
52
  # ftp://ftp.smr.ru/pub/0/FreeBSD/current/src/release/sysinstall/sysinstall.h
53
53
  _ftpPath=ftp://ftp2.freebsd.org/pub/FreeBSD/
54
54
  #_httpPath=ftp://ftp2.freebsd.org/pub/FreeBSD/
@@ -67,7 +67,7 @@ distSetMinimum
67
67
  ################################
68
68
 
69
69
  ################################
70
- # Now set the parameters for the partition editor on ad4.
70
+ # Now set the parameters for the partition editor on ad4.
71
71
  disk=ad4
72
72
  partition=all
73
73
  #http://www.mail-archive.com/freebsd-questions@freebsd.org/msg212036.html
@@ -145,7 +145,7 @@ EOF
145
145
  # WORKS WITH: 0:ad(4,d)/boot/loader
146
146
 
147
147
  #http://www.mail-archive.com/freebsd-questions@freebsd.org/msg72530.html
148
- cat <<EOF > /mnt/boot/loader.conf
148
+ cat <<EOF > /mnt/boot/loader.conf
149
149
  #geom_label_load="YES"
150
150
  #root_disk_unit="4"
151
151
  #currdev="disk4s1d"
@@ -168,22 +168,22 @@ cat <<EOF > mkvirecover
168
168
  # PROVIDE: mkvirecover
169
169
  # REQUIRE: mountcritremote
170
170
  # BEFORE: DAEMON virecover
171
-
171
+
172
172
 
173
173
  . /etc/rc.subr
174
-
174
+
175
175
  name="mkvirecover"
176
176
  stop_cmd=":"
177
177
  start_cmd="mkvirecover_start"
178
-
178
+
179
179
  mkvirecover_start()
180
180
  {
181
181
  [ -d /var/tmp/vi.recover ] || mkdir -m 1777 /var/tmp/vi.recover
182
182
  echo '.'
183
183
  }
184
-
184
+
185
185
  load_rc_config "\$name"
186
186
  run_rc_command "\$1"
187
187
  EOF
188
-
188
+
189
189
  chmod 555 /mnt/usr/local/etc/rc.d/mkvirecover
@@ -4,29 +4,28 @@
4
4
  # :iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-bootonly.iso",
5
5
  # :iso_file => "PCBSD8.2-x86-bootonly.iso",
6
6
 
7
- Veewee::Session.declare( {
7
+ Veewee::Session.declare({
8
8
  :cpu_count => '1', :memory_size=> '768',
9
- :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
9
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
10
10
  :os_type_id => 'FreeBSD',
11
11
  :iso_file => "PCBSD8.2-x86-DVD.iso",
12
12
  :iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-DVD.iso",
13
13
  :iso_md5 => "6433a8abf6073b177750d48398bed341",
14
14
  :iso_download_timeout => "1000",
15
- :boot_wait => "70",:boot_cmd_sequence => [
16
- '<KillX>',
17
- '<Enter>',
18
- 'dhclient em0<Enter>',
19
- 'sleep 15;echo "Lets Get the File";fetch "http://%IP%:%PORT%/pcinstall.fbg.cfg";sleep 2;',
20
- 'echo \'echo sshd_enable=\"YES\" >> $FSMNT/etc/rc.conf\' > /root/activate-ssh.sh ; cat /root/activate-ssh.sh<Enter>',
21
- 'chmod +x /root/activate-ssh.sh<Enter>',
22
- 'echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>',
23
- 'reboot<Enter>'
24
- ],
25
- :kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "pcinstall.fbg.cfg",
26
- :ssh_login_timeout => "10000",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
15
+ :boot_wait => "70", :boot_cmd_sequence => [
16
+ '<KillX>',
17
+ '<Enter>',
18
+ 'dhclient em0<Enter>',
19
+ 'sleep 15;echo "Lets Get the File";fetch "http://%IP%:%PORT%/pcinstall.fbg.cfg";sleep 2;',
20
+ 'echo \'echo sshd_enable=\"YES\" >> $FSMNT/etc/rc.conf\' > /root/activate-ssh.sh ; cat /root/activate-ssh.sh<Enter>',
21
+ 'chmod +x /root/activate-ssh.sh<Enter>',
22
+ 'echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>',
23
+ 'reboot<Enter>'
24
+ ],
25
+ :kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "pcinstall.fbg.cfg",
26
+ :ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
27
27
  :ssh_host_port => "7222", :ssh_guest_port => "22",
28
28
  :sudo_cmd => "cat '%f'|su -",
29
29
  :shutdown_cmd => "shutdown -p now",
30
- :postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000"
31
- }
32
- )
30
+ :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
31
+ })
@@ -52,6 +52,6 @@ runExtCommand=/root/activate-ssh.sh
52
52
  # We temporary disable password checks , we promise to make up for it later
53
53
  runCommand=sed -i -e 's@auth.*include.*system@@' /etc/pam.d/su
54
54
 
55
- # making the clock run correctly
55
+ # making the clock run correctly
56
56
  # http://forums.virtualbox.org/viewtopic.php?f=11&t=12210&start=0
57
57
  # runCommand=echo 'kern.hz=100' > /boot/loader.conf
@@ -47,7 +47,7 @@ echo 'rpcbind_enable="YES"' >> /etc/rc.conf
47
47
  echo 'nfs_server_enable="YES"' >> /etc/rc.conf
48
48
  echo 'mountd_flags="-r"' >> /etc/rc.conf
49
49
 
50
- # Enable passwordless sudo
50
+ # Enable passwordless sudo
51
51
  echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
52
52
  # Restore correct su permissions
53
53
  # I'll leave that up to the reader :)
@@ -73,7 +73,7 @@ exit
73
73
  # Research is on it's way to have 4.x in the main portstree
74
74
  # http://www.listware.net/201102/freebsd-ports/65201-call-for-testers-virtualbox-404.html
75
75
  # Virtualbox additions - http://wiki.freebsd.org/VirtualBox
76
- # Currently this will only work for 4.0.4
76
+ # Currently this will only work for 4.0.4
77
77
  cd /tmp
78
78
  wget http://home.bluelife.at/ports/virtualbox-cft-20110218.tar.gz
79
79
  cd /usr/ports
@@ -0,0 +1,58 @@
1
+ <!--
2
+ CDDL HEADER START
3
+
4
+ The contents of this file are subject to the terms of the
5
+ Common Development and Distribution License (the "License").
6
+ You may not use this file except in compliance with the License.
7
+
8
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9
+ or http://www.opensolaris.org/os/licensing.
10
+ See the License for the specific language governing permissions
11
+ and limitations under the License.
12
+
13
+ When distributing Covered Code, include this CDDL HEADER in each
14
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15
+ If applicable, add the following below this CDDL HEADER, with the
16
+ fields enclosed by brackets "[]" replaced with your own identifying
17
+ information: Portions Copyright [yyyy] [name of copyright owner]
18
+
19
+ CDDL HEADER END
20
+
21
+ Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
22
+
23
+ -->
24
+
25
+ <!ELEMENT auto_install (ai_instance)>
26
+
27
+ <!ENTITY % target SYSTEM "target.dtd">
28
+ %target;
29
+
30
+ <!ENTITY % configuration SYSTEM "configuration.dtd">
31
+ %configuration;
32
+
33
+ <!ENTITY % software SYSTEM "software.dtd">
34
+ %software;
35
+
36
+ <!--
37
+ The source element, if specified, is for post installation changes
38
+ to the publisher for IPS. The first source element specified
39
+ will be considered the primary source, all additional sources
40
+ will be added as secondary sources.
41
+ -->
42
+
43
+ <!ELEMENT sc_manifest_file EMPTY>
44
+ <!ATTLIST sc_manifest_file name CDATA #REQUIRED>
45
+ <!ATTLIST sc_manifest_file URI CDATA #REQUIRED>
46
+
47
+ <!ELEMENT sc_embedded_manifest (#PCDATA)>
48
+ <!ATTLIST sc_embedded_manifest name CDATA #REQUIRED>
49
+
50
+ <!ELEMENT ai_instance (target*, software+, add_drivers?, (configuration*|sc_manifest_file|sc_embedded_manifest), source*)>
51
+ <!ATTLIST ai_instance name CDATA #REQUIRED>
52
+ <!ATTLIST ai_instance http_proxy CDATA #IMPLIED>
53
+ <!ATTLIST ai_instance auto_reboot (true|false) "false">
54
+
55
+ <!ELEMENT add_drivers (software*, search_all?)>
56
+
57
+ <!ELEMENT search_all (source?)>
58
+ <!ATTLIST search_all addall (true|false) "false">
@@ -0,0 +1,241 @@
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ CDDL HEADER START
4
+
5
+ The contents of this file are subject to the terms of the
6
+ Common Development and Distribution License (the "License").
7
+ You may not use this file except in compliance with the License.
8
+
9
+ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10
+ or http://www.opensolaris.org/os/licensing.
11
+ See the License for the specific language governing permissions
12
+ and limitations under the License.
13
+
14
+ When distributing Covered Code, include this CDDL HEADER in each
15
+ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16
+ If applicable, add the following below this CDDL HEADER, with the
17
+ fields enclosed by brackets "[]" replaced with your own identifying
18
+ information: Portions Copyright [yyyy] [name of copyright owner]
19
+
20
+ CDDL HEADER END
21
+
22
+ Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
23
+ -->
24
+ <!--
25
+ ===============================================================================
26
+ DTD sample manifest for Automatic Installer input manifest specification.
27
+ ===============================================================================
28
+ -->
29
+ <!DOCTYPE auto_install SYSTEM "file:///usr/share/auto_install/ai.dtd">
30
+ <auto_install>
31
+ <!--
32
+ "auto_reboot" set to "true" may be an issue for x86 machines.
33
+ The boot order is not guaranteed and may cause unexpected
34
+ behavior. If auto_reboot is not desired, removing this
35
+ attribute, e.g. <ai_instance name="sample_ai_manfiest">
36
+ will work. "auto_reboot" is set to false by default.
37
+ -->
38
+ <ai_instance name="sample_ai_manifest" auto_reboot="true">
39
+ <!--
40
+ =======================================================================
41
+ <target/target_device> - selections for AI target Device specification
42
+
43
+ Disk criteria are divided into three mutually exclusive groups:
44
+
45
+ G1 - deterministic disk criteria
46
+ ................................
47
+ * target_device/disk/iscsi parameters
48
+ * target_device/disk/disk_name, with name_type attribute:
49
+ one of ctd, volid, devpath or devid
50
+
51
+ G2 - non-deterministic disk criteria
52
+ ..........................
53
+ * target_device/disk/disk_prop: Any of dev_type, dev_vendor or
54
+ dev_size
55
+
56
+ G3 - keyword disk criteria
57
+ ...........................
58
+ * target_device/disk/disk_keyword: "boot_disk"
59
+
60
+ Schema ai.dtd enforces following policy:
61
+
62
+ * criteria in group G1 are mutually exclusive - only
63
+ one can be specified at a time
64
+
65
+ * groups G1, G2 and G3 are mutually exclusive - i.e.
66
+ if criteria from G1 is specified, no criteria
67
+ from G2 or G3 are allowed and vice versa
68
+
69
+ * multiple criteria from G2 can be specified
70
+ =======================================================================
71
+ -->
72
+ <target>
73
+ <target_device>
74
+ <disk>
75
+ <!-- G1 -->
76
+ <!--
77
+ c#t#d# device name like c0t0d0 or
78
+ MPXIO name like c0t2000002037CD9F72d0
79
+ -->
80
+ <disk_name name="c1t0d0" name_type="ctd"/>
81
+ <!-- volume name set for instance by means
82
+ of format(1M) command
83
+ -->
84
+ <!--
85
+ <disk_name name="ai-disk" name_type="volid"/>
86
+ -->
87
+ <!-- device id - e.g. can be obtained by means of
88
+ iostat(1M) -iEn
89
+ -->
90
+ <!--
91
+ <disk_name name="id1,cmdk@AST31000340NS=____________9QJ2LNYY" name_type="devid"/>
92
+ -->
93
+ <!-- device path under /devices directory, e.g.
94
+ /pci@1e,600000/pci@0/pci@9/pci@0/scsi@1/sd@0,0
95
+ -->
96
+ <!--
97
+ <disk_name name="/pci@0/pci@9/pci@0/scsi@1/sd@0,0" name_type="devpath"/>
98
+ -->
99
+ <!--
100
+ ISCSI target device
101
+
102
+ <iscsi name="c0d2E0001010F68">
103
+ <ip>192.168.1.34</ip>
104
+ </iscsi>
105
+ -->
106
+ <!-- G2 -->
107
+ <!--
108
+ <disk_prop dev_vendor="hitachi" dev_size="20480mb"/>
109
+ -->
110
+ <!-- G3 -->
111
+ <!--
112
+ <disk_keyword key="boot_disk"/>
113
+ -->
114
+ <!--
115
+ Uncomment this to force AI to find an existing Solaris
116
+ partition instead of creating a new one.
117
+ -->
118
+ <!--
119
+ <partition action="use_existing"/>
120
+ -->
121
+ <partition name="1" part_type="99">
122
+ <size start_sector="200" val="20480mb"/>
123
+ </partition>
124
+ <partition name="4" part_type="99">
125
+ <size start_sector="2000" val="20480mb"/>
126
+ </partition>
127
+ <slice name="0" is_root="true">
128
+ <size val="20480mb"/>
129
+ </slice>
130
+ <slice name="4">
131
+ <size val="20480mb"/>
132
+ </slice>
133
+ </disk>
134
+ </target_device>
135
+ </target>
136
+ <software name="ips">
137
+ <source>
138
+ <publisher name="solaris">
139
+ <origin name="http://pkg.oracle.com/solaris/release"/>
140
+ </publisher>
141
+ </source>
142
+ <!--
143
+ By default the latest build available, in the
144
+ specified IPS repository, is installed.
145
+ if another build is required, the build number has
146
+ to be appended to the 'entire' package in following
147
+ form:
148
+ <name="entire@0.5.11-0.build#"/>
149
+ -->
150
+ <software_data type="IPS">
151
+ <name>pkg:/entire</name>
152
+ <name>pkg:/babel_install</name>
153
+ </software_data>
154
+ <!--
155
+ babel_install and slim_install are group packages used to
156
+ define the default installation. They are removed here so
157
+ that they do not inhibit removal of other packages on the installed
158
+ system
159
+ -->
160
+ <software_data action="uninstall" type="IPS">
161
+ <name>pkg:/babel_install</name>
162
+ <name>pkg:/slim_install</name>
163
+ </software_data>
164
+ </software>
165
+ <add_drivers>
166
+ <!--
167
+ Driver Updates: This section is for adding driver packages to the
168
+ boot environment before the installation takes place. The
169
+ installer can then access all devices on the system. The
170
+ packages installed in the boot environment will also be installed
171
+ on the target.
172
+
173
+ A <search_all> entry performs a search for devices which are
174
+ missing their drivers. A repository publisher and location
175
+ may be specified, and that repository and its database will
176
+ be used. If no publisher and location is specified, the
177
+ configured repositories will be used.
178
+ (See pkg publisher command.) If <addall> is specified as
179
+ "true", then drivers the database says are third-party drivers
180
+ will be added like all others; otherwise third-party drivers
181
+ will not be added.
182
+
183
+ <search_all addall="true">
184
+ <source>
185
+ <publisher name="solaris">
186
+ <origin name="http://pkg.oracle.com/solaris/release"/>
187
+ </publisher>
188
+ </source>
189
+ </search_all>
190
+
191
+ <software> entries are user-provided specifications of packages
192
+ needed in order to perform the install. types are P5I, SVR4, DU.
193
+ A <software_data> action of "noinstall" inhibits adding to target.
194
+
195
+ P5I: A pkg(5) P5I file, full path is in the source/publisher/origin.
196
+ Path may be to a local file or an http or ftp specification.
197
+ <software>
198
+ <source>
199
+ <publisher>
200
+ <origin
201
+ name=
202
+ "http://pkg.oracle.com/solaris/release/p5i/0/driver/firewire.p5i"/>
203
+ </publisher>
204
+ </source>
205
+ <software_data type="P5I"/>
206
+ </software>
207
+
208
+ SVR4: An SVR4 package spec. The source/publisher/origin corresponds
209
+ to the directory containing the packages. The
210
+ software/software_data/name refers tp the package's top level
211
+ directory or the package's datastream file.
212
+
213
+ <software>
214
+ <source>
215
+ <publisher>
216
+ <origin name="/export/package_dir"/>
217
+ </publisher>
218
+ </source>
219
+ <software_data type="SVR4">
220
+ <name>my_disk_driver.d</name>
221
+ </software_data>
222
+ </software>
223
+
224
+ DU: An ITU (Install Time Update) or Driver Update image.
225
+ The source/publisher/origin refers to the path just above the
226
+ image's DU directory (if expanded) or the name of the .iso image.
227
+ All packages in the image will be added.
228
+
229
+ <software>
230
+ <source>
231
+ <publisher>
232
+ <origin name="/export/duimages/mydriver.iso"/>
233
+ </publisher>
234
+ </source>
235
+ <software_data type="DU"/>
236
+ </software>
237
+ -->
238
+ <search_all/>
239
+ </add_drivers>
240
+ </ai_instance>
241
+ </auto_install>