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
@@ -1,27 +1,27 @@
1
- Veewee::Session.declare( {
1
+ Veewee::Session.declare({
2
2
  :cpu_count => '1',
3
3
  :memory_size=> '256',
4
- :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
4
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
5
5
  :os_type_id => 'Debian_64',
6
6
  :iso_file => "debian-6.0.0-amd64-netinst.iso",
7
7
  :iso_src => "http://ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-6.0.0-amd64-netinst.iso",
8
8
  :iso_md5 => "98111f815d3bea761d303a14d8df8887",
9
9
  :iso_download_timeout => "1000",
10
- :boot_wait => "10",:boot_cmd_sequence => [
11
- '<Esc>',
12
- 'install ',
13
- 'preseed/url=http://%IP%:%PORT%/preseed.cfg ',
14
- 'debian-installer=en_US ',
15
- 'auto ',
16
- 'locale=en_US ',
17
- 'kbd-chooser/method=us ',
18
- 'netcfg/get_hostname=%NAME% ',
19
- 'netcfg/get_domain=vagrantup.com ',
20
- 'fb=false ',
21
- 'debconf/frontend=noninteractive ',
22
- 'console-setup/ask_detect=false ',
23
- 'console-keymaps-at/keymap=us ',
24
- '<Enter>'
10
+ :boot_wait => "10", :boot_cmd_sequence => [
11
+ '<Esc>',
12
+ 'install ',
13
+ 'preseed/url=http://%IP%:%PORT%/preseed.cfg ',
14
+ 'debian-installer=en_US ',
15
+ 'auto ',
16
+ 'locale=en_US ',
17
+ 'kbd-chooser/method=us ',
18
+ 'netcfg/get_hostname=%NAME% ',
19
+ 'netcfg/get_domain=vagrantup.com ',
20
+ 'fb=false ',
21
+ 'debconf/frontend=noninteractive ',
22
+ 'console-setup/ask_detect=false ',
23
+ 'console-keymaps-at/keymap=us ',
24
+ '<Enter>'
25
25
  ],
26
26
  :kickstart_port => "7122",
27
27
  :kickstart_timeout => "10000",
@@ -36,5 +36,4 @@ Veewee::Session.declare( {
36
36
  :shutdown_cmd => "halt -p",
37
37
  :postinstall_files => [ "postinstall.sh" ],
38
38
  :postinstall_timeout => "10000"
39
- }
40
- )
39
+ })
@@ -2,7 +2,7 @@
2
2
 
3
3
  #Updating the box
4
4
  apt-get -y update
5
- apt-get -y install linux-headers-$(uname -r) build-essential
5
+ apt-get -y install linux-headers-$(uname -r) build-essential
6
6
  apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
7
7
  apt-get clean
8
8
 
@@ -33,11 +33,10 @@ chown -R vagrant /home/vagrant/.ssh
33
33
  apt-get -y remove virtualbox-ose-guest-dkms
34
34
  apt-get -y remove virtualbox-ose-guest-utils
35
35
 
36
- #INstalling the virtualbox guest additions
36
+ #Installing the virtualbox guest additions
37
37
  VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
38
- #INstalling the virtualbox guest additions
39
38
  cd /tmp
40
- wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
39
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
41
40
  mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
42
41
  yes|sh /mnt/VBoxLinuxAdditions.run
43
42
  umount /mnt
@@ -45,5 +44,5 @@ umount /mnt
45
44
  apt-get -y remove linux-headers-$(uname -r) build-essential
46
45
  apt-get -y autoremove
47
46
 
48
- rm VBoxGuestAdditions_$VBOX_VERSION.iso
47
+ rm VBoxGuestAdditions_$VBOX_VERSION.iso
49
48
  exit
@@ -222,7 +222,7 @@ tasksel tasksel/first multiselect standard
222
222
  #tasksel tasksel/desktop multiselect kde, xfce
223
223
 
224
224
  # Individual additional packages to install
225
- d-i pkgsel/include string openssh-server ntp acpid sudo bzip2
225
+ d-i pkgsel/include string openssh-server ntp acpid sudo bzip2
226
226
 
227
227
  # Whether to upgrade packages after debootstrap.
228
228
  # Allowed values: none, safe-upgrade, full-upgrade
@@ -1,15 +1,15 @@
1
1
  #Thanks to Fletcher Nichol - https://github.com/fnichol
2
2
 
3
- Veewee::Session.declare( {
3
+ Veewee::Session.declare({
4
4
  :cpu_count => '1',
5
5
  :memory_size=> '256',
6
- :disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
6
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
7
7
  :os_type_id => 'Debian',
8
8
  :iso_file => "debian-6.0.0-i386-netinst.iso",
9
9
  :iso_src => "http://ftp.acc.umu.se/debian-cd/current/i386/iso-cd/debian-6.0.0-i386-netinst.iso",
10
10
  :iso_md5 => "2840eea06e9cdd2e125f32cefa25fa1d",
11
11
  :iso_download_timeout => "1000",
12
- :boot_wait => "10",:boot_cmd_sequence => [
12
+ :boot_wait => "10", :boot_cmd_sequence => [
13
13
  '<Esc>',
14
14
  'install ',
15
15
  'preseed/url=http://%IP%:%PORT%/preseed.cfg ',
@@ -38,5 +38,4 @@ Veewee::Session.declare( {
38
38
  :shutdown_cmd => "halt -p",
39
39
  :postinstall_files => [ "postinstall.sh" ],
40
40
  :postinstall_timeout => "10000"
41
- }
42
- )
41
+ })
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Update the box
4
4
  apt-get -y update
5
- apt-get -y install linux-headers-$(uname -r) build-essential
5
+ apt-get -y install linux-headers-$(uname -r) build-essential
6
6
  apt-get -y install zlib1g-dev libssl-dev libreadline5-dev
7
7
  apt-get -y install curl unzip
8
8
  apt-get clean
@@ -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-x86_64-netinst.iso",
6
+ :iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-netinst.iso",
7
+ :iso_md5 => "acd25fc1470f2497cf2a2a245adbfe1e",
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,40 @@
1
+ # Kickstart file automatically generated by anaconda.
2
+
3
+ install
4
+ url --url=http://mirrors.cat.pdx.edu/fedora/linux/releases/14/Fedora/x86_64/os/
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
+ repo --name="Fedora 14 - x86_64" --baseurl=http://mirrors.xmission.com/fedora/releases/14/Everything/x86_64/os/ --cost=1000
26
+ repo --name="Fedora 14 - x86_64 - Updates" --baseurl=http://mirror.pnl.gov/fedora/linux/updates/14/x86_64/ --cost=1000
27
+ services --enabled network
28
+ reboot
29
+
30
+ %packages
31
+ @core
32
+ @online-docs
33
+ %end
34
+
35
+ %post
36
+ /usr/sbin/groupadd vagrant
37
+ /usr/sbin/useradd vagrant -g vagrant -G wheel
38
+ echo "vagrant"|passwd --stdin vagrant
39
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
40
+ %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
@@ -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-x86_64-DVD.iso",
6
+ :iso_src => "http://mirror.uoregon.edu/fedora/linux/releases/14/Fedora/x86_64/iso/Fedora-14-x86_64-DVD.iso",
7
+ :iso_md5 => "381d7336c6d1685cbb4eae49cdef2247",
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 - x86_64" --baseurl=http://mirrors.xmission.com/fedora/releases/14/Everything/x86_64/os/ --cost=1000
27
+ #repo --name="Fedora 14 - x86_64 - Updates" --baseurl=http://mirror.pnl.gov/fedora/linux/updates/14/x86_64/ --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
@@ -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-netinst.iso",
6
+ :iso_src => "http://www.gtlib.gatech.edu/pub/fedora.redhat/linux//releases/14/Fedora/i386/iso/Fedora-14-i386-netinst.iso",
7
+ :iso_md5 => "59d2490d7bf73a6c8a80d9a790f17184",
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,40 @@
1
+ # Kickstart file automatically generated by anaconda.
2
+
3
+ install
4
+ url --url=http://mirrors.cat.pdx.edu/fedora/linux/releases/14/Fedora/i386/os/
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
+ repo --name="Fedora 14 - i386" --baseurl=http://mirrors.xmission.com/fedora/releases/14/Everything/i386/os/ --cost=1000
26
+ repo --name="Fedora 14 - i386 - Updates" --baseurl=http://mirror.pnl.gov/fedora/linux/updates/14/i386/ --cost=1000
27
+ services --enabled network
28
+ reboot
29
+
30
+ %packages
31
+ @core
32
+ @online-docs
33
+ %end
34
+
35
+ %post
36
+ /usr/sbin/groupadd vagrant
37
+ /usr/sbin/useradd vagrant -g vagrant -G wheel
38
+ echo "vagrant"|passwd --stdin vagrant
39
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
40
+ %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