kitchen-vagrant 1.9.0 → 1.12.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/vagrant.rb +5 -2
- data/lib/kitchen/driver/vagrant_version.rb +1 -1
- data/templates/Vagrantfile.erb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0dd2e52b6caaad86c96fbf6f165fbdadf674515e2cc58c1162a105af76091ba2
|
4
|
+
data.tar.gz: 7eb3089775e7f9ebc52118e9619a2fd0c0eafdd9ba0509cecdd10dabbfd71e7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d0ec7ff709b99b891db05fc08e662325b80c6b24e2d29c7467cdae9bdbedd672dc2feba49b48779a1707b94607dc33d1bb2bdae8c12bf1e27a78d71d382ff2f
|
7
|
+
data.tar.gz: db7b86f055614e95daf6db56ef15fdb8dbdc0e8ed6c169ad2be7856ca5ead7de5b1868779a8d72afeeb933a3657bedea93380833e8c5e7ec466c4fa374e776f1
|
@@ -78,6 +78,8 @@ module Kitchen
|
|
78
78
|
|
79
79
|
default_config :synced_folders, []
|
80
80
|
|
81
|
+
default_config :use_cached_chef_client, false
|
82
|
+
|
81
83
|
default_config :vagrant_binary, "vagrant"
|
82
84
|
|
83
85
|
default_config :vagrantfile_erb,
|
@@ -245,7 +247,7 @@ module Kitchen
|
|
245
247
|
# box
|
246
248
|
# @api private
|
247
249
|
def bento_box?(name)
|
248
|
-
name =~ /^(centos|debian|fedora|freebsd|opensuse|ubuntu|oracle|hardenedbsd|amazonlinux|almalinux)-/
|
250
|
+
name =~ /^(centos|debian|fedora|freebsd|opensuse|ubuntu|oracle|hardenedbsd|amazonlinux|almalinux|rockylinux|springdalelinux)-/
|
249
251
|
end
|
250
252
|
|
251
253
|
# Returns whether or not the we expect the box to work with shared folders
|
@@ -256,7 +258,7 @@ module Kitchen
|
|
256
258
|
def safe_share?(box)
|
257
259
|
return false if /(hyperv|libvirt)/.match?(config[:provider])
|
258
260
|
|
259
|
-
box =~ %r{^bento/(centos|debian|fedora|opensuse|ubuntu|oracle|amazonlinux|almalinux)-}
|
261
|
+
box =~ %r{^bento/(centos|debian|fedora|opensuse|ubuntu|oracle|amazonlinux|almalinux|rockylinux|springdalelinux)-}
|
260
262
|
end
|
261
263
|
|
262
264
|
# Return true if we found the criteria to enable the cache_directory
|
@@ -264,6 +266,7 @@ module Kitchen
|
|
264
266
|
def enable_cache?
|
265
267
|
return false unless config[:cache_directory]
|
266
268
|
return true if safe_share?(config[:box])
|
269
|
+
return true if config[:use_cached_chef_client]
|
267
270
|
|
268
271
|
# Otherwise
|
269
272
|
false
|
data/templates/Vagrantfile.erb
CHANGED
@@ -173,7 +173,9 @@ Vagrant.configure("2") do |c|
|
|
173
173
|
<% if key == :createhd %>
|
174
174
|
<% value = [value] unless value.instance_of?(Array) %>
|
175
175
|
<% value.each do |item| %>
|
176
|
-
|
176
|
+
unless File.file?("<%= item[:filename] %>")
|
177
|
+
p.customize ["createhd", "--filename", "<%= item[:filename] %>", "--size", <%= item[:size] %>]
|
178
|
+
end
|
177
179
|
<% end %>
|
178
180
|
<% elsif key == :storageattach || key == :storagectl %>
|
179
181
|
<% value = [value] unless value.instance_of?(Array) %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-vagrant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.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: 2022-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -55,14 +55,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
55
|
requirements:
|
56
56
|
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version: '2.
|
58
|
+
version: '2.6'
|
59
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.2.
|
65
|
+
rubygems_version: 3.2.3
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Kitchen::Driver::Vagrant - A Vagrant Driver for Test Kitchen.
|