Sha256: 00aeba5c73ec0e1c20a7919fade8c478400cd452c42f2f3f1ecdf9f637ebc09e

Contents?: true

Size: 632 Bytes

Versions: 6

Compression:

Stored size: 632 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

# 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

6 entries across 6 versions & 1 rubygems

Version Path
testlab-0.3.1 lib/testlab/node/templates/node-setup.erb
testlab-0.3.0 lib/testlab/node/templates/node-setup.erb
testlab-0.2.1 lib/testlab/node/templates/node-setup.erb
testlab-0.2.0 lib/testlab/node/templates/node-setup.erb
testlab-0.1.0 lib/testlab/node/templates/node-setup.erb
testlab-0.0.4 lib/testlab/node/templates/node-setup.erb