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.
- checksums.yaml +8 -8
- data/.gitignore +1 -3
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/doc/basics.md +11 -0
- data/lib/veewee/environment.rb +1 -1
- data/lib/veewee/provider/core/helper/scancode.rb +11 -7
- data/lib/veewee/provider/core/helper/web.rb +60 -60
- data/lib/veewee/provider/virtualbox/box/helper/console_type.rb +13 -5
- data/lib/veewee/templates.rb +3 -0
- data/lib/veewee/version.rb +1 -1
- data/templates/archlinux-i386/definition.rb +27 -18
- data/templates/archlinux-x86_64/definition.rb +16 -16
- data/templates/{openSUSE-11.4-DVD-i586/autoinst_de.xml → openSUSE-11.4/autoinst_32_de.xml} +0 -0
- data/templates/{openSUSE-11.4-DVD-i586/autoinst_en.xml → openSUSE-11.4/autoinst_32_en.xml} +0 -0
- data/templates/{openSUSE-11.4-DVD-x86_64/autoinst_de.xml → openSUSE-11.4/autoinst_64_de.xml} +0 -0
- data/templates/{openSUSE-11.4-DVD-x86_64/autoinst_en.xml → openSUSE-11.4/autoinst_64_en.xml} +0 -0
- data/templates/openSUSE-11.4/definition.rb +5 -0
- data/templates/openSUSE-11.4/definition.yml +21 -0
- data/templates/openSUSE-11.4/definition_32_dvd_de.yml +15 -0
- data/templates/openSUSE-11.4/definition_32_dvd_en.yml +15 -0
- data/templates/openSUSE-11.4/definition_32_net_de.yml +15 -0
- data/templates/openSUSE-11.4/definition_32_net_en.yml +15 -0
- data/templates/openSUSE-11.4/definition_64_dvd_de.yml +15 -0
- data/templates/openSUSE-11.4/definition_64_dvd_en.yml +15 -0
- data/templates/openSUSE-11.4/definition_64_net_de.yml +15 -0
- data/templates/openSUSE-11.4/definition_64_net_en.yml +15 -0
- data/templates/{openSUSE-11.4-DVD-i586 → openSUSE-11.4}/postinstall.sh +0 -0
- data/templates/{openSUSE-12.1-DVD+NET-i586/autoinst_de.xml → openSUSE-12.1/autoinst_32_de.xml} +0 -0
- data/templates/{openSUSE-12.1-DVD+NET-i586/autoinst_en.xml → openSUSE-12.1/autoinst_32_en.xml} +0 -0
- data/templates/{openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml → openSUSE-12.1/autoinst_64_de.xml} +0 -0
- data/templates/{openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml → openSUSE-12.1/autoinst_64_en.xml} +0 -0
- data/templates/openSUSE-12.1/definition.rb +5 -0
- data/templates/openSUSE-12.1/definition.yml +21 -0
- data/templates/openSUSE-12.1/opensuse_32_dvd_de.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_32_dvd_en.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_32_net_de.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_32_net_en.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_64_dvd_de.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_64_dvd_en.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_64_net_de.yml +14 -0
- data/templates/openSUSE-12.1/opensuse_64_net_en.yml +14 -0
- data/templates/{openSUSE-11.4-DVD-x86_64 → openSUSE-12.1}/postinstall.sh +0 -0
- data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/README.md +0 -0
- data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/autoinst.xml +0 -0
- data/templates/openSUSE-12.3/definition.rb +2 -0
- data/templates/openSUSE-12.3/definition.yml +36 -0
- data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/postinstall.sh +0 -0
- data/templates/{openSUSE-12.3-x86_64-NET_EN → openSUSE-12.3}/virtualbox.sh +0 -0
- data/templates/openSUSE-13.1/definition.rb +5 -70
- data/templates/openSUSE-13.1/definition.yml +24 -0
- data/templates/openSUSE-13.1/opensuse_32_dvd.yml +8 -0
- data/templates/openSUSE-13.1/opensuse_32_net.yml +9 -0
- data/templates/openSUSE-13.1/opensuse_64_dvd.yml +9 -0
- data/templates/openSUSE-13.1/opensuse_64_net.yml +10 -0
- data/veewee.gemspec +6 -1
- metadata +62 -40
- data/.rvmrc +0 -6
- data/templates/openSUSE-11.4-DVD-i586/definition.rb +0 -28
- data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +0 -28
- data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +0 -1278
- data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +0 -1278
- data/templates/openSUSE-11.4-NET-i586/definition.rb +0 -28
- data/templates/openSUSE-11.4-NET-i586/postinstall.sh +0 -48
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +0 -1453
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +0 -1453
- data/templates/openSUSE-11.4-NET-x86_64/definition.rb +0 -28
- data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +0 -48
- data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +0 -44
- data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +0 -48
- data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +0 -44
- data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +0 -48
- data/templates/openSUSE-12.3-x86_64-NET_EN/definition.rb +0 -37
- data/templates/opensuse-11.4-i386-experimental/README +0 -11
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml +0 -1269
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.generated +0 -1269
- data/templates/opensuse-11.4-i386-experimental/autoinst.xml.tweaked +0 -1269
- data/templates/opensuse-11.4-i386-experimental/definition.rb +0 -31
- 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
|