kitchen-digitalocean 0.10.6 → 0.10.7
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/digitalocean.rb +22 -33
- data/lib/kitchen/driver/digitalocean_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: fce6edc2a0bff67201d4a3db40ca1d786416028c164f099b5c1da82f16712c7b
|
4
|
+
data.tar.gz: 6d35e47885940bd14e7ffcc57cf7bdfc07dcbb418ca92b9fa2bee5e2bc3a1770
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93e92da4e01c434468719368da2e8a971d8bf82c5688350e485cb14bdc57bd95907fb10fa72cd9e70eda8eb0336e5e40f4163b7813d23cb86af95941f12ce1ea
|
7
|
+
data.tar.gz: 4e0424a83db5049abcb667ecb3cfabd46f948b9c23f41396bc2e995fdac5c8706ea2e75fd8307716de5889cc87151accda5118f199c12973914b091bcb84976b
|
@@ -57,6 +57,26 @@ module Kitchen
|
|
57
57
|
required_config :digitalocean_access_token
|
58
58
|
required_config :ssh_key_ids
|
59
59
|
|
60
|
+
PLATFORM_SLUG_MAP = {
|
61
|
+
'centos-6' => 'centos-6-x64',
|
62
|
+
'centos-7' => 'centos-7-x64',
|
63
|
+
'centos-8' => 'centos-8-x64',
|
64
|
+
'coreos-stable' => 'coreos-stable',
|
65
|
+
'coreos-beta' => 'coreos-beta',
|
66
|
+
'coreos-alpha' => 'coreos-alpha',
|
67
|
+
'debian-9' => 'debian-9-x64',
|
68
|
+
'debian-10' => 'debian-10-x64',
|
69
|
+
'fedora-30' => 'fedora-30-x64',
|
70
|
+
'fedora-31' => 'fedora-31-x64',
|
71
|
+
'fedora-32' => 'fedora-32-x64',
|
72
|
+
'freebsd-11' => 'freebsd-11-x64-zfs',
|
73
|
+
'freebsd-12' => 'freebsd-12-x64-zfs',
|
74
|
+
'ubuntu-16' => 'ubuntu-16-04-x64',
|
75
|
+
'ubuntu-18' => 'ubuntu-18-04-x64',
|
76
|
+
'ubuntu-19' => 'ubuntu-19-10-x64',
|
77
|
+
'ubuntu-20' => 'ubuntu-20-04-x64'
|
78
|
+
}.freeze
|
79
|
+
|
60
80
|
def create(state)
|
61
81
|
server = create_server
|
62
82
|
|
@@ -132,8 +152,8 @@ module Kitchen
|
|
132
152
|
# platform => slug mappings, and falls back to using just the platform as
|
133
153
|
# provided if it can't find a mapping.
|
134
154
|
def default_image
|
135
|
-
|
136
|
-
|
155
|
+
PLATFORM_SLUG_MAP.fetch(instance.platform.name,
|
156
|
+
instance.platform.name)
|
137
157
|
end
|
138
158
|
|
139
159
|
# Generate what should be a unique server name up to 63 total chars
|
@@ -209,37 +229,6 @@ module Kitchen
|
|
209
229
|
def debug_client_config
|
210
230
|
debug("digitalocean_api_key #{config[:digitalocean_access_token]}")
|
211
231
|
end
|
212
|
-
|
213
|
-
def platform_to_slug_mapping
|
214
|
-
{
|
215
|
-
'centos-6' => 'centos-6-x64',
|
216
|
-
'centos-7' => 'centos-7-x64',
|
217
|
-
'centos-8' => 'centos-8-x64',
|
218
|
-
'coreos-stable' => 'coreos-stable-x64',
|
219
|
-
'coreos-beta' => 'coreos-beta-x64',
|
220
|
-
'coreos-alpha' => 'coreos-alpha-x64',
|
221
|
-
'debian-7' => 'debian-7-x64',
|
222
|
-
'debian-8' => 'debian-8-x64',
|
223
|
-
'debian-9' => 'debian-9-x64',
|
224
|
-
'debian-10' => 'debian-10-x64',
|
225
|
-
'fedora-27' => 'fedora-27-x64',
|
226
|
-
'fedora-28' => 'fedora-28-x64',
|
227
|
-
'fedora-29' => 'fedora-29-x64',
|
228
|
-
'fedora-30' => 'fedora-30-x64',
|
229
|
-
'fedora-31' => 'fedora-31-x64',
|
230
|
-
'freebsd-12' => 'freebsd-12-x64-zfs',
|
231
|
-
'freebsd-11.2' => 'freebsd-11-2-x64-zfs',
|
232
|
-
'freebsd-11.1' => 'freebsd-11-1-x64-zfs',
|
233
|
-
'freebsd-11.0' => 'freebsd-11-0-x64-zfs',
|
234
|
-
'freebsd-10.3' => 'freebsd-10-3-x64-zfs',
|
235
|
-
'freebsd-10.4' => 'freebsd-10-4-x64-zfs',
|
236
|
-
'ubuntu-14' => 'ubuntu-14-04-x64',
|
237
|
-
'ubuntu-16' => 'ubuntu-16-04-x64',
|
238
|
-
'ubuntu-17' => 'ubuntu-17-10-x64',
|
239
|
-
'ubuntu-18' => 'ubuntu-18-04-x64',
|
240
|
-
'ubuntu-19' => 'ubuntu-19-04-x64'
|
241
|
-
}
|
242
|
-
end
|
243
232
|
end
|
244
233
|
end
|
245
234
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-digitalocean
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Fitzgerald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: droplet_kit
|