python - How to check if the state.highstate is applied on a minion? -


How can I tell if the State Highway is implemented for a Minion? Is there a salt-call, I can see if salt. Does the heatstate apply?


I found out how ... find that lookup_jid returns results for every state to be true or false, in fact what I was looking for.

bash

  [root @ localhost ~] # salt-run jobs .lookup_jid 20141105195906794185 10.0.2.15: ------- --- pkg_ | -apache_ | -httpd_ | -installed: ---------- __run_num__: 0 changes: ---------- NOTE: package httpd has already been installed. Duration: 1671.884 Name: httpd Result: True Retcode: 1 start_time: 20: 16: 06.942403 service_ | -apache_ | -httpd_ | -Rayee: ---------- __run_num__: 1 Change: ----- ----- Note: The service httpd is already disabled, and in the desired state period: 653.679 Name: httpd Result: The right ratecode: 1 start_time: 20: 16: 08.614446  

You State.highstate to call from test = true :

  salt '*' state. Histate test = true  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -