vagrant-lxd 0.5.0 → 0.5.1
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.lock +3 -3
- data/doc/setting-up-lxd.md +1 -1
- data/lib/vagrant-lxd/driver.rb +0 -39
- data/lib/vagrant-lxd/version.rb +1 -1
- data/vagrant-lxd.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cb23ce782dbe622c94d34c2e921ef57ddb4851c25196b898061a840efff44e9
|
4
|
+
data.tar.gz: 807dd8fa2ec7b241a434fcba53f9d27a0c01b14ce4eca35ee3db60972e43486f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '03932c7c4f744a52f48139f43b6e5a88884c4a550e17def2c010dd07540d50f6026e5599408157a4a259cca5aee50459961148c6c22c1c3ddbc4dcd995de5cb6'
|
7
|
+
data.tar.gz: be9c7d029dee32606626f8d27f6f780c42aa9553727ed0ad5ea3c1ed5e28f37869f6c6859db7591b233dc67c9260ad786dcca7bdce581d330e12704b7cdbf363
|
data/.gitlab-ci.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -28,10 +28,10 @@ GIT
|
|
28
28
|
PATH
|
29
29
|
remote: .
|
30
30
|
specs:
|
31
|
-
vagrant-lxd (0.5.
|
31
|
+
vagrant-lxd (0.5.1)
|
32
32
|
activesupport (~> 5.2.3)
|
33
33
|
faraday (~> 0.17)
|
34
|
-
hyperkit (~> 1.
|
34
|
+
hyperkit (~> 1.3.0)
|
35
35
|
|
36
36
|
GEM
|
37
37
|
remote: https://rubygems.org/
|
@@ -65,7 +65,7 @@ GEM
|
|
65
65
|
http-cookie (1.0.3)
|
66
66
|
domain_name (~> 0.5)
|
67
67
|
httpclient (2.8.3)
|
68
|
-
hyperkit (1.
|
68
|
+
hyperkit (1.3.0)
|
69
69
|
activesupport (>= 4.2.6)
|
70
70
|
sawyer
|
71
71
|
i18n (1.8.5)
|
data/doc/setting-up-lxd.md
CHANGED
@@ -37,7 +37,7 @@ automatically generate the certificate for you):
|
|
37
37
|
newgrp lxd
|
38
38
|
|
39
39
|
# create and add a client certificate
|
40
|
-
lxc config trust add
|
40
|
+
lxc config trust add ~/.config/lxc/client.crt
|
41
41
|
```
|
42
42
|
|
43
43
|
At this point everything should be set up for the plugin to work
|
data/lib/vagrant-lxd/driver.rb
CHANGED
@@ -119,45 +119,6 @@ module VagrantLXD
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
-
module Hyperkit::Client::Containers
|
123
|
-
alias extract_container_options_without_devices extract_container_options
|
124
|
-
|
125
|
-
def extract_container_options(name, options)
|
126
|
-
opts = extract_container_options_without_devices(name, options)
|
127
|
-
options.slice(:devices).merge(opts)
|
128
|
-
end
|
129
|
-
end
|
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
|
-
|
161
122
|
NOT_CREATED = Vagrant::MachineState::NOT_CREATED_ID
|
162
123
|
|
163
124
|
attr_reader :api_endpoint
|
data/lib/vagrant-lxd/version.rb
CHANGED
data/vagrant-lxd.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
end
|
37
37
|
|
38
38
|
spec.add_runtime_dependency 'activesupport', '~> 5.2.3'
|
39
|
-
spec.add_runtime_dependency 'hyperkit', '~> 1.
|
39
|
+
spec.add_runtime_dependency 'hyperkit', '~> 1.3.0'
|
40
40
|
|
41
41
|
# NOTE fixed to preserve ruby 1.x compatibility, versions after 1.0
|
42
42
|
# use the safe navigation operator and thus need ruby 2.3 or newer
|
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.5.
|
4
|
+
version: 0.5.1
|
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-09-
|
11
|
+
date: 2020-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|