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

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.varnish.html