kitchen-lxd_sling 0.4.0 → 0.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
- SHA1:
3
- metadata.gz: 8f3243840ce11f59febe69a8d1c1f1714381ac91
4
- data.tar.gz: 532cd4412fe82ddfd4a9f959015010a16890bbf2
2
+ SHA256:
3
+ metadata.gz: 74591a487b26c095209e7dba402ed7bbe040ba472f4f3e27f4f196bb54f9703b
4
+ data.tar.gz: f88aab4a958bddb5765c0ada71792c82463ca6858162add5a95ad58c1f7c331f
5
5
  SHA512:
6
- metadata.gz: 66474f971690fe2db140e791c6f4aebc2352a3fe7f626a49620261eeb2adf9e7731178e561a694ef742e1a97f81ccc66f27261731f9fad3264a0b2b444f95dfd
7
- data.tar.gz: b7ebd2456aad97a87b1d0aa4f881f88fe51f41f6c898613d1c08fc0cba7a60d269a3282e001dac87991efeb03c0933dc031b6544213302bf8bc7a1e10bbab60d
6
+ metadata.gz: 1665ec9e4161acc5215120077dc1167a54d6ed19910011ac59914890c362c92776f803feecba47b31df7414b14c1f8e8b2178fbc124b4283823cbf04bf4586da
7
+ data.tar.gz: ef1916517104ec5c38d2c18fa27ef70ad90b169eaf85de40a72791e20f1e1490dffd2167fbcd76c5a992a0871c6c498ae1670f024fa8824e7f8fa61fe6c6cf4f
@@ -2,6 +2,7 @@ sudo: required
2
2
  language: ruby
3
3
  rvm:
4
4
  - 2.4.3
5
+ - 2.5.0
5
6
  - ruby-head
6
7
  matrix:
7
8
  allow_failures:
@@ -11,7 +12,6 @@ script:
11
12
  - bundle exec kitchen diagnose
12
13
  - KITCHEN_LOCAL_YAML=.kitchen.travis.yml rake kitchen:travis-local
13
14
  - ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
14
- - sudo cat /etc/passwd
15
15
  - sudo su -l $USER -c "cd $(pwd) && rvm use ${RUBY_VERSION/ruby-/} && rake kitchen:all"
16
16
  deploy:
17
17
  provider: rubygems
@@ -45,6 +45,10 @@ module Kitchen
45
45
  info "Container name: #{state[:container_name]}"
46
46
  driver.create_container(state[:container_name], state[:container_options])
47
47
 
48
+ if state[:username] && cloud_image?
49
+ info 'Waiting for cloud-init...'
50
+ driver.wait_for state[:container_name], :cloud_init
51
+ end
48
52
  # Allow SSH transport on known images with sshd enabled
49
53
  # This will only work if the container is routable. LXD does not do port forwarding (yet)
50
54
  # Which also means that you might need to do 'ssh_login: false' in the config if you're using a cloud-image and aren't routable
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Driver
5
- LXD_VERSION = '0.4.0'.freeze
5
+ LXD_VERSION = '0.4.3'.freeze
6
6
  end
7
7
  end
@@ -45,7 +45,6 @@ module Kitchen
45
45
  # so let's wrap it
46
46
  command = command.shelljoin if command.is_a? Array
47
47
  command = ['bash', '-c', command]
48
-
49
48
  res = nx_transport.execute(command, capture: true) do |stdout_chunk, stderr_chunk|
50
49
  logger << stdout_chunk if stdout_chunk
51
50
  logger << stderr_chunk if stderr_chunk
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-lxd_sling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Zachariasen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-10 00:00:00.000000000 Z
11
+ date: 2018-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lxd-common
@@ -142,7 +142,7 @@ files:
142
142
  - bin/console
143
143
  - bin/lxc-shell
144
144
  - bin/setup
145
- - kitchen-lxd_nexus.gemspec
145
+ - kitchen-lxd_sling.gemspec
146
146
  - lib/kitchen/driver/lxd.rb
147
147
  - lib/kitchen/driver/lxd/host_locator.rb
148
148
  - lib/kitchen/driver/lxd_version.rb
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  version: '0'
168
168
  requirements: []
169
169
  rubyforge_project:
170
- rubygems_version: 2.6.14
170
+ rubygems_version: 2.7.5
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: Test Kitchen Driver for LXD