Sha256: bca84368b59a0235ded890bea205f04dc209b93205f8ecb398f96ec4c4c4a4ed

Contents?: true

Size: 639 Bytes

Versions: 13

Compression:

Stored size: 639 Bytes

Contents

set -x

# 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 sshpass

# Ensure the default lxc networking services are off
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

13 entries across 13 versions & 1 rubygems

Version Path
testlab-0.4.13 lib/testlab/node/templates/node-setup.erb
testlab-0.4.12 lib/testlab/node/templates/node-setup.erb
testlab-0.4.11 lib/testlab/node/templates/node-setup.erb
testlab-0.4.10 lib/testlab/node/templates/node-setup.erb
testlab-0.4.9 lib/testlab/node/templates/node-setup.erb
testlab-0.4.8 lib/testlab/node/templates/node-setup.erb
testlab-0.4.7 lib/testlab/node/templates/node-setup.erb
testlab-0.4.6 lib/testlab/node/templates/node-setup.erb
testlab-0.4.5 lib/testlab/node/templates/node-setup.erb
testlab-0.4.4 lib/testlab/node/templates/node-setup.erb
testlab-0.4.3 lib/testlab/node/templates/node-setup.erb
testlab-0.4.2 lib/testlab/node/templates/node-setup.erb
testlab-0.4.1 lib/testlab/node/templates/node-setup.erb