Sha256: 15a51f51ce90f27ffc44b8a958ad9e12da4f910e864441748a761667e758381d

Contents?: true

Size: 826 Bytes

Versions: 27

Compression:

Stored size: 826 Bytes

Contents

set -x
set -e

export DEBIAN_FRONTEND="noninteractive"

if [ ! -f /.testlab-raring-bootstrap ]; then
  # Update APT and ensure our required packages are installed
  apt-get -y update
  apt-get -y install lxc bridge-utils debootstrap yum iptables ntpdate ntp pbzip2

  touch /.testlab-raring-bootstrap
fi

# Ensure the default lxc networking services are off
service lxc-net stop || (service lxc-net start ; service lxc-net stop)

# Ensure NTP services are enabled and running
service ntp restart || service ntp start

# Enable ipv4 forwarding
sysctl net.ipv4.ip_forward | grep "net.ipv4.ip_forward = 1" || sysctl -w net.ipv4.ip_forward=1

# Install an iptable NAT rule
iptables -t nat --list -v | grep "MASQUERADE  all  --  any    eth0    anywhere             anywhere" || iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
testlab-0.9.1 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.9.0 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.6 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.5 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.4 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.3 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.2 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.1 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.8.0 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.6 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.5 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.4 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.3 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.2 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.1 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.7.0 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.6.17 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.6.16 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.6.15 lib/testlab/provisioners/templates/raring/bootstrap.erb
testlab-0.6.14 lib/testlab/provisioners/templates/raring/bootstrap.erb