I am wondering if there is any functionality similar to the action chain that was available in Spacewalk. Or if there is any way to mimic that functionality with the tools built into Foreman.
Expected outcome:
I’d like to have the ability to combine multiple remote commands, and execute them in order like the action chain in Spacewalk.
A typical use case for me in the past would be sending a simple yum update -y to a machine, and then chaining a reboot command to it so it could reboot after updating
Instead of reboot use shutdown -r. This schedules the reboot with one minute delay. The task can successfully finish.
Otherwise, you could use traces. The client host uploads the tracer result and you can the search for all the content hosts which require a reboot and reboot only those. This way, you only reboot if it’s really necessary (according to tracer…)