knife-google 5.0.15 → 5.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b9ab5cc3b07fa6d01cc8cc070f11d1d3c08ef95e2ab878210320050d85d45bb
4
- data.tar.gz: 34eafac9565635b5ac58ce61ef66cc55c90b03e119bc3ec9bc4d679fcf70f395
3
+ metadata.gz: e7e32ca411635738ef21aaaf8d475a923533e640b080e4527be3cb3e7ed6812e
4
+ data.tar.gz: 6e0c467377c11ec3668160f785c56948d93e8237cf790f70831eb05a41778886
5
5
  SHA512:
6
- metadata.gz: 5a2b1a1a0d7701dc27c31f9e0c36ee17c69a4fc4a5b343433587fdfafdb9829ecf1b9b953da3c1cfaaa6e10b27bfc75940ca4726d371d1b1352af6aa76950972
7
- data.tar.gz: 46250262c726559eb8ffcde3e7656a0c77a44fdb96f29e8931932d6910653dd3578f7921d9b2ef98b52d9aa8ec7e2c27621d2cd79380d931796b863138b09626
6
+ metadata.gz: 3b93ea77a1e66022effe912432e995bc1d94dac02e621c8bd29f00868a2f387f770c53c649d12ba0e38680aa211a382db14def4e6e0dc68432eb6e64326f88c0
7
+ data.tar.gz: b95a0d9ba332a040ff940ec4accaef1222dd174f050f137e64cea5ffa051ed645256c4c5da2f02c31c546e1001a90a92d2d27e827c3ced024cf6962d216510c2
@@ -150,6 +150,12 @@ class Chef::Knife::Cloud
150
150
  long: "--gce-email EMAIL_ADDRESS",
151
151
  description: "email address of the logged-in Google Cloud user; required for bootstrapping windows hosts"
152
152
 
153
+ option :winpass_timeout,
154
+ long: "--winpass-timeout SECS",
155
+ description: "Timeout in seconds for the Windows password reset operation via gcewinpass. Defaults to 120.",
156
+ default: 120,
157
+ proc: proc { |secs| secs.to_i }
158
+
153
159
  option :local_ssd,
154
160
  long: "--gce-local-ssd",
155
161
  description: "Local SSDs are physically attached to the server that hosts your VM instance. Local SSDs have higher throughput and lower latency than standard persistent disks or SSD persistent disks.",
@@ -296,14 +302,16 @@ class Chef::Knife::Cloud
296
302
  end
297
303
 
298
304
  def reset_windows_password
299
- GoogleComputeWindowsPassword.new(
305
+ opts = {
300
306
  project: project,
301
307
  zone: zone,
302
308
  instance_name: instance_name,
303
309
  email: email,
304
310
  username: config[:connection_user],
305
- debug: gcewinpass_debug_mode
306
- ).new_password
311
+ debug: gcewinpass_debug_mode,
312
+ }
313
+ opts[:timeout] = config[:winpass_timeout] unless config[:winpass_timeout].nil?
314
+ GoogleComputeWindowsPassword.new(**opts).new_password
307
315
  end
308
316
 
309
317
  def gcewinpass_debug_mode
@@ -15,7 +15,7 @@
15
15
  #
16
16
  module Knife
17
17
  module Google
18
- VERSION = "5.0.15"
18
+ VERSION = "5.0.17"
19
19
  MAJOR, MINOR, TINY = VERSION.split(".")
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.15
4
+ version: 5.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chiraq Jog
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2026-02-12 00:00:00.000000000 Z
16
+ date: 2026-06-26 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: knife