kitchen-ec2 3.17.1 → 3.19.0
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/aws/instance_generator.rb +37 -0
- data/lib/kitchen/driver/ec2_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 190d4a65e276d10988fe40ce6e941c573ce6e0df2f9763cb7ad49d9cff418801
|
4
|
+
data.tar.gz: c636a468c610e0d928ca536c384ae1b1c8c4b5974f041b8cd872fbf743daf027
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be3206cb0bf7f105e3c2d0112c66f15cc15f66e43500ba82c7a9805c6a6319b2666fce134572f5e2f74180cc942134375f7528183f59e2a91dfdc9030e4d02c4
|
7
|
+
data.tar.gz: 3e60192858d30036537af3575a8a3a25a4a7594f83d09e3155f46103050cf00b22772ae40ca993098739e394c50e2606f535c6bbdc7fc6a0bb08264835dc4781
|
@@ -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.19.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:
|
11
|
+
date: 2024-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-ec2
|
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
103
|
requirements:
|
104
104
|
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '
|
106
|
+
version: '3.1'
|
107
107
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - ">="
|