salt.modules.system

支持reboot, shutdown,等等

salt.modules.system.halt()

Halt一个正在运行的系统

CLI 范例:

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

改变系统运行级别在sysV兼容的系统

CLI 范例:

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

Poweroff一个正在运行的系统

CLI 范例:

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

Reboot the system

at_time
The wait time in minutes before the system will be rebooted.

CLI 范例:

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

Shutdown一个运行中的系统

at_time
The wait time in minutes before the system will be shutdown.

CLI 范例:

salt '*' system.shutdown 5