veewee 0.2.0 → 0.2.1

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 (137) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +5 -1
  3. data/Gemfile.lock +29 -26
  4. data/README.md +51 -26
  5. data/Rakefile +41 -36
  6. data/lib/veewee/scancode.rb +1 -1
  7. data/lib/veewee/session.rb +156 -159
  8. data/lib/veewee/version.rb +1 -1
  9. data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
  10. data/templates/CentOS-5.5-x86_64-netboot/definition.rb +16 -0
  11. data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +46 -0
  12. data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +60 -0
  13. data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
  14. data/templates/CentOS-5.6-i386-netboot/ks.cfg +2 -2
  15. data/templates/CentOS-5.6-i386-netboot/postinstall.sh +1 -1
  16. data/templates/CentOS-5.6-i386/postinstall.sh +1 -1
  17. data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
  18. data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +1 -1
  19. data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +3 -2
  20. data/templates/CentOS-5.7-i386-netboot/definition.rb +16 -0
  21. data/templates/CentOS-5.7-i386-netboot/ks.cfg +45 -0
  22. data/templates/CentOS-5.7-i386-netboot/postinstall.sh +53 -0
  23. data/templates/CentOS-5.7-x86_64-netboot/definition.rb +16 -0
  24. data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +45 -0
  25. data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +60 -0
  26. data/templates/CentOS-6.0-i386-netboot/ks.cfg +1 -1
  27. data/templates/CentOS-6.0-i386-netboot/postinstall.sh +1 -1
  28. data/templates/CentOS-6.0-i386/postinstall.sh +2 -2
  29. data/templates/CentOS-6.0-x86_64-minimal/definition.rb +17 -0
  30. data/templates/CentOS-6.0-x86_64-minimal/ks.cfg +37 -0
  31. data/templates/CentOS-6.0-x86_64-minimal/postinstall.sh +50 -0
  32. data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +1 -1
  33. data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +1 -1
  34. data/templates/CentOS-6.0-x86_64/postinstall.sh +2 -2
  35. data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +1 -1
  36. data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +1 -1
  37. data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/definition.rb +3 -3
  38. data/templates/Debian-6.0.3-amd64-netboot/postinstall.sh +80 -0
  39. data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/preseed.cfg +0 -0
  40. data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/definition.rb +3 -3
  41. data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/postinstall.sh +2 -2
  42. data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/preseed.cfg +0 -0
  43. data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
  44. data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
  45. data/templates/Fedora-14-amd64/definition.rb +1 -1
  46. data/templates/Fedora-14-amd64/postinstall.sh +1 -1
  47. data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
  48. data/templates/Fedora-14-i386/postinstall.sh +1 -1
  49. data/templates/Fedora-15-x86_64-netboot/definition.rb +29 -0
  50. data/templates/Fedora-15-x86_64-netboot/ks.cfg +64 -0
  51. data/templates/Fedora-15-x86_64-netboot/postinstall.sh +33 -0
  52. data/templates/Fedora-15-x86_64/definition.rb +17 -0
  53. data/templates/Fedora-15-x86_64/ks.cfg +64 -0
  54. data/templates/Fedora-15-x86_64/postinstall.sh +33 -0
  55. data/templates/archlinux-i386-netboot/aif.cfg +28 -0
  56. data/templates/archlinux-i386-netboot/definition.rb +26 -0
  57. data/templates/archlinux-i386-netboot/postinstall.sh +75 -0
  58. data/templates/archlinux-i386-netboot/postinstall2.sh +30 -0
  59. data/templates/archlinux-i386/postinstall.sh +12 -1
  60. data/templates/archlinux-x86_64-netboot/aif.cfg +28 -0
  61. data/templates/archlinux-x86_64-netboot/definition.rb +26 -0
  62. data/templates/archlinux-x86_64-netboot/postinstall.sh +75 -0
  63. data/templates/archlinux-x86_64-netboot/postinstall2.sh +30 -0
  64. data/templates/archlinux-x86_64/aif.cfg +1 -1
  65. data/templates/archlinux-x86_64/definition.rb +1 -1
  66. data/templates/archlinux-x86_64/postinstall.sh +16 -21
  67. data/templates/archlinux-x86_64/postinstall2.sh +38 -0
  68. data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +2 -4
  69. data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +1 -1
  70. data/templates/freebsd-8.2-pcbsd-i386/definition.rb +3 -2
  71. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +1 -1
  72. data/templates/gentoo-latest-i386-experimental/definition.rb +4 -4
  73. data/templates/gentoo-latest-i386-experimental/postinstall.sh +1 -1
  74. data/templates/openSUSE-11.4-DVD-i586/autoinst_de.xml +1284 -0
  75. data/templates/openSUSE-11.4-DVD-i586/autoinst_en.xml +1284 -0
  76. data/templates/openSUSE-11.4-DVD-i586/definition.rb +28 -0
  77. data/templates/openSUSE-11.4-DVD-i586/postinstall.sh +43 -0
  78. data/templates/openSUSE-11.4-DVD-x86_64/autoinst_de.xml +1459 -0
  79. data/templates/openSUSE-11.4-DVD-x86_64/autoinst_en.xml +1459 -0
  80. data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +28 -0
  81. data/templates/openSUSE-11.4-DVD-x86_64/postinstall.sh +43 -0
  82. data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +1278 -0
  83. data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +1278 -0
  84. data/templates/openSUSE-11.4-NET-i586/definition.rb +28 -0
  85. data/templates/openSUSE-11.4-NET-i586/postinstall.sh +43 -0
  86. data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +1453 -0
  87. data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +1453 -0
  88. data/templates/openSUSE-11.4-NET-x86_64/definition.rb +28 -0
  89. data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +43 -0
  90. data/templates/openindiana-148-ai-x86/postinstall.sh +1 -1
  91. data/templates/opensuse-11.4-i386-experimental/postinstall.sh +1 -1
  92. data/templates/scientificlinux-6.1-i386-netboot/definition.rb +16 -0
  93. data/templates/scientificlinux-6.1-i386-netboot/ks.cfg +53 -0
  94. data/templates/scientificlinux-6.1-i386-netboot/postinstall.sh +30 -0
  95. data/templates/scientificlinux-6.1-x86_64-netboot/definition.rb +16 -0
  96. data/templates/scientificlinux-6.1-x86_64-netboot/ks.cfg +53 -0
  97. data/templates/scientificlinux-6.1-x86_64-netboot/postinstall.sh +30 -0
  98. data/templates/solaris-11-express-i386/postinstall.sh +1 -1
  99. data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +1 -1
  100. data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +1 -1
  101. data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/definition.rb +4 -4
  102. data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/postinstall.sh +1 -1
  103. data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/preseed.cfg +0 -0
  104. data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/definition.rb +3 -6
  105. data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/postinstall.sh +1 -1
  106. data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/preseed.cfg +0 -0
  107. data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/definition.rb +4 -4
  108. data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/postinstall.sh +1 -1
  109. data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/preseed.cfg +0 -0
  110. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +1 -1
  111. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +1 -1
  112. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +1 -1
  113. data/templates/ubuntu-10.10-server-i386/postinstall.sh +1 -1
  114. data/templates/ubuntu-11.04-server-amd64/postinstall.sh +7 -1
  115. data/templates/ubuntu-11.04-server-i386/definition.rb +1 -1
  116. data/templates/ubuntu-11.04-server-i386/postinstall.sh +1 -1
  117. data/templates/ubuntu-11.10-server-amd64-ishaya/definition.rb +24 -0
  118. data/templates/{Debian-6.0.2-amd64-netboot → ubuntu-11.10-server-amd64-ishaya}/postinstall.sh +42 -23
  119. data/templates/ubuntu-11.10-server-amd64-ishaya/preseed.cfg +87 -0
  120. data/templates/ubuntu-11.10-server-amd64-ruby192/definition.rb +24 -0
  121. data/templates/ubuntu-11.10-server-amd64-ruby192/postinstall.sh +90 -0
  122. data/templates/ubuntu-11.10-server-amd64-ruby192/preseed.cfg +87 -0
  123. data/templates/ubuntu-11.10-server-amd64/definition.rb +35 -0
  124. data/templates/ubuntu-11.10-server-amd64/postinstall.sh +88 -0
  125. data/templates/ubuntu-11.10-server-amd64/preseed.cfg +87 -0
  126. data/templates/ubuntu-11.10-server-i386/definition.rb +35 -0
  127. data/templates/ubuntu-11.10-server-i386/postinstall.sh +88 -0
  128. data/templates/ubuntu-11.10-server-i386/preseed.cfg +87 -0
  129. data/templates/ubuntu-8.04.4-server-amd64/definition.rb +1 -0
  130. data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +8 -7
  131. data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +0 -1
  132. data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +25 -3
  133. data/templates/windows-2008R2-amd64/postinstall.sh +1 -1
  134. data/validation/features/steps/ssh_steps.rb +1 -1
  135. data/validation/vagrant.feature +35 -35
  136. data/veewee.gemspec +6 -6
  137. metadata +109 -103
