veewee 0.4.5.1 → 0.5.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -3
  3. data/.ruby-gemset +1 -0
  4. data/.ruby-version +1 -0
  5. data/doc/basics.md +11 -0
  6. data/lib/veewee/environment.rb +1 -1
  7. data/lib/veewee/provider/core/helper/scancode.rb +11 -7
  8. data/lib/veewee/provider/core/helper/web.rb +60 -60
  9. data/lib/veewee/provider/virtualbox/box/helper/console_type.rb +13 -5
  10. data/lib/veewee/templates.rb +3 -0
  11. data/lib/veewee/version.rb +1 -1
  12. data/templates/archlinux-i386/definition.rb +27 -18
  13. data/templates/archlinux-x86_64/definition.rb +16 -16
  14. data/templates/{openSUSE-11.4-DVD-i586/autoinst_de.xml → openSUSE-11.4/autoinst_32_de.xml} +0 -0
  15. data/templates/{openSUSE-11.4-DVD-i586/autoinst_en.xml → openSUSE-11.4/autoinst_32_en.xml} +0 -0
  16. data/templates/{openSUSE-11.4-DVD-x86_64/autoinst_de.xml → openSUSE-11.4/autoinst_64_de.xml} +0 -0
  17. data/templates/{openSUSE-11.4-DVD-x86_64/autoinst_en.xml → openSUSE-11.4/autoinst_64_en.xml} +0 -0
  18. data/templates/openSUSE-11.4/definition.rb +5 -0
  19. data/templates/openSUSE-11.4/definition.yml +21 -0
  20. data/templates/openSUSE-11.4/definition_32_dvd_de.yml +15 -0
  21. data/templates/openSUSE-11.4/definition_32_dvd_en.yml +15 -0
  22. data/templates/openSUSE-11.4/definition_32_net_de.yml +15 -0
  23. data/templates/openSUSE-11.4/definition_32_net_en.yml +15 -0
  24. data/templates/openSUSE-11.4/definition_64_dvd_de.yml +15 -0
  25. data/templates/openSUSE-11.4/definition_64_dvd_en.yml +15 -0
  26. data/templates/openSUSE-11.4/definition_64_net_de.yml +15 -0
  27. data/templates/openSUSE-11.4/definition_64_net_en.yml +15 -0
  28. data/templates/{openSUSE-11.4-DVD-i586 → openSUSE-11.4}/postinstall.sh +0 -0
  29. data/templates/{openSUSE-12.1-DVD+NET-i586/autoinst_de.xml → openSUSE-12.1/autoinst_32_de.xml} +0 -0
  30. data/templates/{openSUSE-12.1-DVD+NET-i586/autoinst_en.xml → openSUSE-12.1/autoinst_32_en.xml} +0 -0
  31. data/templates/{openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml → openSUSE-12.1/autoinst_64_de.xml} +0 -0
  32. data/templates/{openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml → openSUSE-12.1/autoinst_64_en.xml} +0 -0
  33. data/templates/openSUSE-12.1/definition.rb +5 -0
  34. data/templates/openSUSE-12.1/definition.yml +21 -0
  35. data/templates/openSUSE-12.1/opensuse_32_dvd_de.yml +14 -0
  36. data/templates/openSUSE-12.1/opensuse_32_dvd_en.yml +14 -0
  37. data/templates/openSUSE-12.1/opensuse_32_net_de.yml +14 -0
  38. data/templates/openSUSE-12.1/opensuse_32_net_en.yml +14 -0
  39. data/templates/openSUSE-12.1/opensuse_64_dvd_de.yml +14 -0
  40. data/templates/openSUSE-12.1/opensuse_64_dvd_en.yml +14 -0
  41. data/templates/openSUSE-12.1/opensuse_64_net_de.yml +14 -0
  42. data/templates/openSUSE-12.1/opensuse_64_net_en.yml +14 -0
  43. data/templates/{openSUSE-11.4-DVD-x86_64 → openSUSE-12.1}/postinstall.sh +0 -0
  44. data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/README.md +0 -0
  45. data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/autoinst.xml +0 -0
  46. data/templates/openSUSE-12.3/definition.rb +2 -0
  47. data/templates/openSUSE-12.3/definition.yml +36 -0
  48. data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/postinstall.sh +0 -0
  49. data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/virtualbox.sh +0 -0
  50. data/templates/openSUSE-13.1/definition.rb +5 -70
  51. data/templates/openSUSE-13.1/definition.yml +24 -0
  52. data/templates/openSUSE-13.1/opensuse_32_dvd.yml +8 -0
  53. data/templates/openSUSE-13.1/opensuse_32_net.yml +9 -0
  54. data/templates/openSUSE-13.1/opensuse_64_dvd.yml +9 -0
  55. data/templates/openSUSE-13.1/opensuse_64_net.yml +10 -0
  56. data/veewee.gemspec +6 -1
  57. metadata +62 -40
  58. data/.rvmrc +0 -6
  59. data/templates/openSUSE-11.4-DVD-i586/definition.rb +0 -28
  60. data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +0 -28
  61. data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +0 -1278
  62. data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +0 -1278
  63. data/templates/openSUSE-11.4-NET-i586/definition.rb +0 -28
  64. data/templates/openSUSE-11.4-NET-i586/postinstall.sh +0 -48
  65. data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +0 -1453
  66. data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +0 -1453
  67. data/templates/openSUSE-11.4-NET-x86_64/definition.rb +0 -28
  68. data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +0 -48
  69. data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +0 -44
  70. data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +0 -48
  71. data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +0 -44
  72. data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +0 -48
  73. data/templates/openSUSE-12.3-x86_64-NET_EN/definition.rb +0 -37
  74. data/templates/opensuse-11.4-i386-experimental/README +0 -11
  75. data/templates/opensuse-11.4-i386-experimental/autoinst.xml +0 -1269
  76. data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +0 -1269
  77. data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +0 -1269
  78. data/templates/opensuse-11.4-i386-experimental/definition.rb +0 -31
  79. data/templates/opensuse-11.4-i386-experimental/postinstall.sh +0 -90
