--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/799150e0-2eaf-42ec-877e-03826d82e6ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There are a couple api libraries, one for python and one for Java which interact with the salt-api. https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.htmlYou could interact with your salt master in the same way and use the api to run commands and query the job cache for the results.Daniel
On Tue, Jan 31, 2017 at 1:26 PM, R <emailn...@gmail.com> wrote:
Hi All,Greetings,I am novice to SALT. I have installed SALT master and minion (remote host) and was able to execute a Shell script on remote host (minion) successfully. I want to capture the response in a html page for which I have to write a php wrapper. Could you please help me with a code snippet where with a button click on a php page, triggers the shell scripts to run them on Salt Minions and extract the output back to the browser.. If anybody has done this, I kindly request you to provide me an idea as to how to go about this.Webpage --------------------> Salt Master -----------------------> Salt Minionbutton click shell script executionWebpage <----------------------- Salt Master <------------------------ Salt Minionresponse(outputof Shell script)FYI, I have Apache and php installed on the salt Master.Thanks in advanceR
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/9e1e5e7a-f913-4367-a79f-a18770ebbb6e%40googlegroups.com.