Sha256: 9fe440bfc0879dee6a118d1f2ec972c73a3084c27bc50ebe57ea831dd847d209

Contents?: true

Size: 1.44 KB

Versions: 6

Compression:

Stored size: 1.44 KB

Contents

#!/usr/bin/env ruby
#^syntax detection

node 'vagrant' do

  provider      TestLab::Provider::Vagrant

  provisioners  [
    TestLab::Provisioner::Raring,
    TestLab::Provisioner::Bind
  ]

  config      ({
    :vagrant => {
      :id       => "test-cucumber-#{TestLab.hostname}".downcase,
      :cpus     => ZTK::Parallel::MAX_FORKS.div(2),                    # use half of the available processors
      :memory   => ZTK::Parallel::MAX_MEMORY.div(3).div(1024 * 1024),  # use a third of available RAM
      :box      => 'raring64',
      :box_url  => 'https://dl.dropboxusercontent.com/u/22904185/boxes/raring64.box',
      :file     => File.dirname(__FILE__)
    },
    :bind => {
      :domain => "default.zone"
    }
  })

  network 'labnet' do
    address       '10.128.0.1/16'
    bridge        :br0
  end

  container "test-server" do
    distro        "ubuntu"
    release       "precise"

    provisioners   [
      TestLab::Provisioner::Resolv,
      TestLab::Provisioner::AptCacherNG,
      TestLab::Provisioner::Apt
    ]

    user do
      username         'deployer'
      password         'deployer'
      identity         File.join(ENV['HOME'], '.ssh', 'id_rsa')
      public_identity  File.join(ENV['HOME'], '.ssh', 'id_rsa.pub')
      uid              2600
      gid              2600
    end

    interface do
      network_id  'labnet'
      name        :eth0
      address     '10.128.0.254/16'
      mac         '00:00:5e:63:b5:9f'
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
testlab-0.9.1 features/support/Labfile.vagrant
testlab-0.9.0 features/support/Labfile.vagrant
testlab-0.8.6 features/support/Labfile.vagrant
testlab-0.8.5 features/support/Labfile.vagrant
testlab-0.8.4 features/support/Labfile.vagrant
testlab-0.8.3 features/support/Labfile.vagrant