@@ -1,31 +0,0 @@
1
- Veewee::Definition.declare({
2
- :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
4
- :os_type_id => 'OpenSUSE',
5
- :iso_file => "openSUSE-11.4-DVD-i586.iso",
6
- :iso_src => "http://download.opensuse.org/distribution/11.4/iso/openSUSE-11.4-DVD-i586.iso",
7
- #:iso_src => "http://ftp.belnet.be/mirror/ftp.opensuse.org/distribution/11.4/iso/openSUSE-11.4-DVD-i586.iso",
8
- :iso_md5 => "5f6d6d67c3e256b2513311f4ed650515",
9
- :iso_download_timeout => "1000",
10
- :boot_wait => "10", :boot_cmd_sequence => [
11
- '<Esc><Enter>',
12
- 'linux',
13
- #'/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
14
- ' netdevice=eth0',
15
- ' netsetup=dhcp',
16
- ' instmode=dvd',
17
- #' install=file://mnt/suse',
18
- ' textmode=1 autoyast=http://%IP%:%PORT%/autoinst.xml',
19
- #'hostname=%NAME% ',
20
- #'initrd=/install/initrd.gz -- <Enter>'
21
- '<Enter>'
22
- ],
23
- :kickstart_port => "7122", :kickstart_timeout => "300",
24
- #We need this twice, as it is read twice
25
- :kickstart_file => ["autoinst.xml","autoinst.xml"],
26
- :ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
27
- :ssh_host_port => "7222", :ssh_guest_port => "22",
28
- :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
29
- :shutdown_cmd => "shutdown -P now",
30
- :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
31
- })
@@ -1,90 +0,0 @@
1
- #Inspired by https://github.com/fnichol/wiki-notes/wiki/Creating-An-openSUSE-11.3-x32-Vagrant-Box
2
-
3
- date > /etc/vagrant_box_build_time
4
-
5
- zypper --non-interactive refresh
6
- # zypper --non-interactive up
7
-
8
- # /sbin/shutdown -r now && exit
9
- # Install VirtualBox Guest Additions
10
- # Install some pre-requisites needed for the Guest Additions package and remove the system-installed package:
11
- zypper --non-interactive install make gcc
12
- zypper --non-interactive install kernel-default-devel
13
- zypper --non-interactive remove virtualbox-ose-guest-kmp-default \
14
- virtualbox-ose-guest-tools xorg-x11-driver-virtualbox-ose
15
-
16
- # Fix remote login
17
- echo 'UseDNS no' >> /etc/ssh/sshd_config
18
-
19
- #install ruby
20
- zypper --non-interactive install ruby ruby-devel rubygems
21
- gem install chef --no-ri --no-rdoc
22
- gem install puppet --no-ri --no-rdoc
23
- sudo zypper --non-interactive refresh
24
- sudo zypper --non-interactive up
25
- #
26
- #/sbin/shutdown -hP now && exit
27
-
28
-
29
- #Installing vagrant keys
30
- zypper --non-interactive install wget
31
- mkdir /home/vagrant/.ssh
32
- chmod 700 /home/vagrant/.ssh
33
- cd /home/vagrant/.ssh
34
- wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/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
- exit
47
-
48
-
49
-
50
- sudo zypper --non-interactive refresh
51
- sudo zypper --non-interactive up
52
- sudo /sbin/shutdown -r now && exit
53
- Install VirtualBox Guest Additions
54
- Install some pre-requisites needed for the Guest Additions package and remove the system-installed package:
55
- sudo zypper --non-interactive install make gcc
56
- sudo zypper --non-interactive install kernel-default-devel
57
- sudo zypper --non-interactive remove virtualbox-ose-guest-kmp-default \
58
- virtualbox-ose-guest-tools xorg-x11-driver-virtualbox-ose
59
- Now mount the Guest Additions from the Devices -> Install Guest Additions VirtualBox menu. Next, mount the iso and install the additions:
60
- sudo mkdir -p /media/cdrom
61
- sudo mount /dev/cdrom /media/cdrom
62
- (cd /media/cdrom && sudo sh VBoxLinuxAdditions.run)
63
- sudo umount /media/cdrom
64
- Note: The installer will complain about not finding "the X.Org or XFree86 Window System" which is fine and expected.
65
- Remove the disk from the virtual drive by clicking the CD-ROM icon and choosing from the flyout menu.
66
- Prepare SSH Configuration
67
- Install the public key that Vagrant uses when SSHing into the virtual machine:
68
- sudo zypper --non-interactive install curl
69
- mkdir -p ~/.ssh
70
- chmod 0700 ~/.ssh
71
- curl -o ~/.ssh/authorized_keys \
72
- https://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub
73
- chmod 0600 ~/.ssh/authorized_keys
74
- Edit the sshd configuration to prevent DNS resolution (speedup logins):
75
- sudo bash -c "echo 'UseDNS no' >> /etc/ssh/sshd_config"
76
- Install Ruby, Chef, And Puppet
77
- Thankfully, openSUSE comes with a decently up to date ruby (1.8.7) and a non-crippled rubygems (currently 1.3.7), so this is straight forward:
78
- sudo zypper --non-interactive install ruby ruby-devel rubygems
79
- Install the chef and puppet gems so they are ready for the provisioners:
80
- sudo gem install chef --no-ri --no-rdoc
81
- sudo gem install puppet --no-ri --no-rdoc
82
- Update Message Of The Day
83
- Modify the message of the day (to match the default Vagrant box):
84
- sudo bash -c "echo 'Welcome to your Vagrant-built virtual machine.' > /etc/motd"
85
- Final Cleanup
86
- Run one last update and cleanup:
87
- sudo zypper --non-interactive refresh
88
- sudo zypper --non-interactive up
89
- Finally, shutdown the virtual machine:
90
- sudo /sbin/shutdown -hP now && exit