vagrant-vsphere 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b812be9bc8072e0a5fd2e90840dcd2724b5c239
4
- data.tar.gz: 6e0e38a843fc07386977d31ba92652c566199a91
3
+ metadata.gz: e49d547203d8ee98f795bfe1be9e273bc7c61c2d
4
+ data.tar.gz: 3e289e73eac5c025b66b6f048381aa46cc8ec019
5
5
  SHA512:
6
- metadata.gz: e72303a3dd7c5d58036dd4dba0de2e875ddb15c0497e3e3970cc110a07e976e654349cf7ae29ad54cb0615fadcf225fd8f0750d215ae38a51adf62c7c27a2559
7
- data.tar.gz: c554e098237ca92e41f1ff1ee079d8ac0503cc22b6286d9d88be88a792016e7e13c6d1ccaa404a011ad547dfab6c8765f426c42c3ebe4358bd6ab02acadffba6
6
+ metadata.gz: 3d89a596244ca10223e04c6e9dd3f9625a74900610c8edebddcf4395ea20d294f9dbb780681740434e9232483cc55adce974dad2a2a35a0e06d607a6a78796d2
7
+ data.tar.gz: 140c1fa914ad99c287070cdbf5cc79c6912956a31b9dc1c099eb96ccb244f6ffe6346627a53e781b8554b6f5d263a30ffedb2c056d104eacbdebb9c894570291
data/.bumpversion.cfg CHANGED
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 1.1.0
2
+ current_version = 1.2.0
3
3
  tag = true
4
4
  commit = true
5
5
 
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
- ## 1.1.0 (2015-07-09)
1
+ ## [1.2.0 (2015-07-09)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.2.0)
2
+
3
+ - Add `public_address` provider capability
4
+ ([mkuzmin:public-address](https://github.com/nsidc/vagrant-vsphere/pull/130))
5
+ - Documentation update
6
+ ([standaloneSA:update-readme](https://github.com/nsidc/vagrant-vsphere/pull/133))
7
+
8
+ ## [1.1.0 (2015-07-09)](https://github.com/nsidc/vagrant-vsphere/releases/tag/v1.1.0)
2
9
 
3
10
  - Add explicit support for parallelization
4
11
  ([xlucas:xlucas-patch-parallelization](https://github.com/nsidc/vagrant-vsphere/pull/126))
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.1.0**
22
+ **version: 1.2.0**
23
23
 
24
- vagrant-vsphere (**version: 1.1.0**) is available from
24
+ vagrant-vsphere (**version: 1.2.0**) is available from
25
25
  [RubyGems.org](https://rubygems.org/gems/vagrant-vsphere)
26
26
 
27
27
  ## Installation
@@ -72,7 +72,7 @@ Vagrant.configure("2") do |config|
72
72
  vsphere.host = 'HOST NAME OF YOUR VSPHERE INSTANCE'
73
73
  vsphere.compute_resource_name = 'YOUR COMPUTE RESOURCE'
74
74
  vsphere.resource_pool_name = 'YOUR RESOURCE POOL'
75
- vsphere.template_name = 'YOUR VM TEMPLATE'
75
+ vsphere.template_name = '/PATH/TO/YOUR VM TEMPLATE'
76
76
  vsphere.name = 'NEW VM NAME'
77
77
  vsphere.user = 'YOUR VMWARE USER'
78
78
  vsphere.password = 'YOUR VMWARE PASSWORD'
@@ -115,7 +115,7 @@ This provider has the following settings, all are required unless noted:
115
115
  cloning from a template, uses the root resource pool
116
116
  * `clone_from_vm` - _Optional_ use a virtual machine instead of a template as
117
117
  the source for the cloning operation
118
- * `template_name` - the VM or VM template to clone
118
+ * `template_name` - the VM or VM template to clone (including the full folder path)
119
119
  * `vm_base_path` - _Optional_ path to folder where new VM should be created, if
120
120
  not specified template's parent folder will be used
121
121
  * `name` - _Optional_ name of the new VM, if missing the name will be auto
@@ -0,0 +1,15 @@
1
+ module VagrantPlugins
2
+ module VSphere
3
+ module Cap
4
+ module PublicAddress
5
+ def self.public_address(machine)
6
+ return nil if machine.state.id != :running
7
+
8
+ ssh_info = machine.ssh_info
9
+ return nil unless ssh_info
10
+ ssh_info[:host]
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -30,6 +30,11 @@ module VagrantPlugins
30
30
  Provider
31
31
  end
32
32
 
33
+ provider_capability('vsphere', 'public_address') do
34
+ require_relative 'cap/public_address'
35
+ Cap::PublicAddress
36
+ end
37
+
33
38
  def self.setup_i18n
34
39
  I18n.load_path << File.expand_path('locales/en.yml', VSphere.source_root)
35
40
  I18n.reload!
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VSphere
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Grauch
@@ -155,6 +155,7 @@ files:
155
155
  - lib/vSphere/action/message_not_running.rb
156
156
  - lib/vSphere/action/power_off.rb
157
157
  - lib/vSphere/action/power_on.rb
158
+ - lib/vSphere/cap/public_address.rb
158
159
  - lib/vSphere/config.rb
159
160
  - lib/vSphere/errors.rb
160
161
  - lib/vSphere/plugin.rb