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.
Files changed (73) hide show
  1. data/Gemfile.lock +23 -29
  2. data/lib/veewee/session.rb +10 -7
  3. data/lib/veewee/ssh.rb +70 -42
  4. data/lib/veewee/version.rb +1 -1
  5. data/templates/CentOS-4.8-i386/postinstall.sh +2 -0
  6. data/templates/CentOS-5.6-i386-netboot/postinstall.sh +3 -1
  7. data/templates/CentOS-5.6-i386/postinstall.sh +3 -1
  8. data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +2 -0
  9. data/templates/CentOS-6.0-i386-netboot/definition.rb +16 -0
  10. data/templates/CentOS-6.0-i386-netboot/ks.cfg +52 -0
  11. data/templates/CentOS-6.0-i386-netboot/postinstall.sh +30 -0
  12. data/templates/CentOS-6.0-i386/definition.rb +17 -0
  13. data/templates/CentOS-6.0-i386/ks.cfg +47 -0
  14. data/templates/CentOS-6.0-i386/postinstall.sh +48 -0
  15. data/templates/CentOS-6.0-x86_64-netboot/definition.rb +16 -0
  16. data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +52 -0
  17. data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +30 -0
  18. data/templates/CentOS-6.0-x86_64/definition.rb +17 -0
  19. data/templates/CentOS-6.0-x86_64/ks.cfg +47 -0
  20. data/templates/CentOS-6.0-x86_64/postinstall.sh +48 -0
  21. data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +2 -0
  22. data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +2 -0
  23. data/templates/Debian-6.0.2-amd64-netboot/postinstall.sh +2 -0
  24. data/templates/Debian-6.0.2-i386-netboot/postinstall.sh +2 -0
  25. data/templates/Fedora-14-amd64-netboot/postinstall.sh +2 -0
  26. data/templates/Fedora-14-amd64/postinstall.sh +2 -0
  27. data/templates/Fedora-14-i386-netboot/postinstall.sh +2 -0
  28. data/templates/Fedora-14-i386/postinstall.sh +2 -0
  29. data/templates/Fedora-15-i386-netboot/definition.rb +17 -0
  30. data/templates/Fedora-15-i386-netboot/ks.cfg +82 -0
  31. data/templates/Fedora-15-i386-netboot/postinstall.sh +18 -0
  32. data/templates/Fedora-15-i386/definition.rb +17 -0
  33. data/templates/Fedora-15-i386/ks.cfg +64 -0
  34. data/templates/Fedora-15-i386/postinstall.sh +33 -0
  35. data/templates/archlinux-i386/aif.cfg +33 -0
  36. data/templates/archlinux-i386/definition.rb +29 -0
  37. data/templates/archlinux-i386/postinstall.sh +95 -0
  38. data/templates/archlinux-x86_64/aif.cfg +33 -0
  39. data/templates/{archlinux-64-aif-experimental → archlinux-x86_64}/definition.rb +7 -7
  40. data/templates/archlinux-x86_64/postinstall.sh +95 -0
  41. data/templates/freebsd-8.2-experimental/postinstall.sh +3 -1
  42. data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +2 -0
  43. data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +2 -0
  44. data/templates/gentoo-latest-i386-experimental/postinstall.sh +2 -0
  45. data/templates/openindiana-148-ai-x86/postinstall.sh +2 -0
  46. data/templates/opensuse-11.4-i386-experimental/postinstall.sh +1 -0
  47. data/templates/solaris-11-express-i386/postinstall.sh +2 -0
  48. data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +4 -2
  49. data/templates/ubuntu-10.04.2-server-amd64-alt/definition.rb +57 -0
  50. data/templates/ubuntu-10.04.2-server-amd64-alt/postinstall.sh +249 -0
  51. data/templates/ubuntu-10.04.2-server-amd64-alt/preseed.cfg +124 -0
  52. data/templates/ubuntu-10.04.2-server-amd64/definition.rb +56 -23
  53. data/templates/ubuntu-10.04.2-server-amd64/postinstall.sh +4 -2
  54. data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +4 -2
  55. data/templates/ubuntu-10.04.2-server-i386/postinstall.sh +3 -1
  56. data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +4 -2
  57. data/templates/ubuntu-10.10-server-amd64/postinstall.sh +3 -1
  58. data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +4 -2
  59. data/templates/ubuntu-10.10-server-i386/postinstall.sh +4 -2
  60. data/templates/ubuntu-11.04-server-amd64/postinstall.sh +4 -2
  61. data/templates/ubuntu-11.04-server-i386/postinstall.sh +4 -2
  62. data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +2 -0
  63. data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +3 -1
  64. data/validation/features/steps/ssh_steps.rb +22 -8
  65. data/veewee.gemspec +2 -2
  66. metadata +40 -21
  67. data/templates/archlinux-64-aif-experimental/postinstall.sh +0 -6
  68. data/templates/archlinux-64-experimental/autorun0 +0 -6
  69. data/templates/archlinux-64-experimental/definition.rb +0 -21
  70. data/templates/archlinux-64-experimental/postinstall.sh +0 -190
  71. data/templates/archlinux-i686/autorun0 +0 -6
  72. data/templates/archlinux-i686/definition.rb +0 -21
  73. data/templates/archlinux-i686/postinstall.sh +0 -191
