vagrant-lxc 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b214bb08c296b36a640e465653255ef125947255780e6c1a3f3f37e59cf58240
4
- data.tar.gz: 8a0fd49b88445c090e9f75427cf096aeec1bf174fe61d424696550d3f079ff38
3
+ metadata.gz: e67f848663245bd5d8aa0d61f7aaaa5bc735c46b07731170b4dc393cd9c4a62f
4
+ data.tar.gz: 4fa675ee6a56203bd97f5836b8c5cc9789206e48a5acf0a95b254a708006782b
5
5
  SHA512:
6
- metadata.gz: 494cbee88612672f2fd209110c6f269185e82ffae9349354cf49e918aa7af21762f5e6985e712fead8a7713826863ba58ed47480769379786458de4b213d6af9
7
- data.tar.gz: 11b3acdb633317d75c50f1526c6dde90b73a5ee8ac602c51f4bc6bc43be31e23aed0e19502a20df4860ad2d905b2c1db1463eab42753d449ebbd2af7d0b4cc8a
6
+ metadata.gz: df714f95c7c8f2e66cc359edb22f7ec51c5ae94cb0d596487e419a002063f8462d26a9082ece178b22dc149605d9a5767c575fa3ed3cd49bb9755880e44b9f95
7
+ data.tar.gz: 02d44d503d7b3c37a7c8657ee49ef930233e88df876bdd36afc3f3ba6ec7325a83f88d8c7cc4cd8f7ef428aba141dbfc3b53142d389942199b0207c62f688558
@@ -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', tag: 'v1.8.7'
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', '~> 10.4.2'
12
- gem 'rspec', '~> 2.99.0'
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', ref: '5006bc73cd8796465ca09307d4774f8ec8375aa0'
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 || stderr
111
+ version = stdout.empty? ? stderr : stdout
112
112
  version.split('.')[0].to_i
113
113
  end
114
114
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module LXC
3
- VERSION = "1.4.2"
3
+ VERSION = "1.4.3"
4
4
  end
5
5
  end
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.2
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-07-17 00:00:00.000000000 Z
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.7
102
+ rubygems_version: 2.7.6
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Linux Containers provider for Vagrant