Giter Site home page Giter Site logo

squid3_vagrant-chef's Introduction

Squid3 exercises using Vagrant and Chef-solo

Usage

Get it running

  1. Install VirtualBox
  2. Install Vagrant
  3. Install Vagrant omnibus plugin vagrant plugin install vagrant-omnibus
  4. Execute in project directory: vagrant up

By now You have 3 VMs running with ubuntu and squid3 installed. It may take a while when running the command for the first time as it needs to download the OS image.

Creating cache hierarchy ( assuming all is up and running)

  1. Open script file
  2. In script change hierarchyId ( in line 3) to one of: 1, 2, 3 or 4
  3. Execute in project directory: vagrant provision
  4. Execute curl ( on host machine) with selected vm address as proxy f.e. curl -x 192.168.56.101:3128 http://www.deepsloweasy.com/ or just run on of the scripts from scripts folder
  5. Go to logs to view generated data f.e. here if You are interested in squid1's logs and configuration after running the 3rd hierarchy

Kill the VMs:

vagrant halt

You can also ssh into the machine: vagrant ssh MACHINE_NAME, where MACHINE_NAME is one of:

  • squid0
  • squid1
  • squid2

Interested in hierarchy configuration? hierarchy configuration

VMs

squid0 squid1 squid2
MAC 080000002101 080000002111 080000002121
eth1 192.168.56.101
080000002102
192.168.56.102
080000002112
192.168.56.103
080000002122

squid3_vagrant-chef's People

Contributors

scthe avatar

Watchers

James Cloos avatar  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.