spec/support/Labfile in testlab-0.5.4 vs spec/support/Labfile in testlab-0.6.0
- old
+ new
@@ -7,31 +7,32 @@
apt-get -y install dnsutils
EOF
REPO = File.dirname(__FILE__)
-config Hash[
+config ({
:domain => "default.zone",
:repo => REPO
-]
+})
node :localhost do
- components %w(resolv bind)
-
- provider TestLab::Provider::Vagrant
- config Hash[
+ provider TestLab::Provider::Vagrant
+ provisioners [
+ TestLab::Provisioner::Bind
+ ]
+ config ({
:vagrant => {
:id => "mytestlab-#{ENV['USER']}".downcase,
:ip => "192.168.255.1",
:user => "vagrant",
:port => 22,
:cpus => 1,
:memory => 512,
:file => REPO
}
- ]
+ })
network 'testnet' do
address '192.168.255.254/16'
bridge :br0
route true
@@ -40,10 +41,16 @@
# DUAL NICs
container "server-dual-nic" do
distro "ubuntu"
release "precise"
+ provisioners [
+ TestLab::Provisioner::Resolv,
+ TestLab::Provisioner::AptCacherNG,
+ TestLab::Provisioner::Apt
+ ]
+
interface do
name :eth0
network_id 'testnet'
address '192.168.0.254/16'
primary true
@@ -59,10 +66,16 @@
# SINGLE NIC
container "server-single-nic" do
distro "ubuntu"
release "precise"
+ provisioners [
+ TestLab::Provisioner::Resolv,
+ TestLab::Provisioner::AptCacherNG,
+ TestLab::Provisioner::Apt
+ ]
+
interface do
name :eth0
network_id 'testnet'
address '192.168.0.200/16'
end
@@ -71,14 +84,20 @@
# SHELL PROVISIONER
container "server-shell" do
distro "ubuntu"
release "precise"
- provisioners [TestLab::Provisioner::Shell]
- config Hash[
+ provisioners [
+ TestLab::Provisioner::Resolv,
+ TestLab::Provisioner::AptCacherNG,
+ TestLab::Provisioner::Apt,
+ TestLab::Provisioner::Shell
+ ]
+
+ config ({
:shell => "/bin/bash",
:script => shell_provision_script
- ]
+ })
interface do
name :eth0
network_id 'testnet'
address '192.168.0.200/16'