salt.proxy.rest_sample module

This is a simple proxy-minion designed to connect to and communicate with the bottle-based web service contained in https://github.com/salt-contrib/proxyminion_rest_example

salt.proxy.rest_sample.grains()

Get the grains from the proxied device

salt.proxy.rest_sample.grains_refresh()

Refresh the grains from the proxied device

salt.proxy.rest_sample.init(opts)

Every proxy module needs an 'init', though you can just put a 'pass' here if it doesn't need to do anything.

salt.proxy.rest_sample.package_install(name, **kwargs)

Install a "package" on the REST server

salt.proxy.rest_sample.package_list()

List "packages" installed on the REST server

salt.proxy.rest_sample.package_remove(name)

Remove a "package" on the REST server

salt.proxy.rest_sample.package_status(name)

Check the installation status of a package on the REST server

salt.proxy.rest_sample.ping()

Is the REST server up?

salt.proxy.rest_sample.service_list()

List "services" on the REST server

salt.proxy.rest_sample.service_restart(name)

Restart a "service" on the REST server

salt.proxy.rest_sample.service_start(name)

Start a "service" on the REST server

salt.proxy.rest_sample.service_status(name)

Check if a service is running on the REST server

salt.proxy.rest_sample.service_stop(name)

Stop a "service" on the REST server

salt.proxy.rest_sample.shutdown(opts)

For this proxy shutdown is a no-op