Support for nginx
salt.modules.nginx.
build_info
()¶Return server and build arguments
CLI 范例:
salt '*' nginx.build_info
salt.modules.nginx.
configtest
()¶test configuration and exit
CLI 范例:
salt '*' nginx.configtest
salt.modules.nginx.
signal
(signal=None)¶Signals nginx to start, reload, reopen or stop.
CLI 范例:
salt '*' nginx.signal reload
salt.modules.nginx.
status
(url='http://127.0.0.1/status')¶Return the data from an Nginx status page as a dictionary. http://wiki.nginx.org/HttpStubStatusModule
CLI 范例:
salt '*' nginx.status
salt.modules.nginx.
version
()¶Return server version from nginx -v
CLI 范例:
salt '*' nginx.version