vagrant-vsphere 1.1.0 → 1.2.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 +8 -1
- data/README.md +4 -4
- data/lib/vSphere/cap/public_address.rb +15 -0
- data/lib/vSphere/plugin.rb +5 -0
- data/lib/vSphere/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e49d547203d8ee98f795bfe1be9e273bc7c61c2d
|
4
|
+
data.tar.gz: 3e289e73eac5c025b66b6f048381aa46cc8ec019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d89a596244ca10223e04c6e9dd3f9625a74900610c8edebddcf4395ea20d294f9dbb780681740434e9232483cc55adce974dad2a2a35a0e06d607a6a78796d2
|
7
|
+
data.tar.gz: 140c1fa914ad99c287070cdbf5cc79c6912956a31b9dc1c099eb96ccb244f6ffe6346627a53e781b8554b6f5d263a30ffedb2c056d104eacbdebb9c894570291
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
## 1.
|
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.
|
22
|
+
**version: 1.2.0**
|
23
23
|
|
24
|
-
vagrant-vsphere (**version: 1.
|
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
|
data/lib/vSphere/plugin.rb
CHANGED
@@ -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!
|
data/lib/vSphere/version.rb
CHANGED
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.
|
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
|