Support for reboot, shutdown, etc
This module is assumes we are using solaris-like shutdown
New in version 2016.3.0.
salt.modules.solaris_system.
halt
()¶Halt a running system
CLI Example:
salt '*' system.halt
salt.modules.solaris_system.
init
(state)¶Change the system runlevel on sysV compatible systems
CLI Example:
Init state
salt '*' system.init 3
salt.modules.solaris_system.
poweroff
()¶Poweroff a running system
CLI Example:
salt '*' system.poweroff
salt.modules.solaris_system.
reboot
(delay=0, message=None)¶Reboot the system
Optional wait time in seconds before the system will be rebooted.
Optional message to broadcast before rebooting.
CLI Example:
salt '*' system.reboot
salt '*' system.reboot 60 "=== system upgraded ==="
salt.modules.solaris_system.
shutdown
(delay=0, message=None)¶Shutdown a running system
Optional wait time in seconds before the system will be shutdown.
Optional message to broadcast before rebooting.
CLI Example:
salt '*' system.shutdown
salt '*' system.shutdown 60 "=== disk replacement ==="
Generated on August 05, 2021 at 04:04:00 UTC.
You are viewing docs for the previous stable release, 3000.9. Switch to docs for the latest stable release, 3003.1, or to a recent doc build from the master branch.
© 2021 SaltStack. All Rights Reserved, SaltStack Inc. | Privacy Policy