vagrant-vsphere 1.5.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bde84889640454ab4fc3e756f28c8d1c949c70bf
4
- data.tar.gz: 0268d91280e5ce182635227087062b0b53ecddf0
3
+ metadata.gz: 7747b951188bee2b8908f9273b0b50600a84bc7c
4
+ data.tar.gz: 2cc6660d48609b56c3e0b413b88f0d9c97c763c4
5
5
  SHA512:
6
- metadata.gz: 35828ef6c5a0e9f2f76f6d962d2f3108656cd1e303e05cc563686d1c178fd38148e9b2e756f7e4f6fcda032dd63d149f15feb3507f3af0d3fefdc6b5319b3446
7
- data.tar.gz: 98e6c963cee7eecb7ecaac8650ee97783b4e050cbbedfb8ad839726149feb42dde3e432c440c735aec2b5482d4fa5b7dc9027a1738d42689a7a0fcccb09e861b
6
+ metadata.gz: 9f9b21cd04aad4d2af7885f0a4c447016b413b5649706074b9bb3e4d2fc6e9f7ef597d805f848dc4d1d5c1c8fb6fe965e0dc26dbdfbd35d7d3a3c618772217f2
7
+ data.tar.gz: b22d5a1351afd85c1f6cdb53da5152a5d0d4a70df5c3ccaf5acfb0941d6ab4cd8c8bf27b6158cecea7ee436eab8ea64c4734ecb26b1f6f8559c2624f97b8dee9
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 1.5.0
2
+ current_version = 1.6.0
3
3
  tag = true
4
4
  commit = true
5
5
 
data/.rubocop_todo.yml CHANGED
@@ -35,7 +35,7 @@ Metrics/MethodLength:
35
35
  # Offense count: 1
36
36
  # Configuration parameters: CountComments.
37
37
  Metrics/ModuleLength:
38
- Max: 161
38
+ Max: 162
39
39
 
40
40
  # Offense count: 3
41
41
  Metrics/PerceivedComplexity:
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.5.0**
22
+ **version: 1.6.0**
23
23
 
24
- vagrant-vsphere (**version: 1.5.0**) is available from
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
@@ -109,6 +109,7 @@ module VagrantPlugins
109
109
  b2.use PowerOn unless env[:result]
110
110
  end
111
111
  b.use CloseVSphere
112
+ b.use WaitForCommunicator
112
113
  b.use Provision
113
114
  b.use SyncedFolders
114
115
  b.use SetHostname
@@ -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,11 +1,7 @@
1
- require 'vSphere/util/machine_helpers'
2
-
3
1
  module VagrantPlugins
4
2
  module VSphere
5
3
  module Action
6
4
  class IsRunning
7
- include Util::MachineHelpers
8
-
9
5
  def initialize(app, _env)
10
6
  @app = app
11
7
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VSphere
3
- VERSION = '1.5.0'
3
+ VERSION = '1.6.0'
4
4
  end
5
5
  end
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 and started
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.5.0
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: 2015-09-08 00:00:00.000000000 Z
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.4.6
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