testlab 0.5.3 → 0.5.4
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.
- data/lib/testlab/container.rb +12 -0
- data/lib/testlab/provisioners/apt_cacher_ng.rb +1 -1
- data/lib/testlab/version.rb +1 -1
- metadata +8 -2
data/lib/testlab/container.rb
CHANGED
|
@@ -14,6 +14,12 @@ class TestLab
|
|
|
14
14
|
# distro "ubuntu"
|
|
15
15
|
# release "precise"
|
|
16
16
|
#
|
|
17
|
+
# user "deployer" do
|
|
18
|
+
# uid 2600
|
|
19
|
+
# gid 2600
|
|
20
|
+
# password "deployer"
|
|
21
|
+
# end
|
|
22
|
+
#
|
|
17
23
|
# interface do
|
|
18
24
|
# network_id 'west'
|
|
19
25
|
# name :eth0
|
|
@@ -27,6 +33,12 @@ class TestLab
|
|
|
27
33
|
# distro "ubuntu"
|
|
28
34
|
# release "precise"
|
|
29
35
|
#
|
|
36
|
+
# user "deployer" do
|
|
37
|
+
# uid 2600
|
|
38
|
+
# gid 2600
|
|
39
|
+
# password "deployer"
|
|
40
|
+
# end
|
|
41
|
+
#
|
|
30
42
|
# interface do
|
|
31
43
|
# network_id 'east'
|
|
32
44
|
# name :eth0
|
|
@@ -53,7 +53,7 @@ mkdir -pv #{File.dirname(apt_conf_d_proxy_file)}
|
|
|
53
53
|
echo 'Acquire::HTTP { Proxy "http://#{gateway_ip}:3142"; };' | tee #{apt_conf_d_proxy_file}
|
|
54
54
|
EOF
|
|
55
55
|
|
|
56
|
-
container.config[:apt_cacher_exclude_hosts].each do |host|
|
|
56
|
+
container.config[:apt_cacher_exclude_hosts].nil? or container.config[:apt_cacher_exclude_hosts].each do |host|
|
|
57
57
|
script << %(echo 'Acquire::HTTP::Proxy::#{host} "DIRECT";' | tee -a #{apt_conf_d_proxy_file}\n)
|
|
58
58
|
end
|
|
59
59
|
|
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: 0.5.
|
|
4
|
+
version: 0.5.4
|
|
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-06-
|
|
12
|
+
date: 2013-06-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: gli
|
|
@@ -285,12 +285,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
285
285
|
- - ! '>='
|
|
286
286
|
- !ruby/object:Gem::Version
|
|
287
287
|
version: '0'
|
|
288
|
+
segments:
|
|
289
|
+
- 0
|
|
290
|
+
hash: 2280277308738300092
|
|
288
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
292
|
none: false
|
|
290
293
|
requirements:
|
|
291
294
|
- - ! '>='
|
|
292
295
|
- !ruby/object:Gem::Version
|
|
293
296
|
version: '0'
|
|
297
|
+
segments:
|
|
298
|
+
- 0
|
|
299
|
+
hash: 2280277308738300092
|
|
294
300
|
requirements: []
|
|
295
301
|
rubyforge_project:
|
|
296
302
|
rubygems_version: 1.8.25
|