vagrant-google 2.6.0 → 2.7.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: 22135d118cd7749f09bab503e584dce947d56ce3dbe1fe7d43624be1d8edd9bf
4
- data.tar.gz: 4d4e3e45565c5a3ce26494ba5942000d404791a46045a990b866ebd401cb4d1a
3
+ metadata.gz: e73203fa43c1cabe0743140ded9044c95a64205d087742bab467ea297ab84020
4
+ data.tar.gz: 1c3caa2a146208ead776c380062c2e6624c04c47ecfd71feb7f8098ea2e86c06
5
5
  SHA512:
6
- metadata.gz: ed1cb603bd11da1e6d402490e3a92cc683e2c1060a7982c2809b39fa86200ec62a5921791df6c954e45482918b84531d4df8437c3da368b99df717ac2dfac03f
7
- data.tar.gz: fbe0d8f7cb29a6d386cb7d501c3057acf426f390c93146c6acfe23274cc83a422c44a09bf1119c8295f0b92547e79d2e9477cca3e0a9aab1ba3543aa093bbb15
6
+ metadata.gz: cbfae2e6b86e8435d9a0ac43e31002d150de566234c642742ef08120112182c3b2b037e88c2e7bdd465ad25147d36aa35991deb1977929d63f93ab2abe64dcf1
7
+ data.tar.gz: 38575138577c86d47d85630c1fe92a16bba8b686db894bf54bdddb548819100959ceaceeea3038472d656d593025778c3fe9d1b5691427f4fe95adca10dd7896
data/.ruby-version CHANGED
@@ -1,2 +1,2 @@
1
- 2.6.6
2
- # Tracking Vagrant 2.2.9
1
+ 2.7.4
2
+ # Tracking Vagrant 2.2.19
data/CHANGELOG.md CHANGED
@@ -5,6 +5,17 @@ The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1
5
5
  ## Next
6
6
 
7
7
 
8
+ ## 2.7.0 (November 2021)
9
+
10
+ ### User-facing
11
+
12
+ #### Added
13
+
14
+ - \#255 Adds enable_display option [dcode]
15
+ - \#248 Use google_application_default credentials by default [pecigonzalo]
16
+
17
+ ## 2.6.0 (December 2020)
18
+
8
19
  ### User-facing
9
20
 
10
21
  #### Added
@@ -38,6 +38,8 @@ module VagrantPlugins
38
38
 
39
39
  unless provider_config.google_json_key_location.nil?
40
40
  fog_config[:google_json_key_location] = find_key(provider_config.google_json_key_location, env)
41
+ else
42
+ fog_config[:google_application_default] = true
41
43
  end
42
44
 
43
45
  @logger.info("Creating Google API client and adding to Vagrant environment")
@@ -72,6 +72,7 @@ module VagrantPlugins
72
72
  additional_disks = zone_config.additional_disks
73
73
  accelerators = zone_config.accelerators
74
74
  enable_secure_boot = zone_config.enable_secure_boot
75
+ enable_display = zone_config.enable_display
75
76
  enable_vtpm = zone_config.enable_vtpm
76
77
  enable_integrity_monitoring = zone_config.enable_integrity_monitoring
77
78
 
@@ -107,6 +108,7 @@ module VagrantPlugins
107
108
  env[:ui].info(" -- Additional Disks: #{additional_disks}")
108
109
  env[:ui].info(" -- Accelerators: #{accelerators}")
109
110
  env[:ui].info(" -- Secure Boot: #{enable_secure_boot}") if enable_secure_boot
111
+ env[:ui].info(" -- Display Device: #{enable_display}") if enable_display
110
112
  env[:ui].info(" -- vTPM: #{enable_vtpm}") if enable_vtpm
111
113
  env[:ui].info(" -- Integrity Monitoring: #{enable_integrity_monitoring}") if enable_integrity_monitoring
112
114
 
@@ -153,6 +155,9 @@ module VagrantPlugins
153
155
  # Munge shieldedInstance config
154
156
  shielded_instance_config = { :enable_secure_boot => enable_secure_boot, :enable_vtpm => enable_vtpm, :enable_integrity_monitoring => enable_integrity_monitoring }
155
157
 
158
+ # Munge displayDevice config
159
+ display_device = { :enable_display => enable_display }
160
+
156
161
  begin
157
162
  request_start_time = Time.now.to_i
158
163
  disk = nil
@@ -294,6 +299,10 @@ module VagrantPlugins
294
299
  defaults[:shielded_instance_config] = shielded_instance_config
295
300
  end
296
301
 
