22.16.205. salt.modules.system

Support for reboot, shutdown, etc

salt.modules.system.halt()

Halt a running system

CLI Example:

salt '*' system.halt
salt.modules.system.init(runlevel)

Change the system runlevel on sysV compatible systems

CLI Example:

salt '*' system.init 3
salt.modules.system.poweroff()

Poweroff a running system

CLI Example:

salt '*' system.poweroff
salt.modules.system.reboot()

Reboot the system using the 'reboot' command

CLI Example:

salt '*' system.reboot
salt.modules.system.shutdown(at_time=None)

Shutdown a running system

CLI Example:

salt '*' system.shutdown

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.204. salt.modules.sysmod

Next topic

22.16.206. salt.modules.systemd

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.