vagrant-parallels 2.2.4 → 2.2.5

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: 3069fda3f88a140459a882ee8e9afbc59079e49f6b05d1d13f4505c0c86df4b7
4
- data.tar.gz: 6862da240eac05e3fd35e79f2c9dd4ef47b0fcd32b4558d0ae66f99fe3e1fc2c
3
+ metadata.gz: ede8c43d4ad31a4ad5cec8ecf94158e93a825ea959bf4a2cbf5da1b1428108ad
4
+ data.tar.gz: 0e56a44dcbd181577e69ef04525be3278a86fd6c0ccb41139635a19176d3768e
5
5
  SHA512:
6
- metadata.gz: 295b8617a454d081415e7e0fb68fb5485b0581d948c8481c415816079307e1fe1e43be5af695d1f2d98c74f2b5fb6e6b88a515397163aecf79795f7a0bf3c1ba
7
- data.tar.gz: b368159177283a7b5202fc12c03d7781cbdc58e32685a22910cbbb86a79dc8691f4e0af279c28f05231da355f137be4e11d1131a1e96b2c8415ae1c49c3b41c4
6
+ metadata.gz: a283f0ebedc0074f277fd902725d6724b1db7a7c822621885f5df8bba6197abe9e3e6a914a5cfc8146c4abd187c04a81c59ff02f364c058ffa3fbe7f7fc634be
7
+ data.tar.gz: 8af828330dc40be03eefcd34834e2eb1d7490ba7ed7331d01dbec224f148ca9743d961cc2510c889d97112f50bc3f7d0db0047c0c3cb5cc03316ed256ed665a3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 2.2.5 (February 22, 2022)
2
+ BUG FIXES:
3
+ - Fixed Parallels Tool installation on M1 hosts with arm64
4
+ [[GH-416](https://github.com/Parallels/vagrant-parallels/pull/416)]
5
+
1
6
  ## 2.2.4 (August 18, 2021)
2
7
  BUG FIXES:
3
8
  - Fixed running the provisioner on "vagrant up --provision"
@@ -434,11 +434,13 @@ module VagrantPlugins
434
434
  #
435
435
  # @param [String] guest_os Guest os type: "linux", "darwin" or "windows"
436
436
  # @return [String] Path to the ISO.
437
- def read_guest_tools_iso_path(guest_os)
438
- guest_os = guest_os.to_sym
437
+ def read_guest_tools_iso_path(guest_os, arch=nil)
438
+ guest_os = (guest_os + (['arm', 'arm64', 'aarch64'].include?(arch.to_s.strip) ? '_arm' : '')).to_sym
439
439
  iso_name = {
440
440
  linux: 'prl-tools-lin.iso',
441
+ linux_arm: 'prl-tools-lin-arm.iso',
441
442
  darwin: 'prl-tools-mac.iso',
443
+ darwin_arm: 'prl-tools-mac-arm.iso',
442
444
  windows: 'PTIAgent.exe'
443
445
  }
444
446
  return nil unless iso_name[guest_os]
@@ -5,8 +5,11 @@ module VagrantPlugins
5
5
 
6
6
  def self.install_parallels_tools(machine)
7
7
  machine.communicate.tap do |comm|
8
+ arch = ''
9
+ comm.execute("uname -p") { |type, data| arch << data if type == :stdout }
10
+
8
11
  tools_iso_path = File.expand_path(
9
- machine.provider.driver.read_guest_tools_iso_path('darwin'),
12
+ machine.provider.driver.read_guest_tools_iso_path("darwin", arch),
10
13
  machine.env.root_path
11
14
  )
12
15
  remote_file = '/tmp/prl-tools-mac.iso'
@@ -1,3 +1,5 @@
1
+ require 'log4r'
2
+
1
3
  module VagrantPlugins
2
4
  module Parallels
3
5
  module GuestLinuxCap
@@ -8,8 +10,11 @@ module VagrantPlugins
8
10
  machine.communicate.sudo('ptiagent-cmd --install')
9
11
  else
10
12
  machine.communicate.tap do |comm|
13
+ arch = ''
14
+ comm.execute("uname -p") { |type, data| arch << data if type == :stdout }
15
+
11
16
  tools_iso_path = File.expand_path(
12
- machine.provider.driver.read_guest_tools_iso_path('linux'),
17
+ machine.provider.driver.read_guest_tools_iso_path("linux", arch),
13
18
  machine.env.root_path
14
19
  )
15
20
  remote_file = '/tmp/prl-tools-lin.iso'
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Parallels
3
- VERSION = '2.2.4'
3
+ VERSION = '2.2.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-parallels
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikhail Zholobov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-08-18 00:00:00.000000000 Z
12
+ date: 2022-02-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri