testlab 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -79,6 +79,8 @@ class TestLab
|
|
79
79
|
|
80
80
|
(self.lxc.state != :running) and raise ContainerError, "The container failed to online!"
|
81
81
|
|
82
|
+
ZTK::TCPSocketCheck.new(:ui => @ui, :host => self.primary_interface.ip, :port => 22).wait
|
83
|
+
|
82
84
|
# If we are not in ephemeral mode we should attempt to provision our
|
83
85
|
# defined users.
|
84
86
|
if !self.lxc_clone.exists?
|
@@ -32,30 +32,33 @@ class TestLab
|
|
32
32
|
|
33
33
|
true
|
34
34
|
end
|
35
|
+
alias :on_node_up :on_node_provision
|
35
36
|
|
36
|
-
# Bind: Container
|
37
|
+
# Bind: Container Provision
|
37
38
|
#
|
38
39
|
# @param [TestLab::Container] container The container which just came online.
|
39
40
|
# @return [Boolean] True if successful.
|
40
|
-
def
|
41
|
+
def on_container_provision(container)
|
41
42
|
@ui.logger.debug { "BIND Provisioner: Container #{container.id}" }
|
42
43
|
|
43
|
-
|
44
|
+
bind_provision(container.node)
|
44
45
|
|
45
46
|
true
|
46
47
|
end
|
48
|
+
alias :on_container_up :on_container_provision
|
47
49
|
|
48
|
-
# Bind: Network
|
50
|
+
# Bind: Network Provision
|
49
51
|
#
|
50
52
|
# @param [TestLab::Network] network The network that is being onlined.
|
51
53
|
# @return [Boolean] True if successful.
|
52
|
-
def
|
54
|
+
def on_network_provision(network)
|
53
55
|
@ui.logger.debug { "BIND Provisioner: Network #{network.id}" }
|
54
56
|
|
55
|
-
|
57
|
+
bind_provision(network.node)
|
56
58
|
|
57
59
|
true
|
58
60
|
end
|
61
|
+
alias :on_network_up :on_network_provision
|
59
62
|
|
60
63
|
# Builds the main bind configuration sections
|
61
64
|
def build_bind_main_partial(file)
|
data/lib/testlab/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -338,7 +338,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
338
338
|
version: '0'
|
339
339
|
segments:
|
340
340
|
- 0
|
341
|
-
hash: -
|
341
|
+
hash: -587948980101770715
|
342
342
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
343
343
|
none: false
|
344
344
|
requirements:
|
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
347
|
version: '0'
|
348
348
|
segments:
|
349
349
|
- 0
|
350
|
-
hash: -
|
350
|
+
hash: -587948980101770715
|
351
351
|
requirements: []
|
352
352
|
rubyforge_project:
|
353
353
|
rubygems_version: 1.8.25
|