vagrantup 1.0.6 → 1.0.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e529f99213354edaf315e6be88a6ef7a32bda4a
4
- data.tar.gz: 4fde23525e316f0e65e292efd1e355db168b90d5
3
+ metadata.gz: af5a4fbac1196e53c4539fa34d8680793d789245
4
+ data.tar.gz: 2c8ac719a48f962be8604775953f745003cad31a
5
5
  SHA512:
6
- metadata.gz: 3faf9807304936dfad1b1cd93cf564a258bff5aa3550c5f0fbbe192feab854fb171acc566aad0d41c982ef6cd931eede18423e924d063635c0feab3bbbc54adf
7
- data.tar.gz: 237d70baa1b562348b643c3bba83e4769a32d8c9dadd9a9bdf73400f2c11c50f6574273feaebf31ea93f312083be9ec3f05943c151442544c25097762efe9c93
6
+ metadata.gz: 1cc988d087d62e496054eccba11ce65ec7fe9f8dbce697ee83eafd0634d1f60ffb44863ac1210dd6a0012c6d78306896fc7d96a5c0bd17cc7a926da5068617c8
7
+ data.tar.gz: 66ac85e05e6c84c2cbf8413b4495b5502578bc736f244a2862f1601b1c1770a70b0c4bae75d19aed2c62efc5e28bcb19860cd28da2dc19677d949bcf0dbeae78
data/CHANGELOG.md CHANGED
@@ -1,4 +1,17 @@
1
- ## 1.0.6 (unreleased)
1
+ ## 1.0.7 (March 13, 2013)
2
+
3
+ - Detect if a newer version of Vagrant ran and error if it did,
4
+ because we're not forward-compatible.
5
+ - Check for guest additions version AFTER booting. [GH-1179]
6
+ - Quote IdentityFile in `ssh-config` so private keys with spaces in
7
+ the path work. [GH-1322]
8
+ - Fix issue where multiple Puppet module paths can be re-ordered [GH-964]
9
+ - Shell provisioner won't hang on Windows anymore due to unclosed
10
+ tempfile. [GH-1040]
11
+ - Retry setting default VM name, since it sometimes fails first time. [GH-1368]
12
+ - Support setting hostname on Suse [GH-1063]
13
+
14
+ ## 1.0.6 (December 21, 2012)
2
15
 
3
16
  - Shell provisioner outputs proper line endings on Windows [GH-1164]
4
17
  - SSH upload opens file to stream which fixes strange upload issues.
@@ -49,6 +49,7 @@ module Vagrant
49
49
  use VM::SaneDefaults
50
50
  use VM::Customize
51
51
  use VM::Boot
52
+ use VM::CheckGuestAdditions
52
53
  end
53
54
  end
54
55
 
@@ -104,7 +105,6 @@ module Vagrant
104
105
  use VM::CheckAccessible
105
106
  use VM::CheckBox
106
107
  use VM::Import
107
- use VM::CheckGuestAdditions
108
108
  use VM::DefaultName
109
109
  use VM::MatchMACAddress
110
110
  use registry.get(:start)
@@ -427,7 +427,7 @@ module Vagrant
427
427
  end
428
428
 
429
429
  def set_name(name)
430
- execute("modifyvm", @uuid, "--name", name)
430
+ execute("modifyvm", @uuid, "--name", name, :retryable => true)
431
431
  end
432
432
 
433
433
  def share_folders(folders)
@@ -446,6 +446,11 @@ module Vagrant
446
446
  DEFAULT_HOME))
447
447
  @logger.info("Home path: #{@home_path}")
448
448
 
449
+ # If the setup_version file exists, then we can't load because we're
450
+ # not forward compatible. It means they ran a future version of Vagrant.
451
+ raise Errors::IncompatibleWithFutureVersion, :path => @home_path.to_s if \
452
+ @home_path.join("setup_version").file?
453
+
449
454
  # Setup the array of necessary home directories
450
455
  dirs = [@home_path]
451
456
  dirs += HOME_SUBDIRS.collect { |subdir| @home_path.join(subdir) }
@@ -198,6 +198,10 @@ module Vagrant
198
198
  error_key(:home_dir_not_accessible)
199
199
  end
200
200
 
201
+ class IncompatibleWithFutureVersion < VagrantError
202
+ error_key(:incompatible_with_future_version)
203
+ end
204
+
201
205
  class ForwardPortAutolistEmpty < VagrantError
202
206
  status_code(27)
203
207
  error_key(:auto_empty, "vagrant.actions.vm.forward_ports")
@@ -4,6 +4,14 @@ module Vagrant
4
4
  def network_scripts_dir
5
5
  '/etc/sysconfig/network/'
6
6
  end
7
+ def change_host_name(name)
8
+ # Only do this if the hostname is not already set
9
+ if !vm.channel.test("sudo hostname | grep '#{name}'")
10
+ vm.channel.sudo("echo #{name} > /etc/HOSTNAME")
11
+ vm.channel.sudo("hostname #{name}")
12
+ vm.channel.sudo("sed -i 's@^\\(127[.]0[.]0[.]1[[:space:]]\\+\\)@\\1#{name} #{name.split('.')[0]} @' /etc/hosts")
13
+ end
14
+ end
7
15
  end
