spec/support/Labfile in testlab-0.3.0 vs spec/support/Labfile in testlab-0.3.1
- old
+ new
@@ -1,12 +1,15 @@
#!/usr/bin/env ruby
#^syntax detection
+config Hash[
+ :domain => "default.zone"
+]
+
node :localhost do
provider TestLab::Provider::Vagrant
-
config Hash[
:vagrant => {
:id => "mytestlab-#{ENV['USER']}".downcase,
:ip => "192.168.255.1",
:user => "vagrant",
@@ -15,22 +18,42 @@
:memory => 512
},
:repo => File.dirname(__FILE__)
]
+ route false
+
network :testnet do
address '192.168.255.254/16'
bridge :br0
end
container "server-1" do
distro "ubuntu"
- release "lucid"
+ release "precise"
interface do
name :eth0
network_id :testnet
address '192.168.0.254/16'
+ primary true
+ end
+
+ interface do
+ name :eth1
+ network_id :testnet
+ address '192.168.0.253/16'
+ end
+ end
+
+ container "server-2" do
+ distro "ubuntu"
+ release "precise"
+
+ interface do
+ name :eth0
+ network_id :testnet
+ address '192.168.0.200/16'
end
end
end