managing reboots after package installation

26 views
Skip to first unread message

shrey....@invicto.in

unread,
May 22, 2017, 6:43:47 AM5/22/17
to Salt-users
Hi, 

I have scenario where I have to manage on request package installations

and i like using state.single as it gives me useful data, and do necessary checks as well,
so I execute it like this,
Example:
salt 'window-minion' state.single pkg.installed name='firefox'

but after installation I want to know, if the installation of a particular package on a particular minion needs a reboot,
so i tried this,
salt 'window-minion' state.single pkg.installed name='firefox' report_reboot_exit_codes=True
but, both the comands are giving the same output
I am not sure whether this is the right way to go about it

The thing is I dont want to reboot it then, I just want to know if the installation required reboot or not


Thanks for any help in advance



Shrey


Reply all
Reply to author
Forward
0 new messages