kitchen-lxd_sling 0.5.4 → 0.5.5

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: a0dc82025120a8d83e1e12e15e9586bdafd8e93110bcebd6ff6b1f52f408a479
4
- data.tar.gz: 65cf4f5ac0cc79748ab65de96fbbaf2875a0f8758594cc4c2979bbefffc915be
3
+ metadata.gz: c161d6414dddd8f1890566820f74100dd193dcf8de5d0e0aafc1c1a6283283c2
4
+ data.tar.gz: 19431e482ef2cbf343d5b996607750c98ffdf3dbe6455c412255b4583a486686
5
5
  SHA512:
6
- metadata.gz: 0bed973a3622bc0bb3f03700417b58a1dd0e6d116fb0436d31fccef7b69834131d5083297720832771fc45269acd63a1753b1865fd3e561a76184c1aa7c39133
7
- data.tar.gz: 2d911efe29221d2dcf19bb01c953a2c73b6800f48cb6d94753f23fba4d371bc127c13eecb923bdda9ab3cc801d3e2ffa4be05112f9d8e81f8ac7cb0d1723fea5
6
+ metadata.gz: a4e2ed018b6c27522adfa0ab5da696c90247e6d22b3326a1a63d57e4967e4ba98ab5ee1f221d185df36805f9f18486960879b18d1fd28db6591d65c4d11537eb
7
+ data.tar.gz: b55ec846f166f11c92bdc58cd514566a887e31920ab9ec66360a1e5429d92e60538edd7f0ba3b6d5fba9d0f0102a56eaa3c06d55f89a7a8c0f4a15ab07097f7f
@@ -50,8 +50,6 @@ module Kitchen
50
50
  # 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
51
51
  # think ahead for default behaviour once LXD can port forward
52
52
  # FUTURE: If I get time I'll look into faking a port forward with something under /dev/ until then
53
- info "Waiting for an IP address..."
54
- state[:ip_address] = state[:hostname] = container_ip(state)
55
53
  if use_ssh?
56
54
  # Normalize [:ssh_login]
57
55
  config[:ssh_login] = { username: config[:ssh_login] } if config[:ssh_login].is_a? String
@@ -59,12 +57,17 @@ module Kitchen
59
57
 
60
58
  state[:username] = config[:ssh_login][:username] if config[:ssh_login].key? :username
61
59
  state[:username] ||= "root"
60
+ end
62
61
 
63
- if (state[:username] != "root") && cloud_image?
64
- info "Waiting for cloud-init..."
65
- driver.wait_for state[:container_name], :cloud_init
66
- end
62
+ if (state[:username] != "root") && cloud_image?
63
+ info "Waiting for cloud-init..."
64
+ driver.wait_for state[:container_name], :cloud_init
65
+ else
66
+ info "Waiting for an IP address..."
67
+ end
68
+ state[:ip_address] = state[:hostname] = container_ip(state)
67
69
 
70
+ if use_ssh?
68
71
  setup_ssh(state[:username], config[:ssh_login][:public_key] || "#{ENV['HOME']}/.ssh/id_rsa.pub", state)
69
72
  info "SSH access enabled on #{state[:ip_address]}"
70
73
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Driver
5
- LXD_VERSION = "0.5.4".freeze
5
+ LXD_VERSION = "0.5.5".freeze
6
6
  end
7
7
  end
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.5.4
4
+ version: 0.5.5
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-04-21 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lxd-common