veewee 0.1.29 → 0.2.0
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.
- data/Gemfile.lock +23 -29
- data/lib/veewee/session.rb +10 -7
- data/lib/veewee/ssh.rb +70 -42
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-4.8-i386/postinstall.sh +2 -0
- data/templates/CentOS-5.6-i386-netboot/postinstall.sh +3 -1
- data/templates/CentOS-5.6-i386/postinstall.sh +3 -1
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +2 -0
- data/templates/CentOS-6.0-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-6.0-i386-netboot/ks.cfg +52 -0
- data/templates/CentOS-6.0-i386-netboot/postinstall.sh +30 -0
- data/templates/CentOS-6.0-i386/definition.rb +17 -0
- data/templates/CentOS-6.0-i386/ks.cfg +47 -0
- data/templates/CentOS-6.0-i386/postinstall.sh +48 -0
- data/templates/CentOS-6.0-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +52 -0
- data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +30 -0
- data/templates/CentOS-6.0-x86_64/definition.rb +17 -0
- data/templates/CentOS-6.0-x86_64/ks.cfg +47 -0
- data/templates/CentOS-6.0-x86_64/postinstall.sh +48 -0
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +2 -0
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +2 -0
- data/templates/Debian-6.0.2-amd64-netboot/postinstall.sh +2 -0
- data/templates/Debian-6.0.2-i386-netboot/postinstall.sh +2 -0
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +2 -0
- data/templates/Fedora-14-amd64/postinstall.sh +2 -0
- data/templates/Fedora-14-i386-netboot/postinstall.sh +2 -0
- data/templates/Fedora-14-i386/postinstall.sh +2 -0
- data/templates/Fedora-15-i386-netboot/definition.rb +17 -0
- data/templates/Fedora-15-i386-netboot/ks.cfg +82 -0
- data/templates/Fedora-15-i386-netboot/postinstall.sh +18 -0
- data/templates/Fedora-15-i386/definition.rb +17 -0
- data/templates/Fedora-15-i386/ks.cfg +64 -0
- data/templates/Fedora-15-i386/postinstall.sh +33 -0
- data/templates/archlinux-i386/aif.cfg +33 -0
- data/templates/archlinux-i386/definition.rb +29 -0
- data/templates/archlinux-i386/postinstall.sh +95 -0
- data/templates/archlinux-x86_64/aif.cfg +33 -0
- data/templates/{archlinux-64-aif-experimental → archlinux-x86_64}/definition.rb +7 -7
- data/templates/archlinux-x86_64/postinstall.sh +95 -0
- data/templates/freebsd-8.2-experimental/postinstall.sh +3 -1
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +2 -0
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +2 -0
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +2 -0
- data/templates/openindiana-148-ai-x86/postinstall.sh +2 -0
- data/templates/opensuse-11.4-i386-experimental/postinstall.sh +1 -0
- data/templates/solaris-11-express-i386/postinstall.sh +2 -0
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +4 -2
- data/templates/ubuntu-10.04.2-server-amd64-alt/definition.rb +57 -0
- data/templates/ubuntu-10.04.2-server-amd64-alt/postinstall.sh +249 -0
- data/templates/ubuntu-10.04.2-server-amd64-alt/preseed.cfg +124 -0
- data/templates/ubuntu-10.04.2-server-amd64/definition.rb +56 -23
- data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +4 -2
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +4 -2
- data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +3 -1
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +4 -2
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +3 -1
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +4 -2
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +4 -2
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +4 -2
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +4 -2
- data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +2 -0
- data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +3 -1
- data/validation/features/steps/ssh_steps.rb +22 -8
- data/veewee.gemspec +2 -2
- metadata +40 -21
- data/templates/archlinux-64-aif-experimental/postinstall.sh +0 -6
- data/templates/archlinux-64-experimental/autorun0 +0 -6
- data/templates/archlinux-64-experimental/definition.rb +0 -21
- data/templates/archlinux-64-experimental/postinstall.sh +0 -190
- data/templates/archlinux-i686/autorun0 +0 -6
- data/templates/archlinux-i686/definition.rb +0 -21
- data/templates/archlinux-i686/postinstall.sh +0 -191
|
@@ -1,24 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
require 'digest/md5'
|
|
2
|
+
CURRENT_DIR = File.dirname(__FILE__)
|
|
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
|
+
|
|
6
|
+
Veewee::Session.declare( {
|
|
7
|
+
:boot_cmd_sequence => [
|
|
8
|
+
"<Esc><Esc><Enter>",
|
|
9
|
+
"/install/vmlinuz ",
|
|
10
|
+
"noapic ",
|
|
11
|
+
"auto-install/enable",
|
|
12
|
+
"console-setup/ask_detect=false ",
|
|
13
|
+
"console-setup/modelcode=pc105 ",
|
|
14
|
+
"console-setup/layoutcode=us ",
|
|
15
|
+
"debconf/priority=critical ",
|
|
16
|
+
"debconf/frontend=noninteractive ",
|
|
17
|
+
"debian-installer=en_US ",
|
|
18
|
+
"debian-installer/locale=en_US ",
|
|
19
|
+
"debian-installer/framebuffer=false ",
|
|
20
|
+
"initrd=/install/initrd.gz ",
|
|
21
|
+
"kbd-chooser/method=us ",
|
|
22
|
+
"netcfg/get_hostname=%NAME% ",
|
|
23
|
+
"netcfg/dhcp_timeout=60 ",
|
|
24
|
+
"netcfg/choose_interface=auto ",
|
|
25
|
+
"preseed/interactive=false ",
|
|
26
|
+
"preseed/url=http://%IP%:%PORT%/preseed.cfg ",
|
|
27
|
+
"preseed/url/checksum=#{PRESEED_MD5} ",
|
|
28
|
+
"DEBCONF_DEBUG=5 ",
|
|
29
|
+
"-- <Enter>"
|
|
30
|
+
],
|
|
31
|
+
:boot_wait => "10",
|
|
32
|
+
:cpu_count => '1',
|
|
33
|
+
:disk_size => '10140',
|
|
34
|
+
:disk_format => 'VMDK',
|
|
35
|
+
:hostiocache => 'on',
|
|
36
|
+
: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",
|
|
40
|
+
:kickstart_file => "preseed.cfg",
|
|
41
|
+
:kickstart_port => "7122",
|
|
42
|
+
:kickstart_timeout => "60",
|
|
43
|
+
:memory_size => '384',
|
|
44
|
+
:os_type_id => 'Ubuntu_64',
|
|
45
|
+
:postinstall_files => [ "postinstall.sh" ],
|
|
46
|
+
:postinstall_timeout => "10000",
|
|
47
|
+
:ssh_login_timeout => "60",
|
|
48
|
+
:ssh_user => "vagrant",
|
|
49
|
+
:ssh_password => "vagrant",
|
|
50
|
+
:ssh_key => "",
|
|
51
|
+
:ssh_host_port => "7222",
|
|
52
|
+
:ssh_guest_port => "22",
|
|
53
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
|
54
|
+
:shutdown_cmd => "shutdown -h now",
|
|
55
|
+
:use_hw_virt_ext => 'off',
|
|
56
|
+
:use_pae => 'on'
|
|
24
57
|
})
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# postinstall.sh created from Mitchell's official lucid32/64 baseboxes
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
# Apt-install various things necessary for Ruby, guest additions,
|
|
4
6
|
# etc., and remove optional things to trim down the machine.
|
|
5
7
|
apt-get -y update
|
|
@@ -21,7 +23,7 @@ apt-get -y install nfs-common
|
|
|
21
23
|
# We must install the 1.8.x series since Puppet doesn't support
|
|
22
24
|
# Ruby 1.9 yet.
|
|
23
25
|
wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
|
|
24
|
-
tar xvzf
|
|
26
|
+
tar xvzf ruby-1.8.7-p334.tar.gz
|
|
25
27
|
cd ruby-1.8.7-p334
|
|
26
28
|
./configure --prefix=/opt/ruby
|
|
27
29
|
make
|
|
@@ -85,4 +87,4 @@ rm /lib/udev/rules.d/75-persistent-net-generator.rules
|
|
|
85
87
|
|
|
86
88
|
echo "Adding a 2 sec delay to the interface up, to make the dhclient happy"
|
|
87
89
|
echo "pre-up sleep 2" >> /etc/network/interfaces
|
|
88
|
-
exit
|
|
90
|
+
exit
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
p#http://adrianbravo.tumblr.com/post/644860401
|
|
2
2
|
|
|
3
|
+
date > /etc/vagrant_box_build_time
|
|
4
|
+
|
|
3
5
|
#Updating the box
|
|
4
6
|
apt-get -y update
|
|
5
7
|
apt-get -y install linux-headers-$(uname -r) build-essential
|
|
@@ -42,4 +44,4 @@ apt-get -y remove linux-headers-$(uname -r) build-essential
|
|
|
42
44
|
apt-get -y autoremove
|
|
43
45
|
|
|
44
46
|
rm VBoxGuestAdditions_$VBOX_VERSION.iso
|
|
45
|
-
exit
|
|
47
|
+
exit
|
|
@@ -33,7 +33,7 @@ Then /^I can ssh to the following hosts with these credentials:$/ do |table|
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
lambda {
|
|
36
|
-
Net::SSH.start(session["hostname"], session["username"], :password => session["password"],
|
|
36
|
+
Net::SSH.start(session["hostname"], session["username"], :password => session["password"],
|
|
37
37
|
:auth_methods => session_auth_methods,
|
|
38
38
|
:keys => session_keys)
|
|
39
39
|
}.should_not raise_error(Net::SSH::AuthenticationFailed)
|
|
@@ -70,13 +70,27 @@ When /^I ssh to "([^\"]*)" with the following credentials:$/ do |hostname, table
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
lambda {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
# This is the list of authorization methods to try. It defaults to “publickey”, “hostbased”, “password”, and “keyboard-interactive”. (These are also the only authorization methods that are supported.) If
|
|
74
|
+
# http://net-ssh.rubyforge.org/ssh/v1/chapter-2.html
|
|
75
|
+
key_auth_tried = false
|
|
76
|
+
ssh_options = {:password => session["password"], :auth_methods => session_auth_methods, :port => session_port, :keys => session_keys}
|
|
77
|
+
# ssh_options[:verbose] => :debug
|
|
78
|
+
begin
|
|
79
|
+
print "."
|
|
80
|
+
@connection = Net::SSH.start(session["hostname"], session["username"], ssh_options)
|
|
81
|
+
rescue Net::SSH::AuthenticationFailed
|
|
82
|
+
ssh_options[:keys] = Array.new([File.join(File.dirname(__FILE__),'./../../vagrant')])
|
|
83
|
+
ssh_options.delete(:password)
|
|
84
|
+
ssh_options[:auth_methods] = ['publickey']
|
|
85
|
+
if key_auth_tried
|
|
86
|
+
raise
|
|
87
|
+
else
|
|
88
|
+
key_auth_tried = true
|
|
89
|
+
retry
|
|
90
|
+
end
|
|
91
|
+
rescue Net::SSH::Disconnect, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNABORTED, Errno::ECONNRESET, Errno::ENETUNREACH
|
|
92
|
+
sleep 5
|
|
93
|
+
end
|
|
80
94
|
}.should_not raise_error
|
|
81
95
|
end
|
|
82
96
|
|
data/veewee.gemspec
CHANGED
|
@@ -14,13 +14,13 @@ Gem::Specification.new do |s|
|
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
|
15
15
|
s.rubyforge_project = "veewee"
|
|
16
16
|
|
|
17
|
-
s.add_dependency "vagrant", "~> 0.
|
|
17
|
+
s.add_dependency "vagrant", "~> 0.8.0"
|
|
18
18
|
s.add_dependency "net-ssh", "~> 2.1.0"
|
|
19
19
|
s.add_dependency "popen4", "~> 0.1.2"
|
|
20
20
|
s.add_dependency "thor", "~> 0.14.6"
|
|
21
21
|
s.add_dependency "highline", "~> 1.6.1"
|
|
22
22
|
s.add_dependency "progressbar"
|
|
23
|
-
s.add_dependency "cucumber", "0.
|
|
23
|
+
s.add_dependency "cucumber", "~> 1.0.2"
|
|
24
24
|
s.add_dependency "rspec", "~> 2.5.0"
|
|
25
25
|
#s.add_dependency "simon", "~> 0.1.1"
|
|
26
26
|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: veewee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
version: 0.
|
|
8
|
+
- 2
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.2.0
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Patrick Debois
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-07-
|
|
19
|
+
date: 2011-07-23 00:00:00 +10:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -25,12 +25,12 @@ dependencies:
|
|
|
25
25
|
requirements:
|
|
26
26
|
- - ~>
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
hash:
|
|
28
|
+
hash: 63
|
|
29
29
|
segments:
|
|
30
30
|
- 0
|
|
31
|
-
-
|
|
31
|
+
- 8
|
|
32
32
|
- 0
|
|
33
|
-
version: 0.
|
|
33
|
+
version: 0.8.0
|
|
34
34
|
type: :runtime
|
|
35
35
|
requirement: *id001
|
|
36
36
|
name: vagrant
|
|
@@ -117,14 +117,14 @@ dependencies:
|
|
|
117
117
|
version_requirements: &id007 !ruby/object:Gem::Requirement
|
|
118
118
|
none: false
|
|
119
119
|
requirements:
|
|
120
|
-
- -
|
|
120
|
+
- - ~>
|
|
121
121
|
- !ruby/object:Gem::Version
|
|
122
|
-
hash:
|
|
122
|
+
hash: 19
|
|
123
123
|
segments:
|
|
124
|
+
- 1
|
|
124
125
|
- 0
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
version: 0.8.5
|
|
126
|
+
- 2
|
|
127
|
+
version: 1.0.2
|
|
128
128
|
type: :runtime
|
|
129
129
|
requirement: *id007
|
|
130
130
|
name: cucumber
|
|
@@ -207,6 +207,18 @@ files:
|
|
|
207
207
|
- templates/CentOS-5.6-x86_64-netboot/definition.rb
|
|
208
208
|
- templates/CentOS-5.6-x86_64-netboot/ks.cfg
|
|
209
209
|
- templates/CentOS-5.6-x86_64-netboot/postinstall.sh
|
|
210
|
+
- templates/CentOS-6.0-i386-netboot/definition.rb
|
|
211
|
+
- templates/CentOS-6.0-i386-netboot/ks.cfg
|
|
212
|
+
- templates/CentOS-6.0-i386-netboot/postinstall.sh
|
|
213
|
+
- templates/CentOS-6.0-i386/definition.rb
|
|
214
|
+
- templates/CentOS-6.0-i386/ks.cfg
|
|
215
|
+
- templates/CentOS-6.0-i386/postinstall.sh
|
|
216
|
+
- templates/CentOS-6.0-x86_64-netboot/definition.rb
|
|
217
|
+
- templates/CentOS-6.0-x86_64-netboot/ks.cfg
|
|
218
|
+
- templates/CentOS-6.0-x86_64-netboot/postinstall.sh
|
|
219
|
+
- templates/CentOS-6.0-x86_64/definition.rb
|
|
220
|
+
- templates/CentOS-6.0-x86_64/ks.cfg
|
|
221
|
+
- templates/CentOS-6.0-x86_64/postinstall.sh
|
|
210
222
|
- templates/Debian-5.0.8-amd64-netboot/definition.rb
|
|
211
223
|
- templates/Debian-5.0.8-amd64-netboot/postinstall.sh
|
|
212
224
|
- templates/Debian-5.0.8-amd64-netboot/preseed.cfg
|
|
@@ -231,16 +243,20 @@ files:
|
|
|
231
243
|
- templates/Fedora-14-i386/definition.rb
|
|
232
244
|
- templates/Fedora-14-i386/ks.cfg
|
|
233
245
|
- templates/Fedora-14-i386/postinstall.sh
|
|
246
|
+
- templates/Fedora-15-i386-netboot/definition.rb
|
|
247
|
+
- templates/Fedora-15-i386-netboot/ks.cfg
|
|
248
|
+
- templates/Fedora-15-i386-netboot/postinstall.sh
|
|
249
|
+
- templates/Fedora-15-i386/definition.rb
|
|
250
|
+
- templates/Fedora-15-i386/ks.cfg
|
|
251
|
+
- templates/Fedora-15-i386/postinstall.sh
|
|
234
252
|
- templates/Sysrescuecd-2.0.0-experimental/autorun0
|
|
235
253
|
- templates/Sysrescuecd-2.0.0-experimental/definition.rb
|
|
236
|
-
- templates/archlinux-
|
|
237
|
-
- templates/archlinux-
|
|
238
|
-
- templates/archlinux-
|
|
239
|
-
- templates/archlinux-
|
|
240
|
-
- templates/archlinux-
|
|
241
|
-
- templates/archlinux-
|
|
242
|
-
- templates/archlinux-i686/definition.rb
|
|
243
|
-
- templates/archlinux-i686/postinstall.sh
|
|
254
|
+
- templates/archlinux-i386/aif.cfg
|
|
255
|
+
- templates/archlinux-i386/definition.rb
|
|
256
|
+
- templates/archlinux-i386/postinstall.sh
|
|
257
|
+
- templates/archlinux-x86_64/aif.cfg
|
|
258
|
+
- templates/archlinux-x86_64/definition.rb
|
|
259
|
+
- templates/archlinux-x86_64/postinstall.sh
|
|
244
260
|
- templates/freebsd-8.2-experimental/definition.rb
|
|
245
261
|
- templates/freebsd-8.2-experimental/postinstall.sh
|
|
246
262
|
- templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb
|
|
@@ -282,6 +298,9 @@ files:
|
|
|
282
298
|
- templates/ubuntu-10.04.2-amd64-netboot/definition.rb
|
|
283
299
|
- templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh
|
|
284
300
|
- templates/ubuntu-10.04.2-amd64-netboot/preseed.cfg
|
|
301
|
+
- templates/ubuntu-10.04.2-server-amd64-alt/definition.rb
|
|
302
|
+
- templates/ubuntu-10.04.2-server-amd64-alt/postinstall.sh
|
|
303
|
+
- templates/ubuntu-10.04.2-server-amd64-alt/preseed.cfg
|
|
285
304
|
- templates/ubuntu-10.04.2-server-amd64/definition.rb
|
|
286
305
|
- templates/ubuntu-10.04.2-server-amd64/postinstall.sh
|
|
287
306
|
- templates/ubuntu-10.04.2-server-amd64/preseed.cfg
|