Alright, I didn't even make it to the point of putting together a package for Ansible to install on my Vagrant box -- I can't seem to properly compile the GeoIP Vmod for Varnish. I'm attempting to use the Vagrant Box chef/centos-6.5
Here is the latest set of commands I've attempted right after vagrant up:
sudo rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el6.rpm #for geoip wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm sudo rpm -Uvh epel-release-6*.rpm sudo yum install -y varnish-3.0.3 sudo yum install -y pcre-devel libedit libedit-devel python-docutils unzip # varnish source wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz tar -zxvf varnish-3.0.3.tar.gz # vmod wget https://github.com/leed25d/geoip-vmod/archive/master.zip unzip master cd geoip-vmod-master sudo yum -y install automake autoinstall libtool geoip geoip-devel sudo ./autogen.sh cd ../varnish-3.0.3 sudo ./configure VARNISHSRC=/vagrant/varnish-3.0.3 VMODDIR=/usr/lib64/varnish/vmods/ sudo make sudo make install
Solution for all those after me looking to add the GeoIP VMOD to Centos 6.5
Optionally start a new chef/centos-6.5 box:
vagrant init 'chef/centos-6.5' vagrant up vagrant ssh
Install the GeoIP vmod
sudo rpm --nosignature -i https://repo.varnish-cache.org/redhat/varnish-3.0.el6.rpm #for geoip installation wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm sudo rpm -Uvh epel-release-6*.rpm sudo yum install -y varnish-3.0.3 pcre-devel libedit libedit-devel python-docutils unzip automake autoinstall libtool geoip geoip-devel git # get varnish source wget http://repo.varnish-cache.org/source/varnish-3.0.3.tar.gz tar -zxvf varnish-3.0.3.tar.gz cd varnish-3.0.3 sudo ./autogen.sh sudo ./configure sudo make cd .. # get geoip vmod git clone https://github.com/leed25d/geoip-vmod.git cd geoip-vmod # varnish 3 incompatibility introduced after this commit git checkout 437277a172f306dc4814d1c71fc8aeb99036d1fb sudo ./autogen.sh sudo ./configure VARNISHSRC=/home/vagrant/varnish-3.0.3 VMODDIR=/usr/lib64/varnish/vmods/ sudo make sudo make install
[link][10 comments]