vagrant-vsphere 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.rubocop_todo.yml +1 -1
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/vSphere/action.rb +1 -0
- data/lib/vSphere/action/clone.rb +0 -5
- data/lib/vSphere/action/is_running.rb +0 -4
- data/lib/vSphere/action/power_on.rb +0 -5
- data/lib/vSphere/version.rb +1 -1
- data/locales/en.yml +1 -5
- data/spec/spec_helper.rb +2 -1
- metadata +3 -4
- data/lib/vSphere/util/machine_helpers.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7747b951188bee2b8908f9273b0b50600a84bc7c
|
4
|
+
data.tar.gz: 2cc6660d48609b56c3e0b413b88f0d9c97c763c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f9b21cd04aad4d2af7885f0a4c447016b413b5649706074b9bb3e4d2fc6e9f7ef597d805f848dc4d1d5c1c8fb6fe965e0dc26dbdfbd35d7d3a3c618772217f2
|
7
|
+
data.tar.gz: b22d5a1351afd85c1f6cdb53da5152a5d0d4a70df5c3ccaf5acfb0941d6ab4cd8c8bf27b6158cecea7ee436eab8ea64c4734ecb26b1f6f8559c2624f97b8dee9
|
data/.bumpversion.cfg
CHANGED
data/.rubocop_todo.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## [1.6.0 (2016-01-21)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.6.0)
|
2
|
+
|
3
|
+
- Use Vagrant core API instead of waiting for SSH communicator, which should
|
4
|
+
resolve some WinRM connection issues
|
5
|
+
([mkuzmin:wait-winrm](https://github.com/nsidc/vagrant-vsphere/pull/162)).
|
6
|
+
|
1
7
|
## [1.5.0 (2015-09-08)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.5.0)
|
2
8
|
|
3
9
|
- Add support for custom attributes
|
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.6.0**
|
23
23
|
|
24
|
-
vagrant-vsphere (**version: 1.
|
24
|
+
vagrant-vsphere (**version: 1.6.0**) is available from
|
25
25
|
[RubyGems.org](https://rubygems.org/gems/vagrant-vsphere)
|
26
26
|
|
27
27
|
## Installation
|
data/lib/vSphere/action.rb
CHANGED
data/lib/vSphere/action/clone.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
require 'rbvmomi'
|
2
2
|
require 'i18n'
|
3
3
|
require 'vSphere/util/vim_helpers'
|
4
|
-
require 'vSphere/util/machine_helpers'
|
5
4
|
|
6
5
|
module VagrantPlugins
|
7
6
|
module VSphere
|
8
7
|
module Action
|
9
8
|
class Clone
|
10
9
|
include Util::VimHelpers
|
11
|
-
include Util::MachineHelpers
|
12
10
|
|
13
11
|
def initialize(app, _env)
|
14
12
|
@app = app
|
@@ -92,9 +90,6 @@ module VagrantPlugins
|
|
92
90
|
|
93
91
|
machine.id = new_vm.config.uuid
|
94
92
|
|
95
|
-
# wait for SSH to be available
|
96
|
-
wait_for_ssh env
|
97
|
-
|
98
93
|
env[:ui].info I18n.t('vsphere.vm_clone_success')
|
99
94
|
|
100
95
|
@app.call env
|
@@ -1,7 +1,6 @@
|
|
1
1
|
require 'rbvmomi'
|
2
2
|
require 'i18n'
|
3
3
|
require 'vSphere/util/vim_helpers'
|
4
|
-
require 'vSphere/util/machine_helpers'
|
5
4
|
require 'vSphere/util/vm_helpers'
|
6
5
|
|
7
6
|
module VagrantPlugins
|
@@ -10,7 +9,6 @@ module VagrantPlugins
|
|
10
9
|
class PowerOn
|
11
10
|
include Util::VimHelpers
|
12
11
|
include Util::VmHelpers
|
13
|
-
include Util::MachineHelpers
|
14
12
|
|
15
13
|
def initialize(app, _env)
|
16
14
|
@app = app
|
@@ -22,9 +20,6 @@ module VagrantPlugins
|
|
22
20
|
env[:ui].info I18n.t('vsphere.power_on_vm')
|
23
21
|
power_on_vm(vm)
|
24
22
|
|
25
|
-
# wait for SSH to be available
|
26
|
-
wait_for_ssh env
|
27
|
-
|
28
23
|
@app.call env
|
29
24
|
end
|
30
25
|
end
|
data/lib/vSphere/version.rb
CHANGED
data/locales/en.yml
CHANGED
@@ -7,7 +7,7 @@ en:
|
|
7
7
|
requesting_sdrs_recommendation: |-
|
8
8
|
Calling vSphere RecommendDatastores with StoragePlacementSpec of the following settings:
|
9
9
|
vm_clone_success: |-
|
10
|
-
New virtual machine successfully cloned
|
10
|
+
New virtual machine successfully cloned
|
11
11
|
destroy_vm: |-
|
12
12
|
Calling vSphere Destroy
|
13
13
|
power_off_vm: |-
|
@@ -20,10 +20,6 @@ en:
|
|
20
20
|
The VM has not been created
|
21
21
|
vm_not_running: |-
|
22
22
|
The VM is not running
|
23
|
-
waiting_for_ssh: |-
|
24
|
-
Waiting for SSH to become available...
|
25
|
-
waiting_for_winrm: |-
|
26
|
-
Waiting for WinRM to become available...
|
27
23
|
|
28
24
|
errors:
|
29
25
|
missing_template: |-
|
data/spec/spec_helper.rb
CHANGED
@@ -68,6 +68,7 @@ RSpec.configure do |config|
|
|
68
68
|
hostname: nil,
|
69
69
|
communicator: nil,
|
70
70
|
networks: [[:private_network, { ip: '0.0.0.0' }]],
|
71
|
+
boot_timeout: 1,
|
71
72
|
graceful_halt_timeout: 0.1),
|
72
73
|
validate: []
|
73
74
|
)
|
@@ -76,7 +77,7 @@ RSpec.configure do |config|
|
|
76
77
|
:provider_config => provider_config,
|
77
78
|
:config => vm_config,
|
78
79
|
:state => double('state', id: nil),
|
79
|
-
:communicate => double('communicator', :ready? => true),
|
80
|
+
:communicate => double('communicator', :wait_for_ready => true, :ready? => true),
|
80
81
|
:ssh_info => {},
|
81
82
|
:data_dir => Pathname.new(''),
|
82
83
|
:id => nil,
|
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.6.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:
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -160,7 +160,6 @@ files:
|
|
160
160
|
- lib/vSphere/errors.rb
|
161
161
|
- lib/vSphere/plugin.rb
|
162
162
|
- lib/vSphere/provider.rb
|
163
|
-
- lib/vSphere/util/machine_helpers.rb
|
164
163
|
- lib/vSphere/util/vim_helpers.rb
|
165
164
|
- lib/vSphere/util/vm_helpers.rb
|
166
165
|
- lib/vSphere/version.rb
|
@@ -197,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
196
|
version: '0'
|
198
197
|
requirements: []
|
199
198
|
rubyforge_project:
|
200
|
-
rubygems_version: 2.
|
199
|
+
rubygems_version: 2.0.14
|
201
200
|
signing_key:
|
202
201
|
specification_version: 4
|
203
202
|
summary: VMWare vSphere provider
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module VagrantPlugins
|
2
|
-
module VSphere
|
3
|
-
module Util
|
4
|
-
module MachineHelpers
|
5
|
-
def wait_for_ssh(env)
|
6
|
-
if !env[:machine].config.vm.communicator.nil? && env[:machine].config.vm.communicator == :winrm
|
7
|
-
env[:ui].info(I18n.t('vsphere.waiting_for_winrm'))
|
8
|
-
else
|
9
|
-
env[:ui].info(I18n.t('vsphere.waiting_for_ssh'))
|
10
|
-
end
|
11
|
-
|
12
|
-
loop do
|
13
|
-
break if env[:machine].communicate.ready?
|
14
|
-
sleep 5
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|