Package Varnish with VMODs
This script will create a Debian/Ubuntu package for Varnish Cache Server with many VMODs compiled in.
The tasty stuff is in varnish_installer.rb - script. It will generate a rather lengthy bash script with all the necessary steps to:
- install dependencies,
- download sources,
- configure them,
- install,
- preparing all the specified VMODs
- and wrapping it up in a delicious and lightweight package, that is very easy to install.
For the unpacient:
$ apt-get install gdebi-core
$ wget http://optimate.dl.sourceforge.net/project/mindreframerpackages/varnish-3.0.4.ubuntu.12.04_amd64.deb
$ gdebi -n varnish-3.0.4.ubuntu.12.04_amd64.deb
# get the list of installed VMODs
$ ls -la /usr/local/lib/varnish/vmods
*** GENERATED BY sh/update_readme.rb ***
statsd:
- https://github.com/jib/libvmod-statsd.git
timers:
- https://github.com/jib/libvmod-timers.git
curl:
- https://github.com/varnish/libvmod-curl.git
ipcast:
- https://github.com/lkarsten/libvmod-ipcast.git
throttle:
- https://github.com/nand2/libvmod-throttle.git
var:
- https://github.com/varnish/libvmod-var.git
memcached:
- https://github.com/sodabrew/libvmod-memcached.git
digest:
- https://github.com/varnish/libvmod-digest.git
shield:
- https://github.com/varnish/libvmod-shield.git
threescale:
- https://github.com/3scale/libvmod-3scale.git
cookie:
- https://github.com/lkarsten/libvmod-cookie.git
urlcode:
- https://github.com/fastly/libvmod-urlcode.git
timeutils:
- https://github.com/jthomerson/libvmod-timeutils.git
dgram:
- https://github.com/mmb/vmod_dgram.git
parsereq:
- https://github.com/xcir/libvmod-parsereq.git
header:
- https://github.com/varnish/libvmod-header.git
-
Vagrant-cachier
vagrant plugin install vagrant-cachier
-
Ubuntu 12.04 box
vagrant box add precise64 http://files.vagrantup.com/precise64.box
$ git clone https://github.com/mindreframer/vagrant-varnish-vmods-builder.git
$ cd vagrant-varnish-vmods-builder
# will install vagrant plugins
$ sh/update-plugins
$ vagrant up box1
$ vagrant ssh box1 -c "sudo /vagrant/sh/install-varnish.sh"
$ vagrant up box2
$ vagrant ssh box2
## on the box2 system
$ apt-get install gdebi-core
$ gdebi -n /vagrant/pkg/varnish-3.0.4.ubuntu.12.04_amd64.deb
# get the list of installed VMODs
$ ls -la /usr/local/lib/varnish/vmods
$ varnishd -V
varnishd (varnish-3.0.4 revision 9f83e8f)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2011 Varnish Software AS