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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbef5fa6546d02a6640139df510994167fc3aec4b38b483e20cf4ae9145d72ba
4
- data.tar.gz: facb440cf915760ddb4e85635b8a566cde4f6ac3a1fdb51fb59dad09a8acbdee
3
+ metadata.gz: 0dd2e52b6caaad86c96fbf6f165fbdadf674515e2cc58c1162a105af76091ba2
4
+ data.tar.gz: 7eb3089775e7f9ebc52118e9619a2fd0c0eafdd9ba0509cecdd10dabbfd71e7a
5
5
  SHA512:
6
- metadata.gz: ba40b559d0a0fcdd9b8c3559b2a69cb668ba3c7811efc6b7b002ca7fd97e8f94cea7f1b35c6cf89060621eb239ddfa9fbd04761f98f28e54d8c952a3dfda6e9c
7
- data.tar.gz: 2f99a8edd8f3349b54c290fdd250ad06e0e876569729a2355c91bbb606baef3f848f1d2a051a9150077623b443155eec87fd466ef57781d7db857bbeebc819d1
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
@@ -20,6 +20,6 @@ module Kitchen
20
20
  module Driver
21
21
 
22
22
  # Version string for Vagrant Kitchen driver
23
- VAGRANT_VERSION = "1.9.0".freeze
23
+ VAGRANT_VERSION = "1.12.0".freeze
24
24
  end
25
25
  end
@@ -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
- p.customize ["createhd", "--filename", "<%= item[:filename] %>", "--size", <%= item[:size] %>]
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.9.0
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: 2021-07-02 00:00:00.000000000 Z
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.5'
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.15
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.