vagrant-lxd 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cb23ce782dbe622c94d34c2e921ef57ddb4851c25196b898061a840efff44e9
4
- data.tar.gz: 807dd8fa2ec7b241a434fcba53f9d27a0c01b14ce4eca35ee3db60972e43486f
3
+ metadata.gz: c5d2a6ff5340ba242bdcc464893541745d00f1ad92dd947e87097c14335a4704
4
+ data.tar.gz: b52fc2232901b1c49c95b71d28d60b514cafa19dc0ff3698b80710ca55e16aed
5
5
  SHA512:
6
- metadata.gz: '03932c7c4f744a52f48139f43b6e5a88884c4a550e17def2c010dd07540d50f6026e5599408157a4a259cca5aee50459961148c6c22c1c3ddbc4dcd995de5cb6'
7
- data.tar.gz: be9c7d029dee32606626f8d27f6f780c42aa9553727ed0ad5ea3c1ed5e28f37869f6c6859db7591b233dc67c9260ad786dcca7bdce581d330e12704b7cdbf363
6
+ metadata.gz: 3a8269778bebfd757d6511668a6de1a30f19adaadffc124f0efc889bbea18eac796397857cdf67cbe72fe6cc733a6a94e4b6edbd568b5820861dba22b5466abd
7
+ data.tar.gz: 137bf5106e33b466b58a85484079efe7214116f4698c11acbc1c5c08292197e51dafd0b51fb2d63431369a4d923394b4461241afa43dc5c767dccf05ab81ec3c
@@ -28,7 +28,7 @@ GIT
28
28
  PATH
29
29
  remote: .
30
30
  specs:
31
- vagrant-lxd (0.5.1)
31
+ vagrant-lxd (0.5.2)
32
32
  activesupport (~> 5.2.3)
33
33
  faraday (~> 0.17)
34
34
  hyperkit (~> 1.3.0)
@@ -36,7 +36,7 @@ PATH
36
36
  GEM
37
37
  remote: https://rubygems.org/
38
38
  specs:
39
- activesupport (5.2.4.3)
39
+ activesupport (5.2.4.4)
40
40
  concurrent-ruby (~> 1.0, >= 1.0.2)
41
41
  i18n (>= 0.7, < 2)
42
42
  minitest (~> 5.1)
@@ -82,7 +82,7 @@ GEM
82
82
  mime-types (3.3.1)
83
83
  mime-types-data (~> 3.2015)
84
84
  mime-types-data (3.2020.0512)
85
- minitest (5.14.1)
85
+ minitest (5.14.2)
86
86
  multi_json (1.15.0)
87
87
  multipart-post (2.1.1)
88
88
  net-scp (1.2.1)
@@ -92,7 +92,7 @@ GEM
92
92
  net-ssh (6.1.0)
93
93
  netrc (0.11.0)
94
94
  nori (2.6.0)
95
- public_suffix (4.0.5)
95
+ public_suffix (4.0.6)
96
96
  rake (13.0.1)
97
97
  rb-fsevent (0.10.4)
98
98
  rb-inotify (0.10.1)
@@ -9,7 +9,46 @@ Specifically, the following settings need to be applied:
9
9
  3. Your user must be in the "lxd" group.
10
10
  4. Your user must have a client certificate registered with LXD.
11
11
 
12
- ## Xenial
12
+ ## Ubuntu Focal and Later
13
+
14
+ On Ubuntu 20.04 and later, LXD is installed as a [Snap][]. To install
15
+ and configure it as described above, you can use the following commands:
16
+
17
+ ```sh
18
+ # install lxd
19
+ sudo apt install -y lxd
20
+
21
+ # enable https api access
22
+ sudo lxd init --auto --network-address=127.0.0.1 --network-port=8443
23
+
24
+ # add your user to the lxd group
25
+ sudo usermod -a lxd -G $(whoami)
26
+
27
+ # apply the new group membership
28
+ newgrp lxd
29
+ ```
30
+
31
+ Then, the first time you run Vagrant in a project that uses the LXD
32
+ provider, it will generate a client certificate for the plugin to use
33
+ and instruct you to add it to LXD with the following message:
34
+
35
+ ```
36
+ You may need configure LXD to allow requests from this machine. The
37
+ easiest way to do this is to add your LXC client certificate to LXD's
38
+ list of trusted certificates. This can typically be done with the
39
+ following command:
40
+
41
+ $ lxc config trust add ~/.vagrant.d/data/lxd/client.crt
42
+
43
+ You can find more information about configuring LXD at:
44
+
45
+ https://linuxcontainers.org/lxd/getting-started-cli/#initial-configuration
46
+ ```
47
+
48
+ Once you run that command as instructed, everything should be set up for
49
+ the plugin to work correctly.
50
+
51
+ ## Ubuntu Xenial
13
52
 
14
53
  To install LXD and configure it as described above on Ubuntu 16.04, you
15
54
  can use the following commands:
@@ -53,5 +92,6 @@ If you're using the plugin on another platform, please feel free to
53
92
  propose an addition to this document or add instructions to the
54
93
  project's [wiki][] for others to follow.
55
94
 
95
+ [Snap]: https://snapcraft.io/
56
96
  [getting-started-cli]: https://linuxcontainers.org/lxd/getting-started-cli/
57
97
  [wiki]: https://gitlab.com/catalyst-it/vagrant-lxd/wikis
@@ -161,7 +161,7 @@ module VagrantLXD
161
161
 
162
162
  def synced_folders_usable?
163
163
  # Check whether we've registered an idmap for the current user.
164
- raw_idmap = container[:config][:'raw.idmap']
164
+ raw_idmap = config[:'raw.idmap']
165
165
  begin
166
166
  raw_idmap and
167
167
  id_in_map?(Process.uid, 'uid', raw_idmap) and
@@ -24,6 +24,7 @@ module VagrantLXD
24
24
 
25
25
  def usable?(machine, raise_error = false)
26
26
  return false unless machine.provider_name == :lxd
27
+ return false unless machine.env.host.capability(:synced_folders)
27
28
 
28
29
  @driver ||= Driver.new(machine)
29
30
 
@@ -20,7 +20,7 @@
20
20
  module VagrantLXD
21
21
  module Version
22
22
  NAME = 'vagrant-lxd'
23
- VERSION = '0.5.1'
23
+ VERSION = '0.5.2'
24
24
  DESCRIPTION = 'Vagrant LXD provider'
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-lxd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Hanson