Skip to content

ivan7farre/vagrant-varnish-vmods-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Package Varnish with VMODs

What is this?

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

Compiled 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

Requirements:

  • Vagrant - Download

  • Vagrant-cachier

    vagrant plugin install vagrant-cachier

  • Ubuntu 12.04 box

    vagrant box add precise64 http://files.vagrantup.com/precise64.box

Installation

$ 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"

Testing on a clean system

$ 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

About

Install Varnish from custom DEB package with plenty VMODs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 53.2%
  • Shell 46.8%