kitchen-ec2 3.17.1 → 3.18.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/lib/kitchen/driver/aws/instance_generator.rb +37 -0
- data/lib/kitchen/driver/ec2_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a5e24ca8e2d208d63f7079597ea3d8c3773eab8d82891ec1052f226dfb0d3b2
|
|
4
|
+
data.tar.gz: 6bd3c4846bc622f399ee748e2e5e15d5aaf1dc2b70d8db875ac3d20897fdb58e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9016a081a3b1cd4cfc2bcf57e02df07a6f3225b610a2087ef45dd5d5da3fb8dc9db823675283cb7e6eba5c0cb90174b705244bed5222eedf3211a06cf06a7659
|
|
7
|
+
data.tar.gz: 3ec395554c6ff841f46be8610b2b6c7ae9b19d58af87c3b786589df73950cbbb3864b533691fd2015ec075d29697ec850b381e99fadd3f17762799d953523dc4
|
|
@@ -189,6 +189,43 @@ module Kitchen
|
|
|
189
189
|
i[:placement] = { tenancy: }
|
|
190
190
|
end
|
|
191
191
|
end
|
|
192
|
+
placement = config[:placement]
|
|
193
|
+
if placement
|
|
194
|
+
unless i.key?(:placement)
|
|
195
|
+
i[:placement] = {}
|
|
196
|
+
end
|
|
197
|
+
if placement[:affinity]
|
|
198
|
+
i[:placement][:affinity] = placement[:affinity]
|
|
199
|
+
end
|
|
200
|
+
if placement[:availability_zone]
|
|
201
|
+
i[:placement][:availability_zone] = placement[:availability_zone]
|
|
202
|
+
end
|
|
203
|
+
if placement[:group_id] && !placement[:group_name]
|
|
204
|
+
i[:placement][:group_id] = placement[:group_id]
|
|
205
|
+
end
|
|
206
|
+
if placement[:group_name] && !placement[:group_id]
|
|
207
|
+
i[:placement][:group_name] = placement[:group_name]
|
|
208
|
+
end
|
|
209
|
+
if placement[:host_id]
|
|
210
|
+
i[:placement][:host_id] = placement[:host_id]
|
|
211
|
+
end
|
|
212
|
+
if placement[:host_resource_group_arn]
|
|
213
|
+
i[:placement][:host_resource_group_arn] = placement[:host_resource_group_arn]
|
|
214
|
+
end
|
|
215
|
+
if placement[:partition_number]
|
|
216
|
+
i[:placement][:partition_number] = placement[:partition_number]
|
|
217
|
+
end
|
|
218
|
+
if placement[:tenancy]
|
|
219
|
+
i[:placement][:tenancy] = placement[:tenancy]
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
license_specifications = config[:licenses]
|
|
223
|
+
if license_specifications
|
|
224
|
+
i[:licenses] = []
|
|
225
|
+
license_specifications.each do |license_configuration_arn|
|
|
226
|
+
i[:licenses].append({ license_configuration_arn: license_configuration_arn[:license_configuration_arn] })
|
|
227
|
+
end
|
|
228
|
+
end
|
|
192
229
|
unless config[:instance_initiated_shutdown_behavior].nil? ||
|
|
193
230
|
config[:instance_initiated_shutdown_behavior].empty?
|
|
194
231
|
i[:instance_initiated_shutdown_behavior] = config[:instance_initiated_shutdown_behavior]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-ec2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.18.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Test Kitchen Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-11-
|
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-ec2
|