8
16
  end
9
17
  end
@@ -117,9 +117,9 @@ module Vagrant
117
117
  end
118
118
 
119
119
  def set_module_paths
120
- @module_paths = {}
120
+ @module_paths = []
121
121
  @expanded_module_paths.each_with_index do |path, i|
122
- @module_paths[path] = File.join(config.pp_path, "modules-#{i}")
122
+ @module_paths << [path, File.join(config.pp_path, "modules-#{i}")]
123
123
  end
124
124
  end
125
125
 
@@ -136,7 +136,8 @@ module Vagrant
136
136
 
137
137
  def run_puppet_client
138
138
  options = [config.options].flatten
139
- options << "--modulepath '#{@module_paths.values.join(':')}'" if !@module_paths.empty?
139
+ module_paths = @module_paths.map { |_, to| to }
140
+ options << "--modulepath '#{module_paths.join(':')}'" if !@module_paths.empty?
140
141
  options << @manifest_file
141
142
  options = options.join(" ")
142
143
 
@@ -68,6 +68,7 @@ module Vagrant
68
68
  begin
69
69
  file.write(config.inline)
70
70
  file.fsync
71
+ file.close
71
72
  yield file.path
72
73
  ensure
73
74
  file.close
@@ -2,5 +2,5 @@ module Vagrant
2
2
  # This will always be up to date with the current version of Vagrant,
3
3
  # since it is used to generate the gemspec and is also the source of
4
4
  # the version for `vagrant -v`
5
- VERSION = "1.0.6"
5
+ VERSION = "1.0.7"
6
6
  end
@@ -5,7 +5,7 @@ Host <%= host_key %>
5
5
  UserKnownHostsFile /dev/null
6
6
  StrictHostKeyChecking no
7
7
  PasswordAuthentication no
8
- IdentityFile <%= private_key_path %>
8
+ IdentityFile "<%= private_key_path %>"
9
9
  IdentitiesOnly yes
10
10
  <% if forward_agent -%>
11
11
  ForwardAgent yes
@@ -74,6 +74,18 @@ en:
74
74
  directory that Vagrant uses must be both readable and writable.
75
75
 
76
76
  You specified: %{home_path}
77
+ incompatible_with_future_version: |-
78
+ It appears that you've ran a newer version of Vagrant on this
79
+ computer. Unfortunately, newer versions of Vagrant change internal
80
+ directory layouts that cause older versions to break. This version
81
+ of Vagrant cannot properly run.
82
+
83
+ If you'd like to start from a clean state, please remove the
84
+ Vagrant state directory: %{path}
85
+
86
+ Warning that this will remove all your boxes and potentially corrupt
87
+ existing Vagrant environments that were running based on the future
88
+ version.
77
89
  interrupted: |-
78
90
  Vagrant exited after cleanup due to external interrupt.
79
91
  multi_vm_required: |-
data/vagrant.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency "childprocess", "~> 0.3.1"
19
19
  s.add_dependency "erubis", "~> 2.7.0"
20
20
  s.add_dependency "i18n", "~> 0.6.0"
21
- s.add_dependency "json", "~> 1.5.1"
21
+ s.add_dependency "json", ">= 1.5.1", "< 1.8.0"
22
22
  s.add_dependency "log4r", "~> 1.1.9"
23
23
  s.add_dependency "net-ssh", "~> 2.2.2"
24
24
  s.add_dependency "net-scp", "~> 1.0.4"
data/vagrant.gemspecbak CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency "childprocess", "~> 0.3.1"
19
19
  s.add_dependency "erubis", "~> 2.7.0"
20
20
  s.add_dependency "i18n", "~> 0.6.0"
21
- s.add_dependency "json", "~> 1.5.1"
21
+ s.add_dependency "json", ">= 1.5.1", "< 1.8.0"
22
22
  s.add_dependency "log4r", "~> 1.1.9"
23
23
  s.add_dependency "net-ssh", "~> 2.2.2"
24
24
  s.add_dependency "net-scp", "~> 1.0.4"
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrantup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto
@@ -71,16 +71,22 @@ dependencies:
71
71
  name: json
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.5.1
77
+ - - <
78
+ - !ruby/object:Gem::Version
79
+ version: 1.8.0
77
80
  type: :runtime
78
81
  prerelease: false
79
82
  version_requirements: !ruby/object:Gem::Requirement
80
83
  requirements:
81
- - - ~>
84
+ - - '>='
82
85
  - !ruby/object:Gem::Version
83
86
  version: 1.5.1
87
+ - - <
88
+ - !ruby/object:Gem::Version
89
+ version: 1.8.0
84
90
  - !ruby/object:Gem::Dependency
85
91
  name: log4r
86
92
  requirement: !ruby/object:Gem::Requirement
@@ -708,6 +714,7 @@ files:
708
714
  - vagrantup-1.0.3.gem
709
715
  - vagrantup-1.0.4.gem
710
716
  - vagrantup-1.0.5.gem
717
+ - vagrantup-1.0.6.gem
711
718
  - vagrantup-1.1.4.gem
712
719
  homepage: http://vagrantup.com
713
720
  licenses: []