kitchen-hyperv 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/hyperv.rb +1 -0
- data/lib/kitchen/driver/hyperv_version.rb +1 -1
- data/lib/kitchen/driver/powershell.rb +8 -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: 3e919e00b790582d9fcb8f8ec5d82107d3c78678
|
4
|
+
data.tar.gz: 4c37d0721342ce5c3a6cbf130b1f01e478c3c960
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6121d3bdd601993baa94ed9f42545c7044527e4f8a6483ba60c9c4a422aa6bf1acfa6250ae4f4ade938d43a20c62f091102291989d39b1fd49d4f5dfd134cb9b
|
7
|
+
data.tar.gz: 3624ac9206839cec7ada2f8e6c97404773563e6e71e36cf395678ae9acba844ff8dc8733b8dff1ee640a6d8f57d1021865508d0b9a12fd4f676e661ce0e84552
|
@@ -52,6 +52,7 @@ module Kitchen
|
|
52
52
|
default_config :enable_guest_services
|
53
53
|
default_config :vm_note
|
54
54
|
default_config :resize_vhd
|
55
|
+
default_config :additional_disks
|
55
56
|
default_config :vm_generation, 1
|
56
57
|
default_config :disable_secureboot, false
|
57
58
|
default_config :disk_type do |driver|
|
@@ -123,12 +123,19 @@ module Kitchen
|
|
123
123
|
DynamicMemoryMaxBytes = #{config[:dynamic_memory_max_bytes]}
|
124
124
|
boot_iso_path = "#{boot_iso_path}"
|
125
125
|
EnableGuestServices = "#{config[:enable_guest_services]}"
|
126
|
-
|
126
|
+
#{additional_disks}
|
127
127
|
}
|
128
128
|
New-KitchenVM @NewVMParams | ConvertTo-Json
|
129
129
|
NEWVM
|
130
130
|
end
|
131
131
|
|
132
|
+
def additional_disks
|
133
|
+
return if config[:additional_disks].nil?
|
134
|
+
<<-EOH
|
135
|
+
AdditionalDisks = @("#{@additional_disk_objects.join('","')}")
|
136
|
+
EOH
|
137
|
+
end
|
138
|
+
|
132
139
|
def vm_details_ps
|
133
140
|
<<-DETAILS
|
134
141
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-hyperv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Murawski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|