Giter VIP home page Giter VIP logo

varnish4-vagrant's Introduction

varnish-tutorial

A simple packaged Vagrant environment for my Varnish tutorial. Uses Varnish 4.

Uses hiera for the configuration so you just need to edit the Vagrantfile to get it running and then set up your sites in puppet/manifests/hiera/config.yaml.

I'm using a Debian base box, the Puppet manifests are for Debian or Ubuntu. If you want to edit the Varnish configuration the templates are in varnish/templates. You would need to run varnish provision after editing to reprovision the VM and apply your changes.

It's not super robust, and I don't have a Windows machine to test on. So if you spot an obvious Windows issue let me know!

To run this

You need VirtualBox and Vagrant installed.

Git clone this box.

Edit the Vagrantfile, set the webroot to be the folder in which individual site folders live. This will be mapped to /var/www on the guest

Use an IP address not on your network. You will need to edit your hosts file or other internal DNS to map site URLs to that IP address.

The rest of your config happens via Hiera. In puppet/manifests/hiera/config.yaml you can set up some sites, databases and specify PHP.ini values.

The values for PHP Version should be one of:

  • 5.4
  • 5.5
  • 5.6

Put your site folders into the folder you specified in the Vagrantfile and set the docroot as /var/www/foldername

Save the config, run vagrant up.

varnish4-vagrant's People

Contributors

rachelandrew avatar

Watchers

James Cloos avatar Gpkfr avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.