veewee 0.5.0.alpha1 → 0.5.0.alpha2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +8 -8
  2. data/Gemfile +1 -1
  3. data/lib/veewee/provider/core/helper/iso.rb +9 -5
  4. data/lib/veewee/version.rb +1 -1
  5. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/base.sh +0 -0
  6. data/templates/CentOS-5.10/centos_32_dvd.yml +5 -0
  7. data/templates/CentOS-5.10/centos_32_net.yml +5 -0
  8. data/templates/CentOS-5.10/centos_64_dvd.yml +5 -0
  9. data/templates/CentOS-5.10/centos_64_net.yml +5 -0
  10. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/chef.sh +0 -0
  11. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/cleanup.sh +0 -0
  12. data/templates/CentOS-5.10/definition.rb +5 -0
  13. data/templates/CentOS-5.10/definition.yml +35 -0
  14. data/templates/{CentOS-5.10-x86_64-netboot → CentOS-5.10}/ks.cfg +6 -0
  15. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/puppet.sh +0 -0
  16. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/ruby.sh +0 -0
  17. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/vagrant.sh +0 -0
  18. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/virtualbox.sh +0 -0
  19. data/templates/{CentOS-5.10-i386-netboot → CentOS-5.10}/zerodisk.sh +0 -0
  20. data/templates/Debian-5.0.10-amd64-netboot/base.sh +1 -1
  21. data/templates/Debian-5.0.10-amd64-netboot/vagrant.sh +1 -1
  22. data/templates/Debian-5.0.10-i386-netboot/base.sh +1 -1
  23. data/templates/Debian-5.0.10-i386-netboot/vagrant.sh +1 -1
  24. data/templates/Debian-5.0.8-amd64-netboot/base.sh +1 -1
  25. data/templates/Debian-5.0.8-amd64-netboot/vagrant.sh +1 -1
  26. data/templates/Debian-5.0.8-i386-netboot/base.sh +1 -1
  27. data/templates/Debian-5.0.8-i386-netboot/vagrant.sh +1 -1
  28. data/templates/Debian-6.0.6-amd64-netboot/base.sh +1 -1
  29. data/templates/Debian-7.0-amd64-netboot/base.sh +1 -1
  30. data/templates/Debian-7.0-i386-netboot/base.sh +1 -1
  31. data/templates/Debian-7.1.0-amd64-netboot/base.sh +1 -1
  32. data/templates/Debian-7.1.0-i386-netboot/base.sh +1 -1
  33. data/templates/Debian-7.2.0-amd64-netboot/base.sh +1 -1
  34. data/templates/Debian-7.2.0-i386-netboot/base.sh +1 -1
  35. data/templates/Debian-7.3.0-amd64-netboot/base.sh +1 -1
  36. data/templates/Debian-7.3.0-i386-netboot/base.sh +1 -1
  37. data/templates/Debian-7.4.0-amd64-netboot/base.sh +1 -1
  38. data/templates/Debian-7.4.0-i386-netboot/base.sh +1 -1
  39. data/templates/Debian-7.5.0-amd64-netboot/base.sh +1 -1
  40. data/templates/Debian-7.5.0-i386-netboot/base.sh +1 -1
  41. data/templates/Debian-7.6.0-amd64-netboot/base.sh +1 -1
  42. data/templates/Debian-7.6.0-i386-netboot/base.sh +1 -1
  43. data/templates/Debian-7.7.0-amd64-netboot/base.sh +25 -0
  44. data/templates/Debian-7.7.0-amd64-netboot/chef.sh +49 -0
  45. data/templates/Debian-7.7.0-amd64-netboot/cleanup.sh +18 -0
  46. data/templates/Debian-7.7.0-amd64-netboot/definition.rb +52 -0
  47. data/templates/Debian-7.7.0-amd64-netboot/preseed.cfg +313 -0
  48. data/templates/Debian-7.7.0-amd64-netboot/puppet.sh +7 -0
  49. data/templates/Debian-7.7.0-amd64-netboot/ruby.sh +10 -0
  50. data/templates/Debian-7.7.0-amd64-netboot/vagrant.sh +21 -0
  51. data/templates/Debian-7.7.0-amd64-netboot/virtualbox.sh +37 -0
  52. data/templates/Debian-7.7.0-amd64-netboot/vmfusion.sh +7 -0
  53. data/templates/{CentOS-5.10-i386 → Debian-7.7.0-amd64-netboot}/zerodisk.sh +0 -1
  54. data/templates/kali-1.0.9a-amd64/base.sh +1 -1
  55. data/templates/ubuntu-12.04.2-server-amd64/base.sh +1 -1
  56. data/templates/ubuntu-12.04.3-server-amd64-parallels/base.sh +1 -1
  57. data/templates/ubuntu-12.04.3-server-amd64/base.sh +1 -1
  58. data/test/build_realtest.rb +3 -3
  59. data/test/definitions/erb_definition/autorun0.erb +8 -0
  60. data/test/definitions/erb_definition/definition.rb +24 -0
  61. data/test/veewee/provider/core/helper/web_test.rb +30 -0
  62. metadata +31 -42
  63. data/templates/CentOS-5.10-i386-netboot/definition.rb +0 -42
  64. data/templates/CentOS-5.10-i386-netboot/ks.cfg +0 -27
  65. data/templates/CentOS-5.10-i386/base.sh +0 -8
  66. data/templates/CentOS-5.10-i386/chef.sh +0 -3
  67. data/templates/CentOS-5.10-i386/cleanup.sh +0 -11
  68. data/templates/CentOS-5.10-i386/definition.rb +0 -42
  69. data/templates/CentOS-5.10-i386/ks.cfg +0 -27
  70. data/templates/CentOS-5.10-i386/puppet.sh +0 -17
  71. data/templates/CentOS-5.10-i386/ruby.sh +0 -41
  72. data/templates/CentOS-5.10-i386/vagrant.sh +0 -9
  73. data/templates/CentOS-5.10-i386/virtualbox.sh +0 -9
  74. data/templates/CentOS-5.10-x86_64-netboot/base.sh +0 -8
  75. data/templates/CentOS-5.10-x86_64-netboot/chef.sh +0 -3
  76. data/templates/CentOS-5.10-x86_64-netboot/cleanup.sh +0 -11
  77. data/templates/CentOS-5.10-x86_64-netboot/definition.rb +0 -42
  78. data/templates/CentOS-5.10-x86_64-netboot/puppet.sh +0 -17
  79. data/templates/CentOS-5.10-x86_64-netboot/ruby.sh +0 -41
  80. data/templates/CentOS-5.10-x86_64-netboot/vagrant.sh +0 -9
  81. data/templates/CentOS-5.10-x86_64-netboot/virtualbox.sh +0 -9
  82. data/templates/CentOS-5.10-x86_64-netboot/zerodisk.sh +0 -4
  83. data/templates/CentOS-5.10-x86_64/base.sh +0 -8
  84. data/templates/CentOS-5.10-x86_64/chef.sh +0 -3
  85. data/templates/CentOS-5.10-x86_64/cleanup.sh +0 -11
  86. data/templates/CentOS-5.10-x86_64/definition.rb +0 -42
  87. data/templates/CentOS-5.10-x86_64/ks.cfg +0 -27
  88. data/templates/CentOS-5.10-x86_64/puppet.sh +0 -17
  89. data/templates/CentOS-5.10-x86_64/ruby.sh +0 -41
  90. data/templates/CentOS-5.10-x86_64/vagrant.sh +0 -9
  91. data/templates/CentOS-5.10-x86_64/virtualbox.sh +0 -9
  92. data/templates/CentOS-5.10-x86_64/zerodisk.sh +0 -4