@@ -0,0 +1,28 @@
1
+ Veewee::Session.declare({
2
+ :os_type_id => 'OpenSUSE_64', :cpu_count => '1', :memory_size=> '512',
3
+ :disk_size => '20480', :disk_format => 'VDI', :hostiocache => 'off',
4
+ :iso_file => "openSUSE-11.4-NET-x86_64.iso",
5
+ :iso_src => "http://download.opensuse.org/distribution/11.4/iso/openSUSE-11.4-NET-x86_64.iso",
6
+ #:iso_src => "http://ftp.belnet.be/mirror/ftp.opensuse.org/distribution/11.4/iso/openSUSE-11.4-NET-x86_64.iso",
7
+ :iso_md5 => "bb0dc0124d5d2e3292ec96717132b136",
8
+ :iso_download_timeout => "1000",
9
+ :boot_wait => "10", :boot_cmd_sequence => [
10
+ '<Esc><Enter>',
11
+ 'linux netdevice=eth0 netsetup=dhcp',
12
+ ' install=http://download.opensuse.org/distribution/11.4/repo/oss/ insecure=1',
13
+ ' lang=en_US autoyast=http://%IP%:%PORT%/autoinst_en.xml',
14
+ # disable prev line and enable next line to install with german settings
15
+ #' lang=de_DE autoyast=http://%IP%:%PORT%/autoinst_de.xml',
16
+ ' textmode=1',
17
+ '<Enter>'
18
+ ],
19
+ :kickstart_port => "7122", :kickstart_timeout => "10000",
20
+ :kickstart_file => ["autoinst_en.xml", "autoinst_en.xml"],
21
+ # disable prev line and enable next line to install with german settings
22
+ #:kickstart_file => ["autoinst_de.xml", "autoinst_de.xml"],
23
+ :ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
24
+ :ssh_host_port => "7222", :ssh_guest_port => "22",
25
+ :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
26
+ :shutdown_cmd => "shutdown -P now",
27
+ :postinstall_files => ["postinstall.sh"], :postinstall_timeout => "10000"
28
+ })
@@ -0,0 +1,43 @@
1
+ #
2
+ # postinstall.sh
3
+ #
4
+
5
+ date > /etc/vagrant_box_build_time
6
+
7
+ # install vagrant key
8
+ echo -e "\ninstall vagrant key ..."
9
+ mkdir -m 0700 /home/vagrant/.ssh
10
+ cd /home/vagrant/.ssh
11
+ wget --no-check-certificate -O authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
12
+ chmod 0600 /home/vagrant/.ssh/authorized_keys
13
+ chown -R vagrant.users /home/vagrant/.ssh
14
+
15
+ # update sudoers
16
+ echo -e "\nupdate sudoers ..."
17
+ echo -e "\n# added by veewee/postinstall.sh" >> /etc/sudoers
18
+ echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers
19
+
20
+ # speed-up remote logins
21
+ echo -e "\nspeed-up remote logins ..."
22
+ echo -e "\n# added by veewee/postinstall.sh" >> /etc/ssh/sshd_config
23
+ echo -e "UseDNS no\n" >> /etc/ssh/sshd_config
24
+
25
+ # install chef and puppet
26
+ echo -e "\ninstall chef and puppet ..."
27
+ gem install chef --no-ri --no-rdoc
28
+ gem install puppet --no-ri --no-rdoc
29
+
30
+ # install the virtualbox guest additions
31
+ echo -e "\ninstall the virtualbox guest additions ..."
32
+ zypper --non-interactive remove `rpm -qa virtualbox-guest-*`
33
+ VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
34
+ cd /tmp
35
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
36
+ #wget http://192.168.178.10/VBoxGuestAdditions_$VBOX_VERSION.iso
37
+ mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
38
+ sh /mnt/VBoxLinuxAdditions.run
39
+ umount /mnt
40
+ rm -f VBoxGuestAdditions_$VBOX_VERSION.iso
41
+
42
+ echo -e "\nall done.\n"
43
+ exit
@@ -56,7 +56,7 @@ export PATH=/opt/csw/gcc4/bin:$PATH
56
56
  mkdir /export/home/vagrant/.ssh
