vagrant-lxd 0.4.5 → 0.5.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: be2300b7aa0ba5ccc8ae1d3ed7af2bbc0da4a1ded7aefe64e9896d26a672d905
4
- data.tar.gz: c7e73c349e90e91f180e76f1a550d35852b0aa720a406361ef9f94e692eaa68a
3
+ metadata.gz: 1baeedff522cfbebedcb5502ca770a5acee212b651cd15ee5689de902151e218
4
+ data.tar.gz: a4310d180e7f8b686e474087f715fcf5896f37f51e233a934f9af156a332e633
5
5
  SHA512:
6
- metadata.gz: 9bff61ace1311df547b7b0aa6ccb3917ec950353ac7a164e78971cf2297881e007d559fb86798913d8ae1c91b0c4d9b7d5a2e565d5fd00689ff04f9a64b71dbb
7
- data.tar.gz: cb70de69a9de248887c1b3b116fb807f324783ce1adde52f411dc83a1f7245a3da08b687c14385ee34183a144823eec469f7a0968baafdc6455af2e3ccfd154b
6
+ metadata.gz: c26145438faab6e93dae3e9e838d899478cac316de5d97c9ee844acbebc192d2ff8b8b324ad9099b8a50cb75ac4770f88e60a26b2646020c53fe241a958b2f14
7
+ data.tar.gz: 70768153d8648bf0fc22406e9bb5107f399acac378a9ea5811955a483c11e4e0e9cb575afa8e58a9bb5e3d3844deb4cc6413a6e16001fefa8fe8ec5828be8844
@@ -1,4 +1,4 @@
1
- image: "ruby:2.3"
1
+ image: "ruby:2.4"
2
2
 
3
3
  before_script:
4
4
  - apt-get -y update
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ group :development do
7
7
  gem 'rspec'
8
8
  gem 'rspec-its'
9
9
  gem 'rspec-mocks'
10
- gem 'vagrant', :git => 'https://github.com/mitchellh/vagrant.git'
10
+ gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
11
11
  end
12
12
 
13
13
  group :plugins do
@@ -1,20 +1,20 @@
1
1
  GIT
2
2
  remote: https://github.com/mitchellh/vagrant.git
3
- revision: 7df0e62aded9316485e83fd5548bebbacf702ec7
3
+ revision: 2063111ab5cfcce0f6b2dbcecd9d24d47b512a96
4
4
  specs:
5
5
  vagrant (2.2.10.dev)
6
6
  bcrypt_pbkdf (~> 1.0.0)
7
- childprocess (~> 3.0.0)
7
+ childprocess (~> 4.0.0)
8
8
  ed25519 (~> 1.2.4)
9
9
  erubis (~> 2.7.0)
10
10
  hashicorp-checkpoint (~> 0.1.5)
11
11
  i18n (~> 1.8)
12
- listen (~> 3.1.5)
12
+ listen (~> 3.1)
13
13
  log4r (~> 1.1.9, < 1.1.11)
14
14
  mime (~> 0.4.4)
15
15
  net-scp (~> 1.2.0)
16
- net-sftp (~> 2.1)
17
- net-ssh (~> 5.2.0)
16
+ net-sftp (~> 3.0)
17
+ net-ssh (~> 6.0)
18
18
  rb-kqueue (~> 0.2.0)
19
19
  rest-client (>= 1.6.0, < 3.0)
20
20
  ruby_dep (<= 1.3.1)
@@ -28,7 +28,7 @@ GIT
28
28
  PATH
29
29
  remote: .
30
30
  specs:
31
- vagrant-lxd (0.4.5)
31
+ vagrant-lxd (0.5.0)
32
32
  activesupport (~> 5.2.3)
33
33
  faraday (~> 0.17)
34
34
  hyperkit (~> 1.2.0)
@@ -45,8 +45,8 @@ GEM
45
45
  public_suffix (>= 2.0.2, < 5.0)
46
46
  bcrypt_pbkdf (1.0.1)
47
47
  builder (3.2.4)
48
- childprocess (3.0.0)
49
- concurrent-ruby (1.1.6)
48
+ childprocess (4.0.0)
49
+ concurrent-ruby (1.1.7)
50
50
  diff-lcs (1.4.4)
51
51
  domain_name (0.5.20190701)
52
52
  unf (>= 0.0.5, < 1.0.0)
@@ -68,12 +68,11 @@ GEM
68
68
  hyperkit (1.2.0)
69
69
  activesupport (>= 4.2.6)