@@ -1,24 +1,57 @@
1
- Veewee::Session.declare({
2
- :cpu_count => '1', :memory_size=> '384',
3
- :disk_size => '10140', :disk_format => 'VDI', :hostiocache => 'off',
4
- :os_type_id => 'Ubuntu_64',
5
- :iso_file => "ubuntu-10.04.2-server-amd64.iso",
6
- :iso_src => "http://releases.ubuntu.com/10.04.2/ubuntu-10.04.2-server-amd64.iso",
7
- :iso_md5 => "b446b36430a29f3dcf0c5eb797197cac",
8
- :iso_download_timeout => "1000",
9
- :boot_wait => "10", :boot_cmd_sequence => [
10
- '<Esc><Esc><Enter>',
11
- '/install/vmlinuz noapic preseed/url=http://%IP%:%PORT%/preseed.cfg ',
12
- 'debian-installer=en_US auto locale=en_US kbd-chooser/method=us ',
13
- 'hostname=%NAME% ',
14
- 'fb=false debconf/frontend=noninteractive ',
15
- 'console-setup/ask_detect=false console-setup/modelcode=pc105 console-setup/layoutcode=us ',
16
- 'initrd=/install/initrd.gz -- <Enter>'
17
- ],
18
- :kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "preseed.cfg",
19
- :ssh_login_timeout => "10000", :ssh_user => "vagrant", :ssh_password => "vagrant", :ssh_key => "",
20
- :ssh_host_port => "7222", :ssh_guest_port => "22",
21
- :sudo_cmd => "echo '%p'|sudo -S sh '%f'",
22
- :shutdown_cmd => "shutdown -P now",
23
- :postinstall_files => [ "postinstall.sh"], :postinstall_timeout => "10000"
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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 http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p334.tar.gz
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
  #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
@@ -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
- @connection = Net::SSH.start(hostname, session["username"], :password => session["password"],
74
- :auth_methods => session_auth_methods,
75
- # 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
76
- #http://net-ssh.rubyforge.org/ssh/v1/chapter-2.html
77
- :port => session_port,
78
- :keys => session_keys)
79
- # :keys => session_keys,:verbose => :debug)
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
 
@@ -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.7.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.8.5"
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: 33
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 29
10
- version: 0.1.29
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-03 00:00:00 +02:00
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: 3
28
+ hash: 63
29
29
  segments:
30
30
  - 0
31
- - 7
31
+ - 8
32
32
  - 0
33
- version: 0.7.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: 53
122
+ hash: 19
123
123
  segments:
124
+ - 1
124
125
  - 0
125
- - 8
126
- - 5
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-64-aif-experimental/definition.rb
237
- - templates/archlinux-64-aif-experimental/postinstall.sh
238
- - templates/archlinux-64-experimental/autorun0
239
- - templates/archlinux-64-experimental/definition.rb
240
- - templates/archlinux-64-experimental/postinstall.sh
241
- - templates/archlinux-i686/autorun0
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