This is a simple proxy-minion designed to connect to and communicate with the bottle-based web service contained in https://github.com/saltstack/salt-contrib/tree/master/proxyminion_rest_example
salt.proxy.rest_sample.alive(opts)¶salt.proxy.rest_sample.fix_outage()¶salt.proxy.rest_sample.fns()¶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.id(opts)¶Return a unique ID for this proxy minion. This ID MUST NOT CHANGE. If it changes while the proxy is running the salt-master will get really confused and may stop talking to this minion
salt.proxy.rest_sample.init(opts)¶salt.proxy.rest_sample.initialized()¶Since grains are loaded in many different places and some of those places occur before the proxy can be initialized, return whether our init() function has been called
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
salt.proxy.rest_sample.test_from_state()¶Test function so we have something to call from a state :return:
salt.proxy.rest_sample.uptodate(name)¶Call the REST endpoint to see if the packages on the “server” are up to date.
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2018.3.3