Sha256: 9e0384ceeb7bd940f6884741067c30b810b6fb4b4db022edda0791debd7b3381
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
#!/usr/bin/env ruby #^syntax detection shell_provision_script = <<-EOF set -x apt-get -y update apt-get -y install dnsutils EOF config Hash[ :domain => "default.zone" ] node :localhost do components %w(resolv bind) route true provider TestLab::Provider::Vagrant config Hash[ :vagrant => { :id => "mytestlab-#{ENV['USER']}".downcase, :ip => "192.168.255.1", :user => "vagrant", :port => 22, :cpus => 1, :memory => 512 }, :repo => File.dirname(__FILE__) ] network :testnet do address '192.168.255.254/16' bridge :br0 end # DUAL NICs container "server-dual-nic" do distro "ubuntu" 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 # SINGLE NIC container "server-single-nic" do distro "ubuntu" release "precise" interface do name :eth0 network_id :testnet address '192.168.0.200/16' end end # SHELL PROVISIONER container "server-shell" do distro "ubuntu" release "precise" provisioner TestLab::Provisioner::Shell config Hash[ :shell => "/bin/bash", :setup => shell_provision_script ] interface do name :eth0 network_id :testnet address '192.168.0.200/16' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
testlab-0.4.0 | spec/support/Labfile |