Sha256: 5d03a12b9427f1c890f61bb81b43e1014b8527e235c91a557f5094f67d0c5304

Contents?: true

Size: 834 Bytes

Versions: 5

Compression:

Stored size: 834 Bytes

Contents

set -x
set -e

[[ -f /.testlab-raring-provision ]] && exit 0

export DEBIAN_FRONTEND="noninteractive"

# Update APT and ensure our required packages are installed
apt-get -y update
apt-get -y install lxc bridge-utils debootstrap yum iptables iptables-persistent ntpdate ntp pbzip2

# Ensure the default lxc networking services are off
service lxc-net stop || (service lxc-net start ; service lxc-net stop)
echo "manual" | tee /etc/init/lxc-net.override

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

# Enable IPv4 forwarding
sed -i 's/#net.ipv4.ip_forward=1/net.ipv4.ip_forward=1/' /etc/sysctl.conf
sysctl -w net.ipv4.ip_forward=1

# Install an iptable NAT rule
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables-save | tee /etc/iptables/rules.v4

touch /.testlab-raring-provision

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
testlab-1.2.3 lib/testlab/provisioners/templates/raring/provision.erb
testlab-1.2.2 lib/testlab/provisioners/templates/raring/provision.erb
testlab-1.2.1 lib/testlab/provisioners/templates/raring/provision.erb
testlab-1.2.0 lib/testlab/provisioners/templates/raring/provision.erb
testlab-1.1.0 lib/testlab/provisioners/templates/raring/provision.erb