302
+ if display_device.has_value?(true)
303
+ defaults[:display_device] = display_device
304
+ end
305
+
297
306
  server = env[:google_compute].servers.create(defaults)
298
307
  @logger.info("Machine '#{zone}:#{name}' created.")
299
308
  rescue *FOG_ERRORS => e
@@ -193,6 +193,11 @@ module VagrantPlugins
193
193
  # @return Boolean
194
194
  attr_accessor :enable_secure_boot
195
195
 
196
+ # whether the instance has a display enabled
197
+ #
198
+ # @return Boolean
199
+ attr_accessor :enable_display
200
+
196
201
  # whether the instance has the vTPM enabled
197
202
  #
198
203
  # @return Boolean
@@ -238,6 +243,7 @@ module VagrantPlugins
238
243
  @setup_winrm_password = UNSET_VALUE
239
244
  @accelerators = []
240
245
  @enable_secure_boot = UNSET_VALUE
246
+ @enable_display = UNSET_VALUE
241
247
  @enable_vtpm = UNSET_VALUE
242
248
  @enable_integrity_monitoring = UNSET_VALUE
243
249
 
@@ -421,6 +427,9 @@ module VagrantPlugins
421
427
  # enable_secure_boot defaults to nil
422
428
  @enable_secure_boot = false if @enable_secure_boot == UNSET_VALUE
423
429
 
430
+ # enable_display defaults to nil
431
+ @enable_display = false if @enable_display == UNSET_VALUE
432
+
424
433
  # enable_vtpm defaults to nil
425
434
  @enable_vtpm = false if @enable_vtpm == UNSET_VALUE
426
435
 
@@ -13,6 +13,6 @@
13
13
  # limitations under the License.
14
14
  module VagrantPlugins
15
15
  module Google
16
- VERSION = "2.6.0".freeze
16
+ VERSION = "2.7.0".freeze
17
17
  end
18
18
  end
@@ -28,14 +28,14 @@ Gem::Specification.new do |s|
28
28
  s.required_rubygems_version = ">= 1.3.6"
29
29
  s.rubyforge_project = "vagrant-google"
30
30
 
31
- s.add_runtime_dependency "fog-google", "~> 1.12.0"
31
+ s.add_runtime_dependency "fog-google", "~> 1.17.0"
32
32
 
33
33
  # This is a restriction to avoid errors on `failure_message_for_should`
34
34
  # TODO: revise after vagrant_spec goes past >0.0.1 (at master@e623a56)
35
35
  s.add_development_dependency "rspec-legacy_formatters"
36
36
 
37
37
  s.add_development_dependency "rake", ">= 13.0.1"
38
- s.add_development_dependency "rspec", ">= 3.5.0", "<= 3.6"
38
+ s.add_development_dependency "rspec", ">= 3.10", "< 4.0"
39
39
  s.add_development_dependency "rspec-its", "~> 1.2"
40
40
  s.add_development_dependency "rubocop", "~> 0.83"
41
41
  s.add_development_dependency "rubocop-performance", "~> 1.5.2"
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Johnson
8
8
  - Artem Yakimenko
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-12-08 00:00:00.000000000 Z
12
+ date: 2021-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-google
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.12.0
20
+ version: 1.17.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.12.0
27
+ version: 1.17.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec-legacy_formatters
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -59,20 +59,20 @@ dependencies:
59
59
  requirements:
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 3.5.0
63
- - - "<="
62
+ version: '3.10'
63
+ - - "<"
64
64
  - !ruby/object:Gem::Version
65
- version: '3.6'
65
+ version: '4.0'
66
66
  type: :development
67
67
  prerelease: false
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 3.5.0
73
- - - "<="
72
+ version: '3.10'
73
+ - - "<"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.6'
75
+ version: '4.0'
76
76
  - !ruby/object:Gem::Dependency
77
77
  name: rspec-its
78
78
  requirement: !ruby/object:Gem::Requirement
@@ -235,7 +235,7 @@ files:
235
235
  homepage: http://www.vagrantup.com
236
236
  licenses: []
237
237
  metadata: {}
238
- post_install_message:
238
+ post_install_message:
239
239
  rdoc_options: []
240
240
  require_paths:
241
241
  - lib
@@ -250,8 +250,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  version: 1.3.6
252
252
  requirements: []
253
- rubygems_version: 3.0.3
254
- signing_key:
253
+ rubygems_version: 3.2.22
254
+ signing_key:
255
255
  specification_version: 4
256
256
  summary: Vagrant provider plugin for Google Compute Engine.
257
257
  test_files: []