kitchen-ec2 3.8.0 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aac8aebec145ee67e00276453fd2f8a1aaae0466d58bec03ffdc8b368f001118
|
4
|
+
data.tar.gz: f14c9b4f85a0ebd1bf5c6398efc54b93e195e465ef4fc1c944688f96f53f1d39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1e8f020cde0872c27abade96517dae1dcafa5d50aa4b08245ec928adfc024e309cc1977e5bdaebb30f3dfcea1f463ee01dabfe62baf4a0640b8bce527aa80b4
|
7
|
+
data.tar.gz: 958a08022889c1bef5e0becc8cd75d53b5a0cd68445043c0c934bdc9a03822afcd9cc6f6dc49f15fe63928933f61f6d383d3b3bd3b7ad278d851f2c4957726a1
|
@@ -210,10 +210,10 @@ module Kitchen
|
|
210
210
|
images = images.sort_by(&:creation_date).reverse
|
211
211
|
# P5: We prefer x86_64 over i386 (if available)
|
212
212
|
images = prefer(images) { |image| image.architecture == "x86_64" }
|
213
|
-
# P4: We prefer
|
213
|
+
# P4: We prefer (SSD) (if available)
|
214
214
|
images = prefer(images) do |image|
|
215
215
|
image.block_device_mappings.any? do |b|
|
216
|
-
b.device_name == image.root_device_name && b.ebs && b.ebs.volume_type ==
|
216
|
+
b.device_name == image.root_device_name && b.ebs && %w{gp3 gp2}.any? { |t| b.ebs.volume_type == t }
|
217
217
|
end
|
218
218
|
end
|
219
219
|
# P3: We prefer ebs over instance_store (if available)
|
@@ -23,8 +23,8 @@ module Kitchen
|
|
23
23
|
class Debian < StandardPlatform
|
24
24
|
StandardPlatform.platforms["debian"] = self
|
25
25
|
|
26
|
-
#
|
27
|
-
# and
|
26
|
+
# 11/12 are listed last since we default to the first item in the hash
|
27
|
+
# and 11/12 are not released yet. When they're released move them up
|
28
28
|
DEBIAN_CODENAMES = {
|
29
29
|
10 => "buster",
|
30
30
|
9 => "stretch",
|
data/lib/kitchen/driver/ec2.rb
CHANGED
@@ -56,7 +56,8 @@ module Kitchen
|
|
56
56
|
default_config :shared_credentials_profile, ENV["AWS_PROFILE"]
|
57
57
|
default_config :availability_zone, nil
|
58
58
|
default_config :instance_type, &:default_instance_type
|
59
|
-
default_config :ebs_optimized,
|
59
|
+
default_config :ebs_optimized, false
|
60
|
+
default_config :delete_on_termination, true
|
60
61
|
default_config :security_group_ids, nil
|
61
62
|
default_config :security_group_filter, nil
|
62
63
|
default_config :security_group_cidr_ip, "0.0.0.0/0"
|
@@ -318,17 +319,14 @@ module Kitchen
|
|
318
319
|
end
|
319
320
|
|
320
321
|
def default_instance_type
|
321
|
-
@instance_type ||=
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
"t1.micro"
|
330
|
-
end
|
331
|
-
end
|
322
|
+
@instance_type ||= if image && image.virtualization_type == "hvm"
|
323
|
+
info("instance_type not specified. Using free tier t2.micro instance ...")
|
324
|
+
"t2.micro"
|
325
|
+
else
|
326
|
+
info("instance_type not specified. Using free tier t1.micro instance since" \
|
327
|
+
" image is paravirtual (pick an hvm image to use the superior t2.micro!) ...")
|
328
|
+
"t1.micro"
|
329
|
+
end
|
332
330
|
end
|
333
331
|
|
334
332
|
# The actual platform is the platform detected from the image
|
@@ -459,12 +457,10 @@ module Kitchen
|
|
459
457
|
|
460
458
|
errs = []
|
461
459
|
configs.each do |conf|
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
errs.append(e)
|
467
|
-
end
|
460
|
+
@config = conf
|
461
|
+
return submit_spot
|
462
|
+
rescue => e
|
463
|
+
errs.append(e)
|
468
464
|
end
|
469
465
|
raise ["Could not create a spot instance:", errs].flatten.join("\n")
|
470
466
|
end
|
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.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fletcher Nichol
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -64,90 +64,6 @@ dependencies:
|
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '4.0'
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: rspec
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - "~>"
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '3.2'
|
74
|
-
type: :development
|
75
|
-
prerelease: false
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - "~>"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '3.2'
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: countloc
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - "~>"
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '0.4'
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - "~>"
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '0.4'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: maruku
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - "~>"
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0.6'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '0.6'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: yard
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - ">="
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: 0.9.11
|
116
|
-
type: :development
|
117
|
-
prerelease: false
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: 0.9.11
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: chefstyle
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - '='
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: 1.4.4
|
130
|
-
type: :development
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - '='
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: 1.4.4
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: climate_control
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '0'
|
144
|
-
type: :development
|
145
|
-
prerelease: false
|
146
|
-
version_requirements: !ruby/object:Gem::Requirement
|
147
|
-
requirements:
|
148
|
-
- - ">="
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: '0'
|
151
67
|
description: A Test Kitchen Driver for Amazon EC2
|
152
68
|
email:
|
153
69
|
- fnichol@nichol.ca
|
@@ -182,14 +98,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
98
|
requirements:
|
183
99
|
- - ">="
|
184
100
|
- !ruby/object:Gem::Version
|
185
|
-
version: '2.
|
101
|
+
version: '2.5'
|
186
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
103
|
requirements:
|
188
104
|
- - ">="
|
189
105
|
- !ruby/object:Gem::Version
|
190
106
|
version: '0'
|
191
107
|
requirements: []
|
192
|
-
rubygems_version: 3.
|
108
|
+
rubygems_version: 3.2.15
|
193
109
|
signing_key:
|
194
110
|
specification_version: 4
|
195
111
|
summary: A Test Kitchen Driver for Amazon EC2
|