openSUSE / salt

openSUSE and SUSE patches and backports for SaltStack
Apache License 2.0
22 stars 52 forks source link

Allow explicit reboot on transactional minions #643

Open m-czernek opened 6 months ago

m-czernek commented 6 months ago

What does this PR do?

In this PR, we parse the execution result on a transactional system. If user specified any of the provided explicit_reboot_cmds commands in a state file, we issue a reboot even when activate_transaction was not explicitly passed to the module.

Note that user still gets the result of running in chroot, ignoring (but the system actually reboots).

What issues does this PR fix or reference?

Part of https://github.com/SUSE/spacewalk/issues/23874

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes/No