salt.modules.varnish

Support for Varnish

2014.7.0 新版功能.

注解

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 范例:

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

List varnish cache current bans

命令行接口CLI 范例:

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

Set a param in varnish cache

命令行接口CLI 范例:

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

Show params of varnish cache

命令行接口CLI 范例:

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

Purge the varnish cache

命令行接口CLI 范例:

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

Return server version from varnishd -V

命令行接口CLI 范例:

salt '*' varnish.version