Module for rebootmgr :maintainer: Alberto Planas <aplanas@suse.com> :maturity: new :depends: None :platform: Linux
New in version 3004.
Cancels an already running reboot.
CLI Example:
salt microos rebootmgr cancel
The currently set lock group for etcd.
CLI Example:
salt microos rebootmgr get_group
The currently used reboot strategy of rebootmgrd will be printed.
CLI Example:
salt microos rebootmgr get_strategy
The currently set maintenance window will be printed.
CLI Example:
salt microos rebootmgr get_window
Check if the rebootmgrd is running and active or not.
CLI Example:
salt microos rebootmgr is_active
will be used. If no machine-id is specified, the local machine will be locked.
The machine-id is a network wide, unique ID. Per default the ID from /etc/machine-id is used.
Group name
CLI Example:
salt microos rebootmgr lock group=group1
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.
If specified, can be "now" or "fast"
CLI Example:
salt microos rebootmgr reboot
salt microos rebootmgt reboot order=now
from etcd.
Group name
CLI Example:
salt microos rebootmgr set_group group=group_1
reboot at the same time.
Maximal number of hosts in a group
Group name
CLI Example:
salt microos rebootmgr set_max 4
A new strategy to reboot the machine is set and written into /etc/rebootmgr.conf.
If specified, must be one of those options:
running, etcd-lock is used. If no etcd is running, but a maintenance window is specified, the strategy will be maint-window. If no maintenance window is specified, the machine is immediately rebooted (instantly).
be acquired before reboot. If a maintenance window is specified, the lock is only acquired during this window.
maintenance window. If no window is specified, the instantly strategy is followed.
happen. Reboot will be done without getting any locks or waiting for a maintenance window.
ignored. /etc/rebootmgr.conf is not modified.
CLI Example:
salt microos rebootmgr set_strategy stragegy=off
Set's the maintenance window.
The format of time is the same as described in systemd.time(7).
The format of duration is "[XXh][YYm]".
CLI Example:
salt microos rebootmgr set_window time="Thu,Fri 2020-*-1,5 11:12:13" duration=1h
Returns the current status of rebootmgrd.
0 - No reboot requested 1 - Reboot requested 2 - Reboot requested, waiting for maintenance window 3 - Reboot requested, waiting for etcd lock.
CLI Example:
salt microos rebootmgr status
will be used. If no machine-id is specified, the local machine will be locked.
The machine-id is a network wide, unique ID. Per default the ID from /etc/machine-id is used.
Group name
CLI Example:
salt microos rebootmgr unlock group=group1
Return the version of rebootmgrd
CLI Example:
salt microos rebootmgr version