testlab 1.2.1 → 1.2.2

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.
@@ -54,7 +54,7 @@ EOF
54
54
  add.action do |global_options,options,args|
55
55
  iterate_objects_by_name(options[:name], TestLab::Network) do |network|
56
56
  p = TestLab::Provisioner::Route.new({}, @ui)
57
- p.on_network_provision(network)
57
+ p.on_network_up(network)
58
58
  @testlab.ui.stdout.puts("Added routes successfully!".green.bold)
59
59
  @testlab.ui.stdout.puts %x(netstat -nr | grep '#{network.node.ip}').strip
60
60
  end
@@ -68,7 +68,7 @@ EOF
68
68
  del.action do |global_options,options,args|
69
69
  iterate_objects_by_name(options[:name], TestLab::Network) do |network|
70
70
  p = TestLab::Provisioner::Route.new({}, @ui)
71
- p.on_network_deprovision(network)
71
+ p.on_network_down(network)
72
72
  @testlab.ui.stdout.puts("Deleted routes successfully!".red.bold)
73
73
  @testlab.ui.stdout.puts %x(netstat -nr | grep '#{network.node.ip}').strip
74
74
  end
@@ -14,14 +14,16 @@ class TestLab
14
14
  @config = (config || Hash.new)
15
15
  @ui = (ui || TestLab.ui)
16
16
 
17
- @chef_server = TestLab::Container.first('chef-server')
18
-
19
17
  @config[:chef] ||= Hash.new
20
18
  @config[:chef][:client] ||= Hash.new
21
- @config[:chef][:client][:version] ||= %(latest)
22
- @config[:chef][:client][:log_level] ||= :info
23
- @config[:chef][:client][:server_url] ||= "https://#{@chef_server.ip}"
24
- @config[:chef][:client][:attributes] ||= Hash.new
19
+ @config[:chef][:client][:attach_to_container] ||= %(chef-server)
20
+ @config[:chef][:client][:version] ||= %(latest)
21
+ @config[:chef][:client][:log_level] ||= :info
22
+ @config[:chef][:client][:attributes] ||= Hash.new
23
+
24
+ @chef_server = TestLab::Container.first(@config[:chef][:client][:attach_to_container])
25
+
26
+ @config[:chef][:client][:server_url] ||= %(https://#{@chef_server.ip})
25
27
 
26
28
  @ui.logger.debug { "config(#{@config.inspect})" }
27
29
  end
@@ -9,20 +9,21 @@ class TestLab
9
9
  #
10
10
  # @author Zachary Patten <zachary AT jovelabs DOT com>
11
11
  class RubyGemClient
12
- require 'json'
13
12
 
14
13
  def initialize(config={}, ui=nil)
15
14
  @config = (config || Hash.new)
16
15
  @ui = (ui || TestLab.ui)
17
16
 
18
- @chef_server = TestLab::Container.first('chef-server')
19
-
20
17
  @config[:chef] ||= Hash.new
21
18
  @config[:chef][:client] ||= Hash.new
22
- @config[:chef][:client][:version] ||= %(10.24.0)
23
- @config[:chef][:client][:log_level] ||= :info
24
- @config[:chef][:client][:server_url] ||= "https://#{@chef_server.ip}"
25
- @config[:chef][:client][:attributes] ||= Hash.new
19
+ @config[:chef][:client][:attach_to_container] ||= %(chef-server)
20
+ @config[:chef][:client][:version] ||= %(10.24.0)
21
+ @config[:chef][:client][:log_level] ||= :info
22
+ @config[:chef][:client][:attributes] ||= Hash.new
23
+
24
+ @chef_server = TestLab::Container.first(@config[:chef][:client][:attach_to_container])
25
+
26
+ @config[:chef][:client][:server_url] ||= %(https://#{@chef_server.ip})
26
27
 
27
28
  @ui.logger.debug { "config(#{@config.inspect})" }
28
29
  end
@@ -38,6 +38,7 @@ class TestLab
38
38
 
39
39
  true
40
40
  end
41
+ alias :on_node_up :on_node_provision
41
42
 
42
43
  # Resolv: Container Provision
43
44
  #
@@ -1,15 +1,6 @@
1
1
  options {
2
2
  directory "/var/cache/bind";
3
3
 
4
- // If there is a firewall between you and nameservers you want
5
- // to talk to, you may need to fix the firewall to allow multiple
6
- // ports to talk. See http://www.kb.cert.org/vuls/id/800113
7
-
8
- // If your ISP provided one or more IP addresses for stable
9
- // nameservers, you probably want to use them as forwarders.
10
- // Uncomment the following block, and insert the addresses replacing
11
- // the all-0's placeholder.
12
-
13
4
  <% if !@bind[:forwarders].nil? -%>
14
5
  forwarders {
15
6
  <% @bind[:forwarders].flatten.compact.uniq.each do |forwarder| -%>
@@ -18,13 +9,12 @@ options {
18
9
  };
19
10
 
20
11
  <% end -%>
21
- //========================================================================
22
- // If BIND logs error messages about the root key being expired,
23
- // you will need to update your keys. See https://www.isc.org/bind-keys
24
- //========================================================================
25
- dnssec-validation auto;
12
+ lame-ttl 0;
13
+ max-cache-ttl 5;
14
+ max-ncache-ttl 5;
26
15
 
27
- auth-nxdomain no; # conform to RFC1035
16
+ dnssec-validation auto;
17
+ auth-nxdomain no;
28
18
  listen-on-v6 { any; };
29
19
  };
30
20
 
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "1.2.1"
4
+ VERSION = "1.2.2"
5
5
  end
6
6
  end
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.2.1
4
+ version: 1.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-21 00:00:00.000000000 Z
12
+ date: 2013-07-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli
@@ -339,7 +339,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  segments:
341
341
  - 0
342
- hash: 4032847501508074403
342
+ hash: -4250847310675666008
343
343
  required_rubygems_version: !ruby/object:Gem::Requirement
344
344
  none: false
345
345
  requirements:
@@ -348,7 +348,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
348
348
  version: '0'
349
349
  segments:
350
350
  - 0
351
- hash: 4032847501508074403
351
+ hash: -4250847310675666008
352
352
  requirements: []
353
353
  rubyforge_project:
354
354
  rubygems_version: 1.8.25