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
-
Add ban to the varnish cache
CLI Example:
salt '*' varnish.ban ban_expression
salt.modules.varnish.ban(ban_expression)
-
List varnish cache current bans
CLI Example:
salt '*' varnish.ban_list
salt.modules.varnish.ban_list()
-
Set a param in varnish cache
CLI Example:
salt '*' varnish.param_set param value
salt.modules.varnish.param_set(param, value)
-
Show params of varnish cache
CLI Example:
salt '*' varnish.param_show param
salt.modules.varnish.param_show(param=None)
-
Purge the varnish cache
CLI Example:
salt '*' varnish.purge
salt.modules.varnish.purge()
-
Return server version from varnishd -V
CLI Example:
salt '*' varnish.version
salt.modules.varnish.version()
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.varnish.html