22.16.215. salt.modules.varnish

Support for Varnish

New in version 2014.7.0.

Note

These functions are designed to work with all implementations of Varnish from 3.x onwards

salt.modules.varnish.ban(ban_expression)

Add ban to the varnish cache

CLI Example:

salt '*' varnish.ban ban_expression
salt.modules.varnish.ban_list()

List varnish cache current bans

CLI Example:

salt '*' varnish.ban_list
salt.modules.varnish.param_set(param, value)

Set a param in varnish cache

CLI Example:

salt '*' varnish.param_set param value
salt.modules.varnish.param_show(param=None)

Show params of varnish cache

CLI Example:

salt '*' varnish.param_show param
salt.modules.varnish.purge()

Purge the varnish cache

CLI Example:

salt '*' varnish.purge
salt.modules.varnish.version()

Return server version from varnishd -V

CLI Example:

salt '*' varnish.version

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.214. salt.modules.uwsgi

Next topic

22.16.216. salt.modules.virt

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.