70
70
  sawyer
71
- i18n (1.8.3)
71
+ i18n (1.8.5)
72
72
  concurrent-ruby (~> 1.0)
73
- listen (3.1.5)
74
- rb-fsevent (~> 0.9, >= 0.9.4)
75
- rb-inotify (~> 0.9, >= 0.9.7)
76
- ruby_dep (~> 1.2)
73
+ listen (3.2.1)
74
+ rb-fsevent (~> 0.10, >= 0.10.3)
75
+ rb-inotify (~> 0.9, >= 0.9.10)
77
76
  little-plugger (1.1.4)
78
77
  log4r (1.1.10)
79
78
  logging (2.3.0)
@@ -84,13 +83,13 @@ GEM
84
83
  mime-types-data (~> 3.2015)
85
84
  mime-types-data (3.2020.0512)
86
85
  minitest (5.14.1)
87
- multi_json (1.14.1)
86
+ multi_json (1.15.0)
88
87
  multipart-post (2.1.1)
89
88
  net-scp (1.2.1)
90
89
  net-ssh (>= 2.6.5)
91
- net-sftp (2.1.2)
92
- net-ssh (>= 2.6.5)
93
- net-ssh (5.2.0)
90
+ net-sftp (3.0.0)
91
+ net-ssh (>= 5.0.0, < 7.0.0)
92
+ net-ssh (6.1.0)
94
93
  netrc (0.11.0)
95
94
  nori (2.6.0)
96
95
  public_suffix (4.0.5)
@@ -128,6 +128,36 @@ module VagrantLXD
128
128
  end
129
129
  end
130
130
 
131
+ # XXX This monkey patch has the fix from https://github.com/jeffshantz/hyperkit/pull/15
132
+ # TODO Remove this once there is a new release of the hyperkit gem.
133
+ module Hyperkit::Connection
134
+ def sawyer_options
135
+ opts = {
136
+ :links_parser => Sawyer::LinkParsers::Simple.new,
137
+ }
138
+ conn_opts = {}
139
+ conn_opts[:builder] = @middleware if @middleware
140
+ conn_opts[:proxy] = @proxy if @proxy
141
+
142
+ conn_opts[:ssl] = {
143
+ verify: verify_ssl
144
+ }
145
+
146
+ if client_cert && File.exist?(client_cert)
147
+ conn_opts[:ssl][:client_cert] = OpenSSL::X509::Certificate.new(File.read(client_cert))
148
+ end
149
+
150
+ # XXX https://github.com/jeffshantz/hyperkit/pull/15/files
151
+ if client_key && File.exist?(client_key)
152
+ conn_opts[:ssl][:client_key] = OpenSSL::PKey.read(File.read(client_key))
153
+ end
154
+
155
+ opts[:faraday] = Faraday.new(conn_opts)
156
+
157
+ opts
158
+ end
159
+ end
160
+
131
161
  NOT_CREATED = Vagrant::MachineState::NOT_CREATED_ID
132
162
 
133
163
  attr_reader :api_endpoint
@@ -570,9 +600,7 @@ module VagrantLXD
570
600
 
571
601
  def locate_or_generate_client_certificate
572
602
  vagrant_path = @machine.env.data_dir / 'lxd'
573
- default_path = Certificate.default_path / 'lxc'
574
-
575
- search_paths = [vagrant_path, default_path]
603
+ search_paths = [vagrant_path] + Certificate.default_paths
576
604
 
577
605
  Certificate.locate(search_paths) or
578
606
  Certificate.generate(vagrant_path)
@@ -33,8 +33,11 @@ module VagrantLXD
33
33
 
34
34
  @logger = Log4r::Logger.new('vagrant::lxd::driver::certificate')
35
35
 
36
- def Certificate.default_path
37
- Pathname.new('~/.config').expand_path
36
+ def Certificate.default_paths
37
+ [
38
+ Pathname.new('~/.config/lxc').expand_path,
39
+ Pathname.new('~/snap/lxd/current/.config/lxc').expand_path,
40
+ ]
38
41
  end
39
42
 
40
43
  def Certificate.issuer_name
@@ -20,7 +20,7 @@
20
20
  module VagrantLXD
21
21
  module Version
22
22
  NAME = 'vagrant-lxd'
23
- VERSION = '0.4.5'
23
+ VERSION = '0.5.0'
24
24
  DESCRIPTION = 'Vagrant LXD provider'
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-lxd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Hanson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-06 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport