| maintainer: | Alberto Planas <aplanas@suse.com> |
|---|---|
| maturity: | new |
| depends: | None |
| platform: | Linux |
New in version 3004.
salt.modules.rebootmgr.cancel()¶Cancels an already running reboot.
CLI Example:
salt microos rebootmgr cancel
salt.modules.rebootmgr.get_group()¶The currently set lock group for etcd.
CLI Example:
salt microos rebootmgr get_group
salt.modules.rebootmgr.get_strategy()¶The currently used reboot strategy of rebootmgrd will be printed.
CLI Example:
salt microos rebootmgr get_strategy
salt.modules.rebootmgr.get_window()¶The currently set maintenance window will be printed.
CLI Example:
salt microos rebootmgr get_window
salt.modules.rebootmgr.is_active()¶Check if the rebootmgrd is running and active or not.
CLI Example:
salt microos rebootmgr is_active
salt.modules.rebootmgr.lock(machine_id=None, group=None)¶CLI Example:
salt microos rebootmgr lock group=group1
salt.modules.rebootmgr.reboot(order=None)¶Tells rebootmgr to schedule a reboot.
With the [now] option, a forced reboot is done, no lock from etcd is requested and a set maintenance window is ignored. With the [fast] option, a lock from etcd is requested if needed, but a defined maintenance window is ignored.
CLI Example:
salt microos rebootmgr reboot
salt microos rebootmgt reboot order=now
salt.modules.rebootmgr.set_group(group)¶CLI Example:
salt microos rebootmgr set_group group=group_1
salt.modules.rebootmgr.set_max(max_locks, group=None)¶CLI Example:
salt microos rebootmgr set_max 4
salt.modules.rebootmgr.set_strategy(strategy=None)¶A new strategy to reboot the machine is set and written into /etc/rebootmgr.conf.
If specified, must be one of those options:
CLI Example:
salt microos rebootmgr set_strategy stragegy=off
salt.modules.rebootmgr.set_window(time, duration)¶Set's the maintenance window.
CLI Example:
salt microos rebootmgr set_window time="Thu,Fri 2020-*-1,5 11:12:13" duration=1h
salt.modules.rebootmgr.status()¶Returns the current status of rebootmgrd.
CLI Example:
salt microos rebootmgr status
salt.modules.rebootmgr.unlock(machine_id=None, group=None)¶CLI Example:
salt microos rebootmgr unlock group=group1
salt.modules.rebootmgr.version()¶Return the version of rebootmgrd
CLI Example:
salt microos rebootmgr version
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 3004.1