spec/support/Labfile in testlab-0.0.2 vs spec/support/Labfile in testlab-0.0.3

- old
+ new

@@ -1,36 +1,37 @@ #!/usr/bin/env ruby #^syntax detection -host :vagrant do +node :localhost do + provider TestLab::Provider::Vagrant - config ({ + + config Hash[ :vagrant => { - :ip => "192.168.33.10", - :cpus => 4, - :memory => 4096 - } - }) + :id => "mytestlab-#{ENV['USER']}".downcase, + :ip => "192.168.33.10", + :user => "vagrant", + :port => 22, + :cpus => 1, + :memory => 512 + }, + :repo => File.dirname(__FILE__) + ] - network "west-1" do + network :testnet do + cidr "192.168.255.254/16" + bridge :br0 end - container "devop-test-1" do - provisioner TestLab::Provisioner::Chef + container "server-1" do distro "ubuntu" release "lucid" - persist true - ip "192.168.0.1" - mac "00:00:5e:35:ea:d5" - config ({ - :chef => { - :environment => "test", - :run_list => [ - "role[base]", - "role[chef-client]" - ] + interfaces Hash[ + :testnet => { + :ip => "192.168.0.254/16", + :name => :eth0 } - }) + ] end end