vagrant-vsphere 1.11.1 → 1.12.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.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +11 -0
- data/README.md +6 -3
- data/lib/vSphere/action/clone.rb +1 -1
- data/lib/vSphere/action/get_ssh_info.rb +1 -0
- data/lib/vSphere/config.rb +3 -0
- data/lib/vSphere/version.rb +1 -1
- data/spec/get_ssh_info_spec.rb +9 -0
- data/spec/spec_helper.rb +2 -1
- data/vSphere.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33c983107b8df23738c00d4aea0222fb30658c44
|
4
|
+
data.tar.gz: 25a77163f89f2ae0955a90bdc5cf56448c2a1f97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 131a0aec11980da13868f349ea9d909c6215a5f5039465a3a79b964fb28e512497b84a981d225d7292e8f42d7bb541d34108543c484a9835e0d651d240a40e1e
|
7
|
+
data.tar.gz: 3cb13e789acc3b185a9b6563736128d29df961bcdce984dffea92a83883ec5477ad3d6b6450598c353a5e3f564b1678dd812347be5c2e90a95f6a189898a6a7c
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## [1.12.0 (2017-03-07)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.12.0)
|
2
|
+
|
3
|
+
- Make `wait_for_sysprep` functionality configurable (see README.md for
|
4
|
+
details). Defaults to `false` to resolve
|
5
|
+
#222. ([nsidc:make-sysprep-configurable](https://github.com/nsidc/vagrant-vsphere/pull/235))
|
6
|
+
- Fix issue (#231) where finding no adapters while waiting for the IP address
|
7
|
+
to be ready broke the `up`
|
8
|
+
process. ([nsidc:fix-filter-ssh](https://github.com/nsidc/vagrant-vsphere/pull/234))
|
9
|
+
- Fix installation of vagrant-vsphere under Vagrant
|
10
|
+
1.9.2. ([nsidc:fix-install-with-1.9.2](https://github.com/nsidc/vagrant-vsphere/pull/233))
|
11
|
+
|
1
12
|
## [1.11.1 (2017-02-27)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.11.1)
|
2
13
|
- Fix 'real_nic_ip' filter logic bug
|
3
14
|
([vagrant-vsphere:fix_ssh_ip_selection](https://github.com/nsidc/vagrant-vsphere/pull/229))
|
data/README.md
CHANGED
@@ -19,9 +19,9 @@ This provider is built on top of the
|
|
19
19
|
* libxml2, libxml2-dev, libxslt, libxslt-dev
|
20
20
|
|
21
21
|
## Current Version
|
22
|
-
**version: 1.
|
22
|
+
**version: 1.12.0**
|
23
23
|
|
24
|
-
vagrant-vsphere (**version: 1.
|
24
|
+
vagrant-vsphere (**version: 1.12.0**) is available from
|
25
25
|
[RubyGems.org](https://rubygems.org/gems/vagrant-vsphere)
|
26
26
|
|
27
27
|
## Installation
|
@@ -149,8 +149,11 @@ This provider has the following settings, all are required unless noted:
|
|
149
149
|
for a target VM to be retrieved from the list of vm adapters on the host and filtered for a single legitimate
|
150
150
|
adapter with a defined interface. An error will be raised if this filter is enabled and multiple valid
|
151
151
|
adapters exist on a host.
|
152
|
-
* `ip_address_timeout`
|
152
|
+
* `ip_address_timeout` - _Optional_ Maximum number of seconds to wait while an
|
153
153
|
IP address is obtained
|
154
|
+
* `wait_for_sysprep` - _Optional_ Boolean. Enable waiting for Windows machines to reboot
|
155
|
+
during the sysprep process
|
156
|
+
([#199](https://github.com/nsidc/vagrant-vsphere/pull/199)). Defaults to `false`.
|
154
157
|
|
155
158
|
### Cloning from a VM rather than a template
|
156
159
|
|
data/lib/vSphere/action/clone.rb
CHANGED
@@ -106,7 +106,7 @@ module VagrantPlugins
|
|
106
106
|
|
107
107
|
machine.id = new_vm.config.uuid
|
108
108
|
|
109
|
-
wait_for_sysprep(env, new_vm, connection, 600, 10) if machine.config.vm.guest.eql?(:windows)
|
109
|
+
wait_for_sysprep(env, new_vm, connection, 600, 10) if config.wait_for_sysprep && machine.config.vm.guest.eql?(:windows)
|
110
110
|
|
111
111
|
env[:ui].info I18n.t('vsphere.vm_clone_success')
|
112
112
|
|
@@ -24,6 +24,7 @@ module VagrantPlugins
|
|
24
24
|
interfaces = vm.guest.net.select { |g| g.deviceConfigId > 0 }
|
25
25
|
ip_addresses = interfaces.map { |i| i.ipConfig.ipAddress.select { |a| a.state == 'preferred' } }.flatten
|
26
26
|
|
27
|
+
return nil if ip_addresses.empty?
|
27
28
|
fail Errors::VSphereError.new, :'multiple_interface_with_real_nic_ip_set' if ip_addresses.size > 1
|
28
29
|
ip_addresses.first.ipAddress
|
29
30
|
end
|
data/lib/vSphere/config.rb
CHANGED
@@ -30,17 +30,20 @@ module VagrantPlugins
|
|
30
30
|
attr_accessor :extra_config
|
31
31
|
attr_accessor :real_nic_ip
|
32
32
|
attr_accessor :notes
|
33
|
+
attr_accessor :wait_for_sysprep
|
33
34
|
|
34
35
|
attr_reader :custom_attributes
|
35
36
|
|
36
37
|
def initialize
|
37
38
|
@ip_address_timeout = UNSET_VALUE
|
39
|
+
@wait_for_sysprep = UNSET_VALUE
|
38
40
|
@custom_attributes = {}
|
39
41
|
@extra_config = {}
|
40
42
|
end
|
41
43
|
|
42
44
|
def finalize!
|
43
45
|
@ip_address_timeout = 240 if @ip_address_timeout == UNSET_VALUE
|
46
|
+
@wait_for_sysprep = false if @wait_for_sysprep == UNSET_VALUE
|
44
47
|
end
|
45
48
|
|
46
49
|
def custom_attribute(key, value)
|
data/lib/vSphere/version.rb
CHANGED
data/spec/get_ssh_info_spec.rb
CHANGED
@@ -116,6 +116,15 @@ describe VagrantPlugins::VSphere::Action::GetSshInfo do
|
|
116
116
|
expect(@env[:machine_ssh_info][:host]).to eq IP_ADDRESS
|
117
117
|
end
|
118
118
|
|
119
|
+
context 'when the VM networking is uninitialized' do
|
120
|
+
before do
|
121
|
+
allow(@vm.guest).to receive(:net) { [] }
|
122
|
+
end
|
123
|
+
it 'should set the ssh info to nil if no valid adapters are present' do
|
124
|
+
call
|
125
|
+
expect(@env[:machine_ssh_info]).to eq nil
|
126
|
+
end
|
127
|
+
end
|
119
128
|
end
|
120
129
|
end
|
121
130
|
end
|
data/spec/spec_helper.rb
CHANGED
data/vSphere.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
# force the use of at least rbvmomi 1.8.2 to work around concurrency errors:
|
17
17
|
# https://github.com/nsidc/vagrant-vsphere/issues/139
|
18
18
|
s.add_dependency 'rbvmomi', '>=1.8.2', '<2.0.0'
|
19
|
-
s.add_dependency 'i18n', '>=
|
19
|
+
s.add_dependency 'i18n', '>=0.6.4', '<=0.8.0'
|
20
20
|
|
21
21
|
s.add_development_dependency 'rake', '11.1.2' # pinned to accommodate rubocop 0.32.1
|
22
22
|
s.add_development_dependency 'rspec-core'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vsphere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Grauch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -51,7 +51,7 @@ dependencies:
|
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 0.6.4
|
54
|
-
- - "
|
54
|
+
- - "<="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 0.8.0
|
57
57
|
type: :runtime
|
@@ -61,7 +61,7 @@ dependencies:
|
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: 0.6.4
|
64
|
-
- - "
|
64
|
+
- - "<="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 0.8.0
|
67
67
|
- !ruby/object:Gem::Dependency
|