rbvmomi 1.11.0 → 1.11.1
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/CONTRIBUTORS.md +1 -0
- data/lib/rbvmomi/utils/deploy.rb +14 -13
- data/lib/rbvmomi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f0f66fdcf3334ebe5cba85d508ee98c57ab0272
|
4
|
+
data.tar.gz: 77ee93d4385549f23c48bc8ce8b16ee09438fbd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d346a942e12eb1e2b670d72d589bcbd41f58f0344c9b37aff7b833ee7e7275541721ea1fa22ce4a9ae05a9c25ee5fa1ce2aa1f6ecba6f70903b2b34339adc17
|
7
|
+
data.tar.gz: 688d2c4f43832cea83a229bdb0d3382b5c0a4e0cc3150c411a5e836ebb320dca3b35626ac865c065969f49de5c89bffd86b504de2d953070589f4e96be88baf2
|
data/CONTRIBUTORS.md
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
* Erik Peterson <erik@subwindow.com>
|
14
14
|
* Fabio Rapposelli <fabio@rapposelli.org>
|
15
15
|
* Giuliano <giuliano@108.bz>
|
16
|
+
* Guido Günther <agx@sigxcpu.org>
|
16
17
|
* Hari Krishnamurthy <hkrishna@vmware.com>
|
17
18
|
* J.R. Garcia <jr@garciaole.com>
|
18
19
|
* Jacob Evans <jacob@dekz.net>
|
data/lib/rbvmomi/utils/deploy.rb
CHANGED
@@ -81,18 +81,17 @@ class CachedOvfDeployer
|
|
81
81
|
# it to be marked as a template. This way, the cost of uploading and keeping
|
82
82
|
# the full size of the VM is only paid once.
|
83
83
|
# @param ovf_url [String] URL to the OVF to be deployed. Currently only http
|
84
|
-
#
|
84
|
+
# and https are supported.
|
85
85
|
# @param template_name [String] Name of the template to be used. Should be the
|
86
|
-
#
|
87
|
-
#
|
88
|
-
# @option opts [int]
|
89
|
-
#
|
90
|
-
# the OVF upload.
|
86
|
+
# same name for the same URL. A cluster specific post-fix will automatically
|
87
|
+
# be added.
|
88
|
+
# @option opts [int] :run_without_interruptions Whether or not to disable
|
89
|
+
# SIGINT and SIGTERM during the OVF upload.
|
91
90
|
# @option opts [Hash] :config VM Config delta to apply after the OVF deploy is
|
92
|
-
#
|
93
|
-
#
|
91
|
+
# done. Allows the template to be customized, e.g. to set annotations.
|
92
|
+
# @option opts [Boolean] :no_delta Whether or not to add a delta disk layer.
|
94
93
|
# @return [VIM::VirtualMachine] The template as a VIM::VirtualMachine instance
|
95
|
-
def upload_ovf_as_template
|
94
|
+
def upload_ovf_as_template(ovf_url, template_name, opts = {})
|
96
95
|
# Optimization: If there happens to be a fully prepared template, then
|
97
96
|
# there is no need to do the complicated OVF upload dance
|
98
97
|
template = lookup_template template_name
|
@@ -188,10 +187,12 @@ class CachedOvfDeployer
|
|
188
187
|
# prepare it for (linked) cloning and mark it as a template to signal
|
189
188
|
# we are done.
|
190
189
|
if !wait_for_template
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
190
|
+
if opts[:no_delta] != true
|
191
|
+
config = opts[:config] || {}
|
192
|
+
config = vm.update_spec_add_delta_disk_layer_on_all_disks(config)
|
193
|
+
# XXX: Should we add a version that does retries?
|
194
|
+
vm.ReconfigVM_Task(:spec => config).wait_for_completion
|
195
|
+
end
|
195
196
|
vm.MarkAsTemplate
|
196
197
|
end
|
197
198
|
end
|
data/lib/rbvmomi/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbvmomi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Lane
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|