Skip to content

varnish job from varnish/1.0.1

Github source: 6896ba4 or master branch

Properties

drain_script

A placeholder to add a custom drain script

Default
  |+
    #!/bin/bash
    echo 0

listen_address

Defines what address Varnish should listen to, and service HTTP requests from.

Default
:80

management_interface

Offers a management interface on the specified address and port. To disable the management interface use ‘none’.

Default
none
Example
management_interface: localhost:6082

parameters

Set parameters passed to varnishd as ‘-p ’. This option can be used multiple times to specify multiple parameters.

Default
[]
Example
parameters:
- name: default_ttl
  value: 0
- name: nuke_limit
  value: 500

storage

Defines storage backend(s): ‘-s <[name=]type[,options]>’

Default
[]
Example
storage:
- name: myStorage
  options: 0
  type: malloc

vcl_configuration

Content of VCL configuration file

Default
[]
Example
vcl_configuration: |+
  vcl 4.1;
  backend default {
    .host = "www.example.org";
    .port = "80";
  }

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/varnish/ directory (learn more).

  • bin/drain (from drain.erb)
  • bin/pre-start (from pre-start)
  • bin/varnish_wrapper (from varnish_wrapper.erb)
  • config/bpm.yml (from bpm.yml)
  • etc/default.vcl (from default.vcl.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.