I’ve finally got round to semi using puppet with openstack.
Puppet has a useful backend for openstack, and there’s many solutions out there already to help this scenario, puppetlabs, rdo and packstack for example.
My example will allow you to use on an existing network with a very simple setup to get you going.
I’ve found there’s a lot of how and what on this question on the web so I thought I would made a nice quick and simple tutorial
Ok say that eth0 is your external port and eth1 is your private
Configure your IP on each interface
yum install firewalld
Assign your interfaces to the zones
firewall-cmd –permanent –zone=internal –add-interface=eth1
firewall-cmd –permanent –zone=public –add-interface=eth0
Activate port forwarding
sysctl -w net.ipv4.ip_forward=1
echo “net.ipv4.ip_forward = 1” >> /etc/sysctl.d/ip_forward.conf
Command traffic from your eth1’s range to go through eth0
firewall-cmd –permanent –direct –passthrough ipv4 -t nat -I POSTROUTING -o eth0 -j MASQUERADE -s 192.168.101.0/24
Allow DNS through
firewall-cmd –permanent –zone=internal –add-service=dns
Just a quick post today, these three work very nice together, I’ve managed to find a very nice vcl for Varnish which certainly seems to improve speed and allow W3 Total Cache to work along side WordPress if you wish to give it a bash feel free to download from my github
Once done update your W3 Total Cache plugin Varnish Purge with the IP 127.0.0.1.