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 +4 -4
- data/.gitlab-ci.yml +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +16 -17
- data/lib/vagrant-lxd/driver.rb +31 -3
- data/lib/vagrant-lxd/driver/certificate.rb +5 -2
- data/lib/vagrant-lxd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1baeedff522cfbebedcb5502ca770a5acee212b651cd15ee5689de902151e218
|
4
|
+
data.tar.gz: a4310d180e7f8b686e474087f715fcf5896f37f51e233a934f9af156a332e633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c26145438faab6e93dae3e9e838d899478cac316de5d97c9ee844acbebc192d2ff8b8b324ad9099b8a50cb75ac4770f88e60a26b2646020c53fe241a958b2f14
|
7
|
+
data.tar.gz: 70768153d8648bf0fc22406e9bb5107f399acac378a9ea5811955a483c11e4e0e9cb575afa8e58a9bb5e3d3844deb4cc6413a6e16001fefa8fe8ec5828be8844
|
data/.gitlab-ci.yml
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/mitchellh/vagrant.git
|
3
|
-
revision:
|
3
|
+
revision: 2063111ab5cfcce0f6b2dbcecd9d24d47b512a96
|
4
4
|
specs:
|
5
5
|
vagrant (2.2.10.dev)
|
6
6
|
bcrypt_pbkdf (~> 1.0.0)
|
7
|
-
childprocess (~>
|
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
|
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 (~>
|
17
|
-
net-ssh (~>
|
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.
|
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 (
|
49
|
-
concurrent-ruby (1.1.
|
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.
|
71
|
+
i18n (1.8.5)
|
72
72
|
concurrent-ruby (~> 1.0)
|
73
|
-
listen (3.1
|
74
|
-
rb-fsevent (~> 0.
|
75
|
-
rb-inotify (~> 0.9, >= 0.9.
|
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.
|
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 (
|
92
|
-
net-ssh (>=
|
93
|
-
net-ssh (
|
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)
|
data/lib/vagrant-lxd/driver.rb
CHANGED
@@ -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
|
-
|
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.
|
37
|
-
|
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
|
data/lib/vagrant-lxd/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|