varnish job from varnish/1.1.1
Github source:
bb648e2
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
(fromdrain.erb
)bin/pre-start
(frompre-start
)bin/varnish_wrapper
(fromvarnish_wrapper.erb
)config/bpm.yml
(frombpm.yml
)etc/default.vcl
(fromdefault.vcl.erb
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.