salt.modules.ssh_service module

Provide the service module for the proxy-minion SSH sample .. versionadded:: 2015.8.2

salt.modules.ssh_service.enabled(name, sig=None)

Only the 'redbull' service is 'enabled' in the test

salt.modules.ssh_service.get_all()

Return a list of all available services

CLI Example:

salt '*' service.get_all
salt.modules.ssh_service.list_()

Return a list of all available services.

CLI Example:

salt '*' service.list
salt.modules.ssh_service.restart(name, sig=None)

Restart the specified service with rest_sample CLI Example:

salt '*' service.restart <service name>
salt.modules.ssh_service.running(name, sig=None)

Return whether this service is running.

salt.modules.ssh_service.start(name, sig=None)

Start the specified service on the rest_sample

CLI Example:

salt '*' service.start <service name>
salt.modules.ssh_service.status(name, sig=None)

Return the status for a service via rest_sample, returns a bool whether the service is running.

CLI Example:

salt '*' service.status <service name>
salt.modules.ssh_service.stop(name, sig=None)

Stop the specified service on the rest_sample

CLI Example:

salt '*' service.stop <service name>