vagrant-lxc 1.4.2 → 1.4.3
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 +4 -4
- data/CHANGELOG.md +13 -0
- data/Gemfile +4 -4
- data/lib/vagrant-lxc/action/fetch_ip_with_lxc_info.rb +1 -0
- data/lib/vagrant-lxc/action/forward_ports.rb +1 -1
- data/lib/vagrant-lxc/config.rb +4 -0
- data/lib/vagrant-lxc/version.rb +1 -1
- 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: e67f848663245bd5d8aa0d61f7aaaa5bc735c46b07731170b4dc393cd9c4a62f
|
4
|
+
data.tar.gz: 4fa675ee6a56203bd97f5836b8c5cc9789206e48a5acf0a95b254a708006782b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df714f95c7c8f2e66cc359edb22f7ec51c5ae94cb0d596487e419a002063f8462d26a9082ece178b22dc149605d9a5767c575fa3ed3cd49bb9755880e44b9f95
|
7
|
+
data.tar.gz: 02d44d503d7b3c37a7c8657ee49ef930233e88df876bdd36afc3f3ba6ec7325a83f88d8c7cc4cd8f7ef428aba141dbfc3b53142d389942199b0207c62f688558
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,21 @@
|
|
1
|
+
## [1.4.3](https://github.com/fgrehm/vagrant-lxc/compare/v1.4.2...v1.4.3) (Sep 27, 2018)
|
2
|
+
|
3
|
+
FEATURES:
|
4
|
+
- Add config for container ssh IP. [[GH-469]]
|
5
|
+
|
6
|
+
FIXES:
|
7
|
+
- Fix problems with `redir` command line (bis). [[GH-473]]
|
8
|
+
|
9
|
+
[GH-469]: https://github.com/fgrehm/vagrant-lxc/issues/469
|
10
|
+
[GH-473]: https://github.com/fgrehm/vagrant-lxc/issues/473
|
11
|
+
|
1
12
|
## [1.4.2](https://github.com/fgrehm/vagrant-lxc/compare/v1.4.1...v1.4.2) (Jul 17, 2018)
|
2
13
|
|
3
14
|
FIXES:
|
4
15
|
- Fix problems with `redir` 3.x command line. [[GH-467]]
|
5
16
|
|
17
|
+
[GH-467]: https://github.com/fgrehm/vagrant-lxc/issues/467
|
18
|
+
|
6
19
|
## [1.4.1](https://github.com/fgrehm/vagrant-lxc/compare/v1.4.0...v1.4.1) (Apr 30, 2018)
|
7
20
|
|
8
21
|
FEATURES:
|
data/Gemfile
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
group :development do
|
4
|
-
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
|
4
|
+
gem 'vagrant', git: 'https://github.com/mitchellh/vagrant.git'
|
5
5
|
gem 'guard'
|
6
6
|
gem 'guard-rspec'
|
7
7
|
gem 'rb-inotify'
|
8
8
|
end
|
9
9
|
|
10
10
|
group :development, :test do
|
11
|
-
gem 'rake'
|
12
|
-
gem 'rspec'
|
11
|
+
gem 'rake'
|
12
|
+
gem 'rspec'
|
13
13
|
gem 'coveralls', '~> 0.7.2', require: (ENV['COVERAGE'] == 'true')
|
14
14
|
# The is the ref *just* before we switch to childprocess 0.6, which conflicts with vagrant 1.8 deps.
|
15
|
-
gem 'vagrant-spec', git: 'https://github.com/mitchellh/vagrant-spec.git'
|
15
|
+
gem 'vagrant-spec', git: 'https://github.com/mitchellh/vagrant-spec.git'
|
16
16
|
end
|
17
17
|
|
18
18
|
group :plugins do
|
@@ -21,6 +21,7 @@ module Vagrant
|
|
21
21
|
fetch_ip_tries = config.fetch_ip_tries
|
22
22
|
driver = env[:machine].provider.driver
|
23
23
|
ip = ''
|
24
|
+
return config.ssh_ip_addr if not config.ssh_ip_addr.nil?
|
24
25
|
retryable(:on => LXC::Errors::ExecuteError, :tries => fetch_ip_tries, :sleep => 3) do
|
25
26
|
unless ip = get_container_ip_from_ip_addr(driver)
|
26
27
|
# retry
|
@@ -108,7 +108,7 @@ module Vagrant
|
|
108
108
|
def redir_version
|
109
109
|
stdout, stderr, _ = Open3.capture3 "redir --version"
|
110
110
|
# For some weird reason redir printed version information in STDERR prior to 3.2
|
111
|
-
version = stdout
|
111
|
+
version = stdout.empty? ? stderr : stdout
|
112
112
|
version.split('.')[0].to_i
|
113
113
|
end
|
114
114
|
|
data/lib/vagrant-lxc/config.rb
CHANGED
@@ -24,6 +24,8 @@ module Vagrant
|
|
24
24
|
|
25
25
|
attr_accessor :fetch_ip_tries
|
26
26
|
|
27
|
+
attr_accessor :ssh_ip_addr
|
28
|
+
|
27
29
|
# Whether the container needs to be privileged. Defaults to true (unprivileged containers
|
28
30
|
# is a very new feature in vagrant-lxc). If false, will try creating an unprivileged
|
29
31
|
# container. If it can't, will revert to the old "sudo wrapper" method to create a privileged
|
@@ -37,6 +39,7 @@ module Vagrant
|
|
37
39
|
@container_name = UNSET_VALUE
|
38
40
|
@tmpfs_mount_size = UNSET_VALUE
|
39
41
|
@fetch_ip_tries = UNSET_VALUE
|
42
|
+
@ssh_ip_addr = UNSET_VALUE
|
40
43
|
@privileged = UNSET_VALUE
|
41
44
|
end
|
42
45
|
|
@@ -66,6 +69,7 @@ module Vagrant
|
|
66
69
|
@existing_container_name = nil if @existing_container_name == UNSET_VALUE
|
67
70
|
@tmpfs_mount_size = '2G' if @tmpfs_mount_size == UNSET_VALUE
|
68
71
|
@fetch_ip_tries = 10 if @fetch_ip_tries == UNSET_VALUE
|
72
|
+
@ssh_ip_addr = nil if @ssh_ip_addr == UNSET_VALUE
|
69
73
|
@privileged = true if @privileged == UNSET_VALUE
|
70
74
|
end
|
71
75
|
end
|
data/lib/vagrant-lxc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-lxc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabio Rehm
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Linux Containers provider for Vagrant
|
14
14
|
email:
|
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|
101
101
|
rubyforge_project:
|
102
|
-
rubygems_version: 2.7.
|
102
|
+
rubygems_version: 2.7.6
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
105
|
summary: Linux Containers provider for Vagrant
|