@@ -1,9 +0,0 @@
1
- # Vagrant configuration
2
-
3
- date > /etc/vagrant_box_build_time
4
-
5
- # Installing vagrant keys
6
- mkdir -pm 700 /home/vagrant/.ssh
7
- wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
8
- chmod 0600 /home/vagrant/.ssh/authorized_keys
9
- chown -R vagrant /home/vagrant/.ssh
@@ -1,9 +0,0 @@
1
- # Installing VirtualBox Guest Additions
2
-
3
- VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
4
- cd /tmp
5
- mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
6
- sh /mnt/VBoxLinuxAdditions.run
7
- umount /mnt
8
- rm -rf /home/vagrant/VBoxGuestAdditions_*.iso
9
-
@@ -1,8 +0,0 @@
1
- # Base install
2
-
3
- sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
4
- sed -i "s/^\(.*env_keep = \"\)/\1PATH /" /etc/sudoers
5
-
6
- yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget dkms bzip2
7
-
8
- yum -y erase gtk2 libX11 hicolor-icon-theme freetype bitstream-vera-fonts
@@ -1,3 +0,0 @@
1
- # Install Chef
2
-
3
- curl -L https://www.opscode.com/chef/install.sh | sudo bash
@@ -1,11 +0,0 @@
1
- # Clean up
2
-
3
- yum -y clean all
4
- rm -rf /etc/yum.repos.d/puppetlabs.repo
5
- rm -rf VBoxGuestAdditions_*.iso
6
-
7
- # Remove mac address from network configuration
8
- sed -i /HWADDR/d /etc/sysconfig/network-scripts/ifcfg-eth0
9
-
10
- # Remove DHCP leases
11
- rm /var/lib/dhclient/*.leases
@@ -1,42 +0,0 @@
1
- Veewee::Session.declare({
2
- :cpu_count => '1',
3
- :memory_size=> '384',
4
- :disk_size => '10140',
5
- :disk_format => 'VDI',
6
- :hostiocache => 'on',
7
- :virtualbox => {
8
- :vm_options => [
9
- "pae" => "on",
10
- "ioapic" => "on",
11
- ],
12
- },
13
- :os_type_id => 'RedHat_64',
14
- :iso_file => "CentOS-5.10-x86_64-netinstall.iso",
15
- :iso_src => "http://mirrors.kernel.org/centos/5.10/isos/x86_64/CentOS-5.10-x86_64-netinstall.iso",
16
- :iso_md5 => "e09e44f04f0a4b97b04935e0ba88833f",
17
- :iso_download_timeout => 1000,
18
- :boot_wait => "10",
19
- :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
20
- :kickstart_port => "7122",
21
- :kickstart_timeout => 300,
22
- :kickstart_file => "ks.cfg",
23
- :ssh_login_timeout => "10000",
24
- :ssh_user => "vagrant",
25
- :ssh_password => "vagrant",
26
- :ssh_key => "",
27
- :ssh_host_port => "7222",
28
- :ssh_guest_port => "22",
29
- :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
30
- :shutdown_cmd => "/sbin/halt -h -p",
31
- :postinstall_files => [
32
- "base.sh",
33
- "ruby.sh",
34
- "chef.sh",
35
- "puppet.sh",
36
- "vagrant.sh",
37
- "virtualbox.sh",
38
- "cleanup.sh",
39
- "zerodisk.sh"
40
- ],
41
- :postinstall_timeout => 10000
42
- })
@@ -1,17 +0,0 @@
1
- # Install Puppet
2
-
3
- cat > /etc/yum.repos.d/puppetlabs.repo << EOM
4
- [puppetlabs-dependencies]
5
- name=puppetlabdsdependencies
6
- baseurl=http://yum.puppetlabs.com/el/5/dependencies/\$basearch
7
- enabled=1
8
- gpgcheck=0
9
-
10
- [puppetlabs]
11
- name=puppetlabs
12
- baseurl=http://yum.puppetlabs.com/el/5/products/\$basearch
13
- enabled=1
14
- gpgcheck=0
15
- EOM
16
-
17
- yum -y install puppet facter ruby-shadow
@@ -1,41 +0,0 @@
1
- # Install Ruby from sources
2
-
3
- # add epel repo for Ruby compile time dependencies
4
- cat > /etc/yum.repos.d/epel.repo << EOM
5
- [epel]
6
- name=epel
7
- baseurl=http://download.fedoraproject.org/pub/epel/5/\$basearch
8
- enabled=1
9
- gpgcheck=0
10
- includepkgs=libffi*
11
- EOM
12
-
13
- # Install required library packages
14
- yum install -y gdbm-devel libffi-devel ncurses-devel
15
-
16
- # Install LibYAML (prerequisite for Ruby)
17
- YAML_VERSION=0.1.4
18
- wget http://pyyaml.org/download/libyaml/yaml-$YAML_VERSION.tar.gz
19
- tar xzvf yaml-$YAML_VERSION.tar.gz
20
- cd yaml-$YAML_VERSION
21
- ./configure --prefix=/opt
22
- make && make install
23
- cd ..
24
- rm -rf yaml-$YAML_VERSION
25
- rm -f yaml-$YAML_VERSION.tar.gz
26
-
27
- # Install Ruby
28
- RUBY_VERSION=1.9.3-p484
29
- wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$RUBY_VERSION.tar.gz
30
- tar xvzf ruby-$RUBY_VERSION.tar.gz
31
- cd ruby-$RUBY_VERSION
32
- # Fix: BSD compatibility arguments not supported by the installed version of sed
33
- sed -i "s/sed -E/sed -e/" configure
34
- ./configure --prefix=/opt/ruby --disable-install-doc --with-opt-dir=/opt
35
- make && make install
36
- cd ..
37
- rm -rf ruby-$RUBY_VERSION
38
- rm -f ruby-$RUBY_VERSION.tar.gz
39
-
40
- # remove epel repo
41
- rm -rf /etc/yum.repos.d/epel.repo
@@ -1,9 +0,0 @@
1
- # Vagrant configuration
2
-
3
- date > /etc/vagrant_box_build_time
4
-
5
- # Installing vagrant keys
6
- mkdir -pm 700 /home/vagrant/.ssh
7
- wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
8
- chmod 0600 /home/vagrant/.ssh/authorized_keys
9
- chown -R vagrant /home/vagrant/.ssh
@@ -1,9 +0,0 @@
1
- # Installing VirtualBox Guest Additions
2
-
3
- VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
4
- cd /tmp
5
- mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
6
- sh /mnt/VBoxLinuxAdditions.run
7
- umount /mnt
8
- rm -rf /home/vagrant/VBoxGuestAdditions_*.iso
9
-
@@ -1,4 +0,0 @@
1
- # Zero out the free space to save space in the final image:
2
-
3
- dd if=/dev/zero of=/EMPTY bs=1M
4
- rm -f /EMPTY
@@ -1,8 +0,0 @@
1
- # Base install
2
-
3
- sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers
4
- sed -i "s/^\(.*env_keep = \"\)/\1PATH /" /etc/sudoers
5
-
6
- yum -y install gcc make gcc-c++ kernel-devel-`uname -r` zlib-devel openssl-devel readline-devel sqlite-devel perl wget dkms bzip2
7
-
8
- yum -y erase gtk2 libX11 hicolor-icon-theme freetype bitstream-vera-fonts
@@ -1,3 +0,0 @@
1
- # Install Chef
2
-
3
- curl -L https://www.opscode.com/chef/install.sh | sudo bash
@@ -1,11 +0,0 @@
1
- # Clean up
2
-
3
- yum -y clean all
4
- rm -rf /etc/yum.repos.d/puppetlabs.repo
5
- rm -rf VBoxGuestAdditions_*.iso
6
-
7
- # Remove mac address from network configuration
8
- sed -i /HWADDR/d /etc/sysconfig/network-scripts/ifcfg-eth0
9
-
10
- # Remove DHCP leases
11
- rm /var/lib/dhclient/*.leases
@@ -1,42 +0,0 @@
1
- Veewee::Session.declare({
2
- :cpu_count => '1',
3
- :memory_size=> '384',
4
- :disk_size => '10140',
5
- :disk_format => 'VDI',
6
- :hostiocache => 'on',
7
- :virtualbox => {
8
- :vm_options => [
9
- "pae" => "on",
10
- "ioapic" => "on",
11
- ],
12
- },
13
- :os_type_id => 'RedHat_64',
14
- :iso_file => "CentOS-5.10-x86_64-bin-DVD-1of2.iso",
15
- :iso_src => "http://mirrors.kernel.org/centos/5.10/isos/x86_64/CentOS-5.10-x86_64-bin-DVD-1of2.iso",
16
- :iso_md5 => "715f7355074c00530cd6ee1d9f43cc3f",
17
- :iso_download_timeout => 1000,
18
- :boot_wait => "10",
19
- :boot_cmd_sequence => [ 'linux text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
20
- :kickstart_port => "7122",
21
- :kickstart_timeout => 300,
22
- :kickstart_file => "ks.cfg",
23
- :ssh_login_timeout => "10000",
24
- :ssh_user => "vagrant",
25
- :ssh_password => "vagrant",
26
- :ssh_key => "",
27
- :ssh_host_port => "7222",
28
- :ssh_guest_port => "22",
29
- :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
30
- :shutdown_cmd => "/sbin/halt -h -p",
31
- :postinstall_files => [
32
- "base.sh",
33
- "ruby.sh",
34
- "chef.sh",
35
- "puppet.sh",
36
- "vagrant.sh",
37
- "virtualbox.sh",
38
- "cleanup.sh",
39
- "zerodisk.sh"
40
- ],
41
- :postinstall_timeout => 10000
42
- })
@@ -1,27 +0,0 @@
1
- install
2
- cdrom
3
- lang en_US.UTF-8
4
- langsupport --default=en_US.UTF-8 en_US.UTF-8
5
- keyboard us
6
- text
7
- skipx
8
- zerombr
9
- network --device eth0 --bootproto dhcp
10
- rootpw vagrant
11
- firewall --enabled --trust eth0 --ssh
12
- selinux --disabled
13
- authconfig --enableshadow --enablemd5
14
- timezone America/New_York
15
- bootloader --location=mbr
16
- clearpart --all --initlabel
17
- autopart
18
- reboot
19
-
20
- %packages
21
- @ core
22
- %post
23
- /usr/sbin/groupadd vagrant
24
- /usr/sbin/useradd vagrant -g vagrant -G wheel
25
- echo "vagrant"|passwd --stdin vagrant
26
- echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
27
- %end
@@ -1,17 +0,0 @@
1
- # Install Puppet
2
-
3
- cat > /etc/yum.repos.d/puppetlabs.repo << EOM
4
- [puppetlabs-dependencies]
5
- name=puppetlabdsdependencies
6
- baseurl=http://yum.puppetlabs.com/el/5/dependencies/\$basearch
7
- enabled=1
8
- gpgcheck=0
9
-
10
- [puppetlabs]
11
- name=puppetlabs
12
- baseurl=http://yum.puppetlabs.com/el/5/products/\$basearch
13
- enabled=1
14
- gpgcheck=0
15
- EOM
16
-
17
- yum -y install puppet facter ruby-shadow
@@ -1,41 +0,0 @@
1
- # Install Ruby from sources
2
-
3
- # add epel repo for Ruby compile time dependencies
4
- cat > /etc/yum.repos.d/epel.repo << EOM
5
- [epel]
6
- name=epel
7
- baseurl=http://download.fedoraproject.org/pub/epel/5/\$basearch
8
- enabled=1
9
- gpgcheck=0
10
- includepkgs=libffi*
11
- EOM
12
-
13
- # Install required library packages
14
- yum install -y gdbm-devel libffi-devel ncurses-devel
15
-
16
- # Install LibYAML (prerequisite for Ruby)
17
- YAML_VERSION=0.1.4
18
- wget http://pyyaml.org/download/libyaml/yaml-$YAML_VERSION.tar.gz
19
- tar xzvf yaml-$YAML_VERSION.tar.gz
20
- cd yaml-$YAML_VERSION
21
- ./configure --prefix=/opt
22
- make && make install
23
- cd ..
24
- rm -rf yaml-$YAML_VERSION
25
- rm -f yaml-$YAML_VERSION.tar.gz
26
-
27
- # Install Ruby
28
- RUBY_VERSION=1.9.3-p484
29
- wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-$RUBY_VERSION.tar.gz
30
- tar xvzf ruby-$RUBY_VERSION.tar.gz
31
- cd ruby-$RUBY_VERSION
32
- # Fix: BSD compatibility arguments not supported by the installed version of sed
33
- sed -i "s/sed -E/sed -e/" configure
34
- ./configure --prefix=/opt/ruby --disable-install-doc --with-opt-dir=/opt
35
- make && make install
36
- cd ..
37
- rm -rf ruby-$RUBY_VERSION
38
- rm -f ruby-$RUBY_VERSION.tar.gz
39
-
40
- # remove epel repo
41
- rm -rf /etc/yum.repos.d/epel.repo
@@ -1,9 +0,0 @@
1
- # Vagrant configuration
2
-
3
- date > /etc/vagrant_box_build_time
4
-
5
- # Installing vagrant keys
6
- mkdir -pm 700 /home/vagrant/.ssh
7
- wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
8
- chmod 0600 /home/vagrant/.ssh/authorized_keys
9
- chown -R vagrant /home/vagrant/.ssh
@@ -1,9 +0,0 @@
1
- # Installing VirtualBox Guest Additions
2
-
3
- VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
4
- cd /tmp
5
- mount -o loop /home/vagrant/VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
6
- sh /mnt/VBoxLinuxAdditions.run
7
- umount /mnt
8
- rm -rf /home/vagrant/VBoxGuestAdditions_*.iso
9
-
@@ -1,4 +0,0 @@
1
- # Zero out the free space to save space in the final image:
2
-
3
- dd if=/dev/zero of=/EMPTY bs=1M
4
- rm -f /EMPTY