vagrant-lxd 0.6.0 → 0.7.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 +2 -1
- data/Gemfile.lock +92 -61
- data/README.md +31 -15
- data/doc/setting-up-lxd.md +17 -11
- data/lib/vagrant-lxd/driver/certificate.rb +2 -2
- data/lib/vagrant-lxd/driver.rb +9 -0
- data/lib/vagrant-lxd/version.rb +1 -1
- data/templates/locales/en.yml +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5c54e824e6ddcb541c28c0630b0d93bf019b3e4adc3d78c8353b80d677f29b4
|
4
|
+
data.tar.gz: 95548bc78e3df80c016ed817210cc05c12b664a7fbb043a600a1c3a7420e22e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff4335dfb7edb5bf3995b9f1c71ade7044a0277b4346978958775c99402ac0b0db74ba8cd586d1464408ae09c544a68b773761b29789dfb084402ac36534c1c
|
7
|
+
data.tar.gz: 7d7ce503fb62c834911d3647b88e1b4c6cb0434532432fb1d1c055aa62ffee4ff493eb0c2561046ac243ac0949cdde57b0cb2b73c9c8bf1f85a887f0ad53808c
|
data/.gitlab-ci.yml
CHANGED
data/Gemfile
CHANGED
@@ -7,7 +7,8 @@ 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', tag: 'v2.
|
10
|
+
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git', tag: 'v2.4.0'
|
11
|
+
gem 'webrick'
|
11
12
|
end
|
12
13
|
|
13
14
|
group :plugins do
|
data/Gemfile.lock
CHANGED
@@ -1,33 +1,39 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/mitchellh/vagrant.git
|
3
|
-
revision:
|
4
|
-
tag: v2.
|
3
|
+
revision: 5a2b888c371bd0c8dcae3abe1403e89020c6d6ca
|
4
|
+
tag: v2.4.0
|
5
5
|
specs:
|
6
|
-
vagrant (2.
|
6
|
+
vagrant (2.4.0)
|
7
7
|
bcrypt_pbkdf (~> 1.1)
|
8
|
-
childprocess (~> 4.
|
9
|
-
ed25519 (~> 1.
|
8
|
+
childprocess (~> 4.1.0)
|
9
|
+
ed25519 (~> 1.3.0)
|
10
10
|
erubi
|
11
|
+
googleapis-common-protos-types (~> 1.3)
|
12
|
+
grpc (~> 1.56.0)
|
11
13
|
hashicorp-checkpoint (~> 0.1.5)
|
12
|
-
i18n (~> 1.
|
13
|
-
|
14
|
+
i18n (~> 1.12)
|
15
|
+
ipaddr (>= 1.2.4)
|
16
|
+
listen (~> 3.7)
|
14
17
|
log4r (~> 1.1.9, < 1.1.11)
|
15
18
|
mime-types (~> 3.3)
|
16
|
-
net-
|
17
|
-
net-
|
18
|
-
net-
|
19
|
+
net-ftp (~> 0.2)
|
20
|
+
net-scp (~> 4.0)
|
21
|
+
net-sftp (~> 4.0)
|
22
|
+
net-ssh (~> 7.0)
|
19
23
|
rb-kqueue (~> 0.2.0)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
winrm
|
24
|
+
rexml (~> 3.2)
|
25
|
+
rgl (~> 0.5.10)
|
26
|
+
rubyzip (~> 2.3.2)
|
27
|
+
vagrant_cloud (~> 3.1.0)
|
28
|
+
wdm (~> 0.1.1)
|
29
|
+
winrm (>= 2.3.6, < 3.0)
|
30
|
+
winrm-elevated (>= 1.2.3, < 2.0)
|
31
|
+
winrm-fs (>= 1.3.5, < 2.0)
|
26
32
|
|
27
33
|
PATH
|
28
34
|
remote: .
|
29
35
|
specs:
|
30
|
-
vagrant-lxd (0.
|
36
|
+
vagrant-lxd (0.7.0)
|
31
37
|
activesupport (~> 5.2.3)
|
32
38
|
faraday (~> 0.17)
|
33
39
|
hyperkit (~> 1.3.0)
|
@@ -35,93 +41,117 @@ PATH
|
|
35
41
|
GEM
|
36
42
|
remote: https://rubygems.org/
|
37
43
|
specs:
|
38
|
-
activesupport (5.2.8)
|
44
|
+
activesupport (5.2.8.1)
|
39
45
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
40
46
|
i18n (>= 0.7, < 2)
|
41
47
|
minitest (~> 5.1)
|
42
48
|
tzinfo (~> 1.1)
|
43
|
-
addressable (2.8.
|
44
|
-
public_suffix (>= 2.0.2, <
|
49
|
+
addressable (2.8.5)
|
50
|
+
public_suffix (>= 2.0.2, < 6.0)
|
45
51
|
bcrypt_pbkdf (1.1.0)
|
46
52
|
builder (3.2.4)
|
47
|
-
childprocess (4.
|
48
|
-
concurrent-ruby (1.
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
53
|
+
childprocess (4.1.0)
|
54
|
+
concurrent-ruby (1.2.2)
|
55
|
+
date (3.3.3)
|
56
|
+
diff-lcs (1.5.0)
|
57
|
+
ed25519 (1.3.0)
|
58
|
+
erubi (1.12.0)
|
59
|
+
excon (0.104.0)
|
60
|
+
fakefs (2.5.0)
|
61
|
+
faraday (0.17.6)
|
55
62
|
multipart-post (>= 1.2, < 3)
|
56
|
-
ffi (1.
|
63
|
+
ffi (1.16.3)
|
64
|
+
google-protobuf (3.24.4)
|
65
|
+
googleapis-common-protos-types (1.9.0)
|
66
|
+
google-protobuf (~> 3.18)
|
67
|
+
grpc (1.56.2)
|
68
|
+
google-protobuf (~> 3.23)
|
69
|
+
googleapis-common-protos-types (~> 1.0)
|
57
70
|
gssapi (1.3.1)
|
58
71
|
ffi (>= 1.0.1)
|
59
|
-
gyoku (1.
|
72
|
+
gyoku (1.4.0)
|
60
73
|
builder (>= 2.1.2)
|
74
|
+
rexml (~> 3.0)
|
61
75
|
hashicorp-checkpoint (0.1.5)
|
62
76
|
httpclient (2.8.3)
|
63
77
|
hyperkit (1.3.0)
|
64
78
|
activesupport (>= 4.2.6)
|
65
79
|
sawyer
|
66
|
-
i18n (1.
|
80
|
+
i18n (1.14.1)
|
67
81
|
concurrent-ruby (~> 1.0)
|
68
|
-
|
82
|
+
ipaddr (1.2.5)
|
83
|
+
listen (3.8.0)
|
69
84
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
70
85
|
rb-inotify (~> 0.9, >= 0.9.10)
|
71
86
|
little-plugger (1.1.4)
|
72
87
|
log4r (1.1.10)
|
73
|
-
logging (2.3.
|
88
|
+
logging (2.3.1)
|
74
89
|
little-plugger (~> 1.1)
|
75
90
|
multi_json (~> 1.14)
|
76
|
-
mime-types (3.
|
91
|
+
mime-types (3.5.1)
|
77
92
|
mime-types-data (~> 3.2015)
|
78
|
-
mime-types-data (3.
|
79
|
-
minitest (5.
|
93
|
+
mime-types-data (3.2023.1003)
|
94
|
+
minitest (5.20.0)
|
80
95
|
multi_json (1.15.0)
|
81
|
-
multipart-post (2.
|
82
|
-
net-
|
83
|
-
net-
|
84
|
-
|
85
|
-
|
86
|
-
|
96
|
+
multipart-post (2.3.0)
|
97
|
+
net-ftp (0.2.0)
|
98
|
+
net-protocol
|
99
|
+
time
|
100
|
+
net-protocol (0.2.1)
|
101
|
+
timeout
|
102
|
+
net-scp (4.0.0)
|
103
|
+
net-ssh (>= 2.6.5, < 8.0.0)
|
104
|
+
net-sftp (4.0.0)
|
105
|
+
net-ssh (>= 5.0.0, < 8.0.0)
|
106
|
+
net-ssh (7.2.0)
|
87
107
|
nori (2.6.0)
|
88
|
-
|
89
|
-
|
90
|
-
|
108
|
+
pairing_heap (3.0.1)
|
109
|
+
public_suffix (5.0.3)
|
110
|
+
rake (13.1.0)
|
111
|
+
rb-fsevent (0.11.2)
|
91
112
|
rb-inotify (0.10.1)
|
92
113
|
ffi (~> 1.0)
|
93
|
-
rb-kqueue (0.2.
|
114
|
+
rb-kqueue (0.2.8)
|
94
115
|
ffi (>= 0.5.0)
|
95
|
-
rexml (3.2.
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
rspec
|
101
|
-
rspec-
|
102
|
-
|
116
|
+
rexml (3.2.6)
|
117
|
+
rgl (0.5.10)
|
118
|
+
pairing_heap (>= 0.3.0)
|
119
|
+
rexml (~> 3.2, >= 3.2.4)
|
120
|
+
stream (~> 0.5.3)
|
121
|
+
rspec (3.12.0)
|
122
|
+
rspec-core (~> 3.12.0)
|
123
|
+
rspec-expectations (~> 3.12.0)
|
124
|
+
rspec-mocks (~> 3.12.0)
|
125
|
+
rspec-core (3.12.2)
|
126
|
+
rspec-support (~> 3.12.0)
|
127
|
+
rspec-expectations (3.12.3)
|
103
128
|
diff-lcs (>= 1.2.0, < 2.0)
|
104
|
-
rspec-support (~> 3.
|
129
|
+
rspec-support (~> 3.12.0)
|
105
130
|
rspec-its (1.3.0)
|
106
131
|
rspec-core (>= 3.0.0)
|
107
132
|
rspec-expectations (>= 3.0.0)
|
108
|
-
rspec-mocks (3.
|
133
|
+
rspec-mocks (3.12.6)
|
109
134
|
diff-lcs (>= 1.2.0, < 2.0)
|
110
|
-
rspec-support (~> 3.
|
111
|
-
rspec-support (3.
|
135
|
+
rspec-support (~> 3.12.0)
|
136
|
+
rspec-support (3.12.1)
|
112
137
|
rubyntlm (0.6.3)
|
113
138
|
rubyzip (2.3.2)
|
114
139
|
sawyer (0.9.2)
|
115
140
|
addressable (>= 2.3.5)
|
116
141
|
faraday (>= 0.17.3, < 3)
|
142
|
+
stream (0.5.5)
|
117
143
|
thread_safe (0.3.6)
|
118
|
-
|
144
|
+
time (0.2.2)
|
145
|
+
date
|
146
|
+
timeout (0.4.0)
|
147
|
+
tzinfo (1.2.11)
|
119
148
|
thread_safe (~> 0.1)
|
120
|
-
vagrant_cloud (3.0
|
149
|
+
vagrant_cloud (3.1.0)
|
121
150
|
excon (~> 0.73)
|
122
151
|
log4r (~> 1.1.10)
|
123
152
|
rexml (~> 3.2.5)
|
124
153
|
wdm (0.1.1)
|
154
|
+
webrick (1.8.1)
|
125
155
|
winrm (2.3.6)
|
126
156
|
builder (>= 2.1.2)
|
127
157
|
erubi (~> 1.8)
|
@@ -152,6 +182,7 @@ DEPENDENCIES
|
|
152
182
|
rspec-mocks
|
153
183
|
vagrant!
|
154
184
|
vagrant-lxd!
|
185
|
+
webrick
|
155
186
|
|
156
187
|
BUNDLED WITH
|
157
|
-
2.
|
188
|
+
2.3.5
|
data/README.md
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# vagrant-lxd
|
2
2
|
|
3
3
|
This is a [Vagrant][] plugin that adds the ability to manage containers
|
4
|
-
with [LXD][].
|
4
|
+
with [LXD][] or [Incus][].
|
5
5
|
|
6
6
|
[Vagrant]: https://www.vagrantup.com/
|
7
|
-
[LXD]: https://
|
7
|
+
[LXD]: https://documentation.ubuntu.com/lxd/
|
8
|
+
[Incus]: https://linuxcontainers.org/incus/
|
8
9
|
|
9
10
|
## Features
|
10
11
|
|
@@ -22,7 +23,18 @@ The following features are not expected to work yet:
|
|
22
23
|
- Static IP addresses
|
23
24
|
- IPv6 networking
|
24
25
|
|
25
|
-
|
26
|
+
## Supported Versions
|
27
|
+
|
28
|
+
The plugin requires at least the following software versions:
|
29
|
+
|
30
|
+
- Vagrant 2.2
|
31
|
+
- LXD 3.8
|
32
|
+
- Incus 0.2
|
33
|
+
|
34
|
+
Despite its name, this plugin works with Incus as well as LXD. You can
|
35
|
+
generally replace "LXD" with "Incus" (and `lxc` with `incus`) when reading
|
36
|
+
this documentation and it'll remain correct, although a few important
|
37
|
+
differences have been noted.
|
26
38
|
|
27
39
|
## Installation
|
28
40
|
|
@@ -60,7 +72,7 @@ Once LXD is set up, you can use `vagrant up --provider lxd` to create
|
|
60
72
|
container-backed machines. This plugin reuses the `lxc` box format, so
|
61
73
|
VM images from [Vagrant Cloud][cloud] should work without modification:
|
62
74
|
|
63
|
-
$ vagrant init --minimal
|
75
|
+
$ vagrant init --minimal hibox/jammy64
|
64
76
|
$ vagrant up --provider lxd
|
65
77
|
|
66
78
|
[setting-up-lxd]: doc/setting-up-lxd.md
|
@@ -69,13 +81,13 @@ VM images from [Vagrant Cloud][cloud] should work without modification:
|
|
69
81
|
#### Configuration
|
70
82
|
|
71
83
|
Below is an example Vagrantfile showing most of the provider's
|
72
|
-
configurable values, along with their defaults. The `
|
84
|
+
configurable values, along with their defaults. The `hibox/jammy64`
|
73
85
|
box is available on the Vagrant Cloud, so you should be able to copy
|
74
86
|
this file and adjust it as you see fit.
|
75
87
|
|
76
88
|
``` ruby
|
77
89
|
Vagrant.configure('2') do |config|
|
78
|
-
config.vm.box = '
|
90
|
+
config.vm.box = 'hibox/jammy64'
|
79
91
|
|
80
92
|
config.vm.provider 'lxd' do |lxd|
|
81
93
|
lxd.api_endpoint = 'https://127.0.0.1:8443'
|
@@ -100,11 +112,15 @@ By default, the plugin will first try to use files from
|
|
100
112
|
`~/.config/lxc/client.crt` and `client.key`, if they exist. Otherwise,
|
101
113
|
it will generate a new 4096-bit RSA certificate (and accompanying
|
102
114
|
private key) in Vagrant's data directory. When using the plugin for the
|
103
|
-
first time, you will need to add this certificate to
|
115
|
+
first time, you will need to add this certificate to server's trust store
|
104
116
|
by running:
|
105
117
|
|
106
118
|
$ lxc config trust add ~/.vagrant.d/data/lxd/client.crt
|
107
119
|
|
120
|
+
If you're using Incus, the command is slightly different:
|
121
|
+
|
122
|
+
$ incus config trust add-certificate ~/.vagrant.d/data/lxd/client.crt
|
123
|
+
|
108
124
|
If you would rather use an existing certificate, you can specify the
|
109
125
|
files for the plugin to use with the following settings:
|
110
126
|
|
@@ -149,7 +165,7 @@ is passed through to LXD. The hash values should all be strings:
|
|
149
165
|
recursive: 'false',
|
150
166
|
}
|
151
167
|
|
152
|
-
[disk]: https://
|
168
|
+
[disk]: https://documentation.ubuntu.com/lxd/en/latest/reference/devices_disk/
|
153
169
|
|
154
170
|
### Shared LXD Containers
|
155
171
|
|
@@ -192,8 +208,8 @@ about this setting.
|
|
192
208
|
In order to run Linux containers on an LXD-backed machine, it must be
|
193
209
|
created with the `nesting` and `privileged` properties set to `true`.
|
194
210
|
These correspond to the `security.nesting` and `security.privileged`
|
195
|
-
configuration items for LXD, respectively. Refer to LXD's [
|
196
|
-
|
211
|
+
configuration items for LXD, respectively. Refer to LXD's [instance
|
212
|
+
options documentation][instances] for details.
|
197
213
|
|
198
214
|
config.vm.provider 'lxd' do |lxd|
|
199
215
|
lxd.nesting = true
|
@@ -204,7 +220,7 @@ Note that enabling these options will invalidate any user and group ID
|
|
204
220
|
mappings you may have configured for synced folders, since privileged
|
205
221
|
containers use the same UID and GID space as the host machine.
|
206
222
|
|
207
|
-
[
|
223
|
+
[instances]: https://documentation.ubuntu.com/lxd/en/latest/reference/instance_options/
|
208
224
|
|
209
225
|
### Adding Devices
|
210
226
|
|
@@ -235,7 +251,7 @@ to run graphical applications transparently from within the guest:
|
|
235
251
|
Note that disk devices should be configured as [synced
|
236
252
|
folders](#synced-folders) rather than ad-hoc devices.
|
237
253
|
|
238
|
-
[device-config]: https://
|
254
|
+
[device-config]: https://documentation.ubuntu.com/lxd/en/latest/reference/devices/
|
239
255
|
|
240
256
|
### Container Configuration
|
241
257
|
|
@@ -253,11 +269,11 @@ Not all instance settings make sense in the Vagrant context, and some will or
|
|
253
269
|
won't work based on your LXD host's configuration, so making sure the config is
|
254
270
|
valid is up to you.
|
255
271
|
|
256
|
-
[instance-config]: https://
|
272
|
+
[instance-config]: https://documentation.ubuntu.com/lxd/en/latest/reference/instance_options/
|
257
273
|
|
258
274
|
### LXD Projects
|
259
275
|
|
260
|
-
Since version 3.8, LXD has supported [projects] as a way to segment an LXD
|
276
|
+
Since version 3.8, LXD has supported [projects][] as a way to segment an LXD
|
261
277
|
server. Each project has its own set of containers, profiles, images, and so
|
262
278
|
on.
|
263
279
|
|
@@ -286,7 +302,7 @@ correctly. The following commands should get you started with a new project:
|
|
286
302
|
lxc profile device add default eth0 nic name=eth0 parent=lxdbr0 nictype=bridged
|
287
303
|
lxc profile device add default root disk path=/ pool=default
|
288
304
|
|
289
|
-
[projects]: https://
|
305
|
+
[projects]: https://documentation.ubuntu.com/lxd/en/latest/explanation/projects/
|
290
306
|
|
291
307
|
## Hacking
|
292
308
|
|
data/doc/setting-up-lxd.md
CHANGED
@@ -1,22 +1,28 @@
|
|
1
1
|
# Setting up LXD
|
2
2
|
|
3
|
-
LXD needs to be configured a particular way before Vagrant can use
|
3
|
+
LXD (or Incus) needs to be configured a particular way before Vagrant can use
|
4
|
+
it.
|
4
5
|
|
5
6
|
Specifically, the following settings need to be applied:
|
6
7
|
|
7
|
-
1.
|
8
|
-
2.
|
9
|
-
3. Your user must be in the "lxd" group.
|
10
|
-
4. Your user must have a client certificate registered
|
8
|
+
1. The server must allow HTTPS API access from your machine.
|
9
|
+
2. The server must have a working network bridge.
|
10
|
+
3. Your user must be in the "lxd" (or "incus-admin") group.
|
11
|
+
4. Your user must have a client certificate registered.
|
11
12
|
|
12
|
-
|
13
|
+
Note the following instructions apply specifically to LXD. When using Incus,
|
14
|
+
you'll need to change the commands and group names accordingly.
|
15
|
+
|
16
|
+
## Ubuntu
|
17
|
+
|
18
|
+
### Focal and Later
|
13
19
|
|
14
20
|
On Ubuntu 20.04 and later, LXD is installed as a [Snap][]. To install
|
15
21
|
and configure it as described above, you can use the following commands:
|
16
22
|
|
17
23
|
```sh
|
18
24
|
# install lxd
|
19
|
-
sudo
|
25
|
+
sudo snap install lxd
|
20
26
|
|
21
27
|
# enable https api access
|
22
28
|
sudo lxd init --auto --network-address=127.0.0.1 --network-port=8443
|
@@ -42,13 +48,13 @@ following command:
|
|
42
48
|
|
43
49
|
You can find more information about configuring LXD at:
|
44
50
|
|
45
|
-
https://
|
51
|
+
https://documentation.ubuntu.com/lxd/en/latest/howto/initialize/
|
46
52
|
```
|
47
53
|
|
48
54
|
Once you run that command as instructed, everything should be set up for
|
49
55
|
the plugin to work correctly.
|
50
56
|
|
51
|
-
|
57
|
+
### Xenial and Earlier
|
52
58
|
|
53
59
|
To install LXD and configure it as described above on Ubuntu 16.04, you
|
54
60
|
can use the following commands:
|
@@ -84,7 +90,7 @@ correctly.
|
|
84
90
|
|
85
91
|
## Other Platforms
|
86
92
|
|
87
|
-
The
|
93
|
+
The Canonical website has a [detailed guide][getting-started-cli]
|
88
94
|
to installing LXD on other platforms. The steps to configure LXD for
|
89
95
|
Vagrant will be similar to those above, but some commands will differ.
|
90
96
|
|
@@ -93,5 +99,5 @@ propose an addition to this document or add instructions to the
|
|
93
99
|
project's [wiki][] for others to follow.
|
94
100
|
|
95
101
|
[Snap]: https://snapcraft.io/
|
96
|
-
[getting-started-cli]: https://
|
102
|
+
[getting-started-cli]: https://documentation.ubuntu.com/lxd/en/latest/howto/initialize/
|
97
103
|
[wiki]: https://gitlab.com/catalyst-it/vagrant-lxd/wikis
|
@@ -69,8 +69,8 @@ module VagrantLXD
|
|
69
69
|
cert.sign(pkey, OpenSSL::Digest::SHA256.new)
|
70
70
|
@logger.debug "Saving new certificate to disk under #{path}..."
|
71
71
|
FileUtils.mkdir_p(path, mode: 0o700)
|
72
|
-
File.write(path / 'client.crt', cert.to_s, 0, perm: 0o600)
|
73
|
-
File.write(path / 'client.key', pkey.to_s, 0, perm: 0o600)
|
72
|
+
File.write(path / 'client.crt', cert.to_s, 0, mode: 'w', perm: 0o600)
|
73
|
+
File.write(path / 'client.key', pkey.to_s, 0, mode: 'w', perm: 0o600)
|
74
74
|
Certificate.new(path / 'client.crt', path / 'client.key')
|
75
75
|
rescue Exception => e
|
76
76
|
@logger.error 'Certificate creation failed: ' << e.message
|
data/lib/vagrant-lxd/driver.rb
CHANGED
@@ -120,6 +120,15 @@ module VagrantLXD
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
+
# Use the correct endpoint for the containers API: "/containers" is
|
124
|
+
# deprecated, replaced by "/instances". See this link for a history:
|
125
|
+
# https://discuss.linuxcontainers.org/t/incus-0-1-has-been-released/18036
|
126
|
+
module Hyperkit::Client::Containers
|
127
|
+
def containers_path
|
128
|
+
'/1.0/instances'
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
123
132
|
class Hyperkit::BadRequest
|
124
133
|
def reason
|
125
134
|
return unless data.is_a? Hash
|
data/lib/vagrant-lxd/version.rb
CHANGED
data/templates/locales/en.yml
CHANGED
@@ -48,7 +48,7 @@ en:
|
|
48
48
|
|
49
49
|
You can find more documentation about configuring LXD at:
|
50
50
|
|
51
|
-
https://
|
51
|
+
https://documentation.ubuntu.com/lxd/en/latest/howto/initialize/
|
52
52
|
|
53
53
|
lxd_authentication_failure: |-
|
54
54
|
The LXD provider could not authenticate to the daemon at %{api_endpoint}.
|
@@ -61,8 +61,8 @@ en:
|
|
61
61
|
$ lxc config trust add %{client_cert}
|
62
62
|
|
63
63
|
You can find more information about configuring LXD at:
|
64
|
-
|
65
|
-
https://
|
64
|
+
|
65
|
+
https://documentation.ubuntu.com/lxd/en/latest/howto/initialize/
|
66
66
|
|
67
67
|
lxd_operation_timeout: |-
|
68
68
|
The container failed to respond within %{time_limit} seconds. Try
|
@@ -105,7 +105,7 @@ en:
|
|
105
105
|
|
106
106
|
lxd_container_deletion_failure: |-
|
107
107
|
The provider was unable to delete the container for the '%{machine_name}' VM.
|
108
|
-
|
108
|
+
|
109
109
|
The underlying error message was: %{reason}
|
110
110
|
|
111
111
|
The LXD logs may contain more information about the cause of this failure.
|
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.7.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:
|
11
|
+
date: 2023-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
|
-
rubygems_version: 3.
|
102
|
+
rubygems_version: 3.3.5
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Vagrant LXD provider
|