opennebula-provider 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/opennebula-provider/config.rb +3 -0
- data/lib/opennebula-provider/helpers/fog.rb +1 -0
- data/lib/opennebula-provider/version.rb +1 -1
- data/locales/en.yml +5 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce8761d10b8a666d4de49abc3bf470bb181cb6c3a80f75030d37ee2c4563ac2
|
4
|
+
data.tar.gz: 86b8d5482280aa76fb415d0699ee95e3be3f79f53fa9ff1af038985ff5fffbcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de86142384225983e2eb7c5cd1674e3214242385e54d78fa2475b5dd24bbad9659f5d83bec795eed4c6adef5c88da00f438217eef8c9fa0c47e7a1e6bc8560c3
|
7
|
+
data.tar.gz: 10ca5ad8a473bbb20d7cbfc15aedc8b3522b0d4fb19240c60254671bb86937257babe7ada2340af8e68bdee8f898876a75508a974f2ee1f2f25640987328e95a
|
data/README.md
CHANGED
@@ -48,6 +48,7 @@ end
|
|
48
48
|
* `cpu` - An instance cpus
|
49
49
|
* `vcpu` - An instance virtual cpus
|
50
50
|
* `disk_size` - Disk size, in MB, for templates with ONLY one disk
|
51
|
+
* `user_variables` - An instance specified variables (like 'CPU_MODEL = [ MODEL = host-passthrough ]')
|
51
52
|
|
52
53
|
You can use `template_name` parameters instead `template_id` to define template by name and if there are multiple templates with the same name will be used the most recent.
|
53
54
|
|
@@ -15,6 +15,7 @@ module VagrantPlugins
|
|
15
15
|
attr_accessor :cpu
|
16
16
|
attr_accessor :vcpu
|
17
17
|
attr_accessor :disk_size
|
18
|
+
attr_accessor :user_variables
|
18
19
|
|
19
20
|
def initialize
|
20
21
|
@endpoint = ENV['ONE_XMLRPC'] || ENV['ONE_ENDPOINT'] || UNSET_VALUE
|
@@ -30,6 +31,7 @@ module VagrantPlugins
|
|
30
31
|
@cpu = UNSET_VALUE
|
31
32
|
@vcpu = UNSET_VALUE
|
32
33
|
@disk_size = UNSET_VALUE
|
34
|
+
@user_variables = UNSET_VALUE
|
33
35
|
end
|
34
36
|
|
35
37
|
def finalize!
|
@@ -55,6 +57,7 @@ module VagrantPlugins
|
|
55
57
|
@vcpu = @cpu
|
56
58
|
end
|
57
59
|
@disk_size = nil if @disk_size == UNSET_VALUE
|
60
|
+
@user_variables = nil if @user_variables == UNSET_VALUE
|
58
61
|
end
|
59
62
|
|
60
63
|
def validate(machine)
|
@@ -69,6 +69,7 @@ module VagrantPlugins
|
|
69
69
|
if @provider_config.disk_size != nil
|
70
70
|
newvm.flavor.disk["SIZE"] = @provider_config.disk_size
|
71
71
|
end
|
72
|
+
newvm.flavor.user_variables = @provider_config.user_variables unless @provider_config.user_variables.nil?
|
72
73
|
@logger.warn "Deploying VM with options #{newvm.flavor.inspect}"
|
73
74
|
vm = newvm.save
|
74
75
|
vm.id
|
data/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opennebula-provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cherdancev Evgeni
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opennebula
|
@@ -127,7 +127,7 @@ homepage: ''
|
|
127
127
|
licenses:
|
128
128
|
- MIT
|
129
129
|
metadata: {}
|
130
|
-
post_install_message:
|
130
|
+
post_install_message:
|
131
131
|
rdoc_options: []
|
132
132
|
require_paths:
|
133
133
|
- lib
|
@@ -142,8 +142,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
- !ruby/object:Gem::Version
|
143
143
|
version: '0'
|
144
144
|
requirements: []
|
145
|
-
rubygems_version: 3.1.
|
146
|
-
signing_key:
|
145
|
+
rubygems_version: 3.1.4
|
146
|
+
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: OpenNebula provider for Vagrant
|
149
149
|
test_files: []
|