57
57
  chmod 700 /export/home/vagrant/.ssh
58
58
  cd /export/home/vagrant/.ssh
59
- /usr/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
59
+ /usr/bin/wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
60
60
  chown -R vagrant /export/home/vagrant/.ssh
61
61
 
62
62
  #Installing the virtualbox guest additions
@@ -31,7 +31,7 @@ zypper --non-interactive install wget
31
31
  mkdir /home/vagrant/.ssh
32
32
  chmod 700 /home/vagrant/.ssh
33
33
  cd /home/vagrant/.ssh
34
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
34
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
35
35
  chown -R vagrant /home/vagrant/.ssh
36
36
 
37
37
  #Installing the virtualbox guest additions
@@ -0,0 +1,16 @@
1
+ Veewee::Session.declare({
2
+ :cpu_count => '1', :memory_size=> '512',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
4
+ :os_type_id => 'RedHat_64',
5
+ :iso_file => "SL-61-i386-2011-07-27-boot.iso",
6
+ :iso_src => "http://mirrors.200p-sf.sonic.net/scientific/6.1/i386/iso/SL-61-i386-2011-07-27-boot.iso",
7
+ :iso_md5 => "d3cd58e67052331c9c3648e3ecd00b13",
8
+ :iso_download_timeout => 1000,
9
+ :boot_wait => "15", :boot_cmd_sequence => [ '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<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,53 @@
1
+ install
2
+ url --url=http://mirrors.200p-sf.sonic.net/scientific/6.1/i386/os/
3
+ lang en_US.UTF-8
4
+ keyboard us
5
+ network --bootproto dhcp
6
+ rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
7
+ firewall --enabled --trust eth0 --ssh
8
+ authconfig --enableshadow --enablemd5
9
+ selinux --disabled
10
+ timezone UTC
11
+ bootloader --location=mbr
12
+
13
+ text
14
+ skipx
15
+ zerombr
16
+
17
+ clearpart --all --initlabel
18
+ autopart
19
+
20
+ auth --useshadow --enablemd5
21
+ firstboot --disabled
22
+ reboot
23
+
24
+ repo --name=epel --baseurl=http://download.fedora.redhat.com/pub/epel/6/i386/ --includepkgs='ruby-augeas,ruby-shadow'
25
+ repo --name=puppetlabs --baseurl=http://yum.puppetlabs.com/el/6/products/i386/ --includepkgs='puppet,facter'
26
+ repo --name=puppetlabs-dependencies --baseurl=http://yum.puppetlabs.com/el/6/dependencies/i386/
27
+
28
+ %packages
29
+ @ core
30
+ ruby
31
+ ruby-devel
32
+ rubygems
33
+ kernel-devel
34
+ gcc
35
+ gcc-c++
36
+ bzip2
37
+ make
38
+ zlib-devel
39
+ openssl-devel
40
+ readline-devel
41
+ sqlite-devel
42
+ puppet
43
+ facter
44
+
45
+ -ipw2100-firmware
46
+ -ipw2200-firmware
47
+ -ivtv-firmware
48
+
49
+ %post
50
+ /usr/sbin/groupadd vagrant
51
+ /usr/sbin/useradd vagrant -g vagrant -G wheel
52
+ echo "vagrant"|passwd --stdin vagrant
53
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
@@ -0,0 +1,30 @@
1
+ #http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
2
+
3
+ date > /etc/vagrant_box_build_time
4
+
5
+ yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
6
+ yum -y clean all
7
+
8
+ gem install --no-ri --no-rdoc chef
9
+
10
+ # Installing vagrant keys
11
+ mkdir /home/vagrant/.ssh
12
+ chmod 700 /home/vagrant/.ssh
13
+ cd /home/vagrant/.ssh
14
+ wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
15
+ chown -R vagrant /home/vagrant/.ssh
16
+
17
+ # Installing the virtualbox guest additions
18
+ VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
19
+ cd /tmp
20
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
21
+ mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
22
+ sh /mnt/VBoxLinuxAdditions.run
23
+ umount /mnt
24
+ rm VBoxGuestAdditions_$VBOX_VERSION.iso
25
+
26
+ sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
27
+
28
+ dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
29
+
30
+ exit
@@ -0,0 +1,16 @@
1
+ Veewee::Session.declare({
2
+ :cpu_count => '1', :memory_size=> '512',
3
+ :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off', :ioapic => 'on', :pae => 'on',
4
+ :os_type_id => 'RedHat_64',
5
+ :iso_file => "SL-61-x86_64-2011-07-27-boot.iso",
6
+ :iso_src => "http://mirrors.200p-sf.sonic.net/scientific/6.1/x86_64/iso/SL-61-x86_64-2011-07-27-boot.iso",
7
+ :iso_md5 => "863841b65b5b42f7ad0e735bb9aa669d",
8
+ :iso_download_timeout => 1000,
9
+ :boot_wait => "15", :boot_cmd_sequence => [ '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<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,53 @@
1
+ install
2
+ url --url=http://mirrors.200p-sf.sonic.net/scientific/6.1/x86_64/os/
3
+ lang en_US.UTF-8
4
+ keyboard us
5
+ network --bootproto dhcp
6
+ rootpw --iscrypted $1$damlkd,f$UC/u5pUts5QiU3ow.CSso/
7
+ firewall --enabled --trust eth0 --ssh
8
+ authconfig --enableshadow --enablemd5
9
+ selinux --disabled
10
+ timezone UTC
11
+ bootloader --location=mbr
12
+
13
+ text
14
+ skipx
15
+ zerombr
16
+
17
+ clearpart --all --initlabel
18
+ autopart
19
+
20
+ auth --useshadow --enablemd5
21
+ firstboot --disabled
22
+ reboot
23
+
24
+ repo --name=epel --baseurl=http://download.fedora.redhat.com/pub/epel/6/x86_64/ --includepkgs='ruby-augeas,ruby-shadow'
25
+ repo --name=puppetlabs --baseurl=http://yum.puppetlabs.com/el/6/products/x86_64/ --includepkgs='puppet,facter'
26
+ repo --name=puppetlabs-dependencies --baseurl=http://yum.puppetlabs.com/el/6/dependencies/x86_64/
27
+
28
+ %packages
29
+ @ core
30
+ ruby
31
+ ruby-devel
32
+ rubygems
33
+ kernel-devel
34
+ gcc
35
+ gcc-c++
36
+ bzip2
37
+ make
38
+ zlib-devel
39
+ openssl-devel
40
+ readline-devel
41
+ sqlite-devel
42
+ puppet
43
+ facter
44
+
45
+ -ipw2100-firmware
46
+ -ipw2200-firmware
47
+ -ivtv-firmware
48
+
49
+ %post
50
+ /usr/sbin/groupadd vagrant
51
+ /usr/sbin/useradd vagrant -g vagrant -G wheel
52
+ echo "vagrant"|passwd --stdin vagrant
53
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
@@ -0,0 +1,30 @@
1
+ #http://chrisadams.me.uk/2010/05/10/setting-up-a-centos-base-box-for-development-and-testing-with-vagrant/
2
+
3
+ date > /etc/vagrant_box_build_time
4
+
5
+ yum -y erase wireless-tools gtk2 libX11 hicolor-icon-theme avahi freetype bitstream-vera-fonts
6
+ yum -y clean all
7
+
8
+ gem install --no-ri --no-rdoc chef
9
+
10
+ # Installing vagrant keys
11
+ mkdir /home/vagrant/.ssh
12
+ chmod 700 /home/vagrant/.ssh
13
+ cd /home/vagrant/.ssh
14
+ wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
15
+ chown -R vagrant /home/vagrant/.ssh
16
+
17
+ # Installing the virtualbox guest additions
18
+ VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
19
+ cd /tmp
20
+ wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
21
+ mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
22
+ sh /mnt/VBoxLinuxAdditions.run
23
+ umount /mnt
24
+ rm VBoxGuestAdditions_$VBOX_VERSION.iso
25
+
26
+ sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
27
+
28
+ dd if=/dev/zero of=/tmp/clean || rm /tmp/clean
29
+
30
+ exit
@@ -55,7 +55,7 @@ export PATH=/opt/csw/gcc4/bin:$PATH
55
55
  mkdir /export/home/vagrant/.ssh
56
56
  chmod 700 /export/home/vagrant/.ssh
57
57
  cd /export/home/vagrant/.ssh
58
- /usr/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
58
+ /usr/bin/wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
59
59
  chown -R vagrant /export/home/vagrant/.ssh
60
60
 
61
61
  #Installing the virtualbox guest additions
@@ -51,7 +51,7 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
51
51
  mkdir /home/vagrant/.ssh
52
52
  chmod 700 /home/vagrant/.ssh
53
53
  cd /home/vagrant/.ssh
54
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
54
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
55
55
  chmod 600 /home/vagrant/.ssh/authorized_keys
56
56
  chown -R vagrant /home/vagrant/.ssh
57
57
 
@@ -51,7 +51,7 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
51
51
  mkdir /home/vagrant/.ssh
52
52
  chmod 700 /home/vagrant/.ssh
53
53
  cd /home/vagrant/.ssh
54
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
54
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
55
55
  chmod 600 /home/vagrant/.ssh/authorized_keys
56
56
  chown -R vagrant /home/vagrant/.ssh
57
57
 
@@ -1,7 +1,7 @@
1
1
  require 'digest/md5'
2
2
  CURRENT_DIR = File.dirname(__FILE__)
3
3
  PRESEED_MD5 = "#{Digest::MD5.file("#{CURRENT_DIR}/preseed.cfg").hexdigest}"
4
- #ISO_MD5 = "#{Digest::MD5.file("#{CURRENT_DIR}/../../iso/ubuntu-10.04.2-alternate-amd64.iso").hexdigest}"
4
+ #ISO_MD5 = "#{Digest::MD5.file("#{CURRENT_DIR}/../../iso/ubuntu-10.04.3-alternate-amd64.iso").hexdigest}"
5
5
 
6
6
  Veewee::Session.declare( {
7
7
  :boot_cmd_sequence => [
@@ -34,9 +34,9 @@ Veewee::Session.declare( {
34
34
  :disk_format => 'VMDK',
35
35
  :hostiocache => 'on',
36
36
  :iso_download_timeout => "60",
37
- :iso_file => "ubuntu-10.04.2-alternate-amd64.iso",
38
- :iso_src => "http://releases.ubuntu.com/10.04.2/ubuntu-10.04.2-alternate-amd64.iso",
39
- :iso_md5 => "21929bb7caebcc600d92adb3e95a1229",
37
+ :iso_file => "ubuntu-10.04.3-alternate-amd64.iso",
38
+ :iso_src => "http://releases.ubuntu.com/10.04.3/ubuntu-10.04.3-alternate-amd64.iso",
39
+ :iso_md5 => "e38e5cf4cc02c9a3fa4ecd88832d120c",
40
40
  :kickstart_file => "preseed.cfg",
41
41
  :kickstart_port => "7122",
42
42
  :kickstart_timeout => "60",
@@ -190,7 +190,7 @@ if test ! -d "${DIR_PATH}" ; then
190
190
  fi
191
191
  chmod 700 /home/${VEEWEE_USER}/.ssh
192
192
  cd /home/${VEEWEE_USER}/.ssh
193
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
193
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
194
194
  chmod 0600 /home/${VEEWEE_USER}/.ssh/*
195
195
  chown -R ${VEEWEE_USER} /home/${VEEWEE_USER}/.ssh
196
196
  cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
@@ -1,7 +1,6 @@
1
1
  require 'digest/md5'
2
2
  CURRENT_DIR = File.dirname(__FILE__)
3
3
  PRESEED_MD5 = "#{Digest::MD5.file("#{CURRENT_DIR}/preseed.cfg").hexdigest}"
4
- #ISO_MD5 = "#{Digest::MD5.file("#{CURRENT_DIR}/../../iso/ubuntu-10.04.2-server-amd64.iso").hexdigest}"
5
4
 
6
5
  Veewee::Session.declare( {
7
6
  :boot_cmd_sequence => [
@@ -34,9 +33,9 @@ Veewee::Session.declare( {
34
33
  :disk_format => 'VMDK',
35
34
  :hostiocache => 'on',
36
35
  :iso_download_timeout => "60",
37
- :iso_file => "ubuntu-10.04.2-server-amd64.iso",
38
- :iso_src => "http://releases.ubuntu.com/10.04.2/ubuntu-10.04.2-server-amd64.iso",
39
- :iso_md5 => "b446b36430a29f3dcf0c5eb797197cac",
36
+ :iso_file => "ubuntu-10.04.3-server-amd64.iso",
37
+ :iso_src => "http://releases.ubuntu.com/10.04.3/ubuntu-10.04.3-server-amd64.iso",
38
+ :iso_md5 => "84b43b7bbee85d0af8e11b778c8d1290",
40
39
  :kickstart_file => "preseed.cfg",
41
40
  :kickstart_port => "7122",
42
41
  :kickstart_timeout => "60",
@@ -52,6 +51,4 @@ Veewee::Session.declare( {
52
51
  :ssh_guest_port => "22",
53
52
  :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
54
53
  :shutdown_cmd => "shutdown -h now",
55
- :use_hw_virt_ext => 'off',
56
- :use_pae => 'on'
57
54
  })
@@ -51,7 +51,7 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
51
51
  mkdir /home/vagrant/.ssh
52
52
  chmod 700 /home/vagrant/.ssh
53
53
  cd /home/vagrant/.ssh
54
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
54
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
55
55
  chmod 600 /home/vagrant/.ssh/authorized_keys
56
56
  chown -R vagrant /home/vagrant/.ssh
57
57
 
@@ -1,10 +1,10 @@
1
1
  Veewee::Session.declare({
2
- :cpu_count => '1', :memory_size=> '384',
2
+ :cpu_count => '1', :memory_size=> '384',
3
3
  :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
4
4
  :os_type_id => 'Ubuntu',
5
- :iso_file => "ubuntu-10.04.2-server-i386.iso",
6
- :iso_src => "http://releases.ubuntu.com/10.04.2/ubuntu-10.04.2-server-i386.iso",
7
- :iso_md5 => "9807160b8935289096df8160832e358e",
5
+ :iso_file => "ubuntu-10.04.3-server-i386.iso",
6
+ :iso_src => "http://releases.ubuntu.com/10.04.3/ubuntu-10.04.3-server-i386.iso",
7
+ :iso_md5 => "388104f6225ae676ceab0ba4bd7b5784",
8
8
  :iso_download_timeout => "1000",
9
9
  :boot_wait => "10", :boot_cmd_sequence => [
10
10
  '<Esc><Esc><Enter>',
@@ -51,7 +51,7 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
51
51
  mkdir /home/vagrant/.ssh
52
52
  chmod 700 /home/vagrant/.ssh
53
53
  cd /home/vagrant/.ssh
54
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
54
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
55
55
  chmod 600 /home/vagrant/.ssh/authorized_keys
56
56
  chown -R vagrant /home/vagrant/.ssh
57
57
 
@@ -51,7 +51,7 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
51
51
  mkdir /home/vagrant/.ssh
52
52
  chmod 700 /home/vagrant/.ssh
53
53
  cd /home/vagrant/.ssh
54
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
54
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
55
55
  chmod 600 /home/vagrant/.ssh/authorized_keys
56
56
  chown -R vagrant /home/vagrant/.ssh
57
57
 
@@ -51,7 +51,7 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/vagrantruby.sh
51
51
  mkdir /home/vagrant/.ssh
52
52
  chmod 700 /home/vagrant/.ssh
53
53
  cd /home/vagrant/.ssh
54
- wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
54
+ wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
55
55
  chmod 600 /home/vagrant/.ssh/authorized_keys
56
56
  chown -R vagrant /home/vagrant/.ssh
57
57