I am using CentOS6.5. I can successfully copy a file from master to a minion with id=minionId by running the following command on the master:
salt minionId cp.get_file salt://fileInMaster.txt /home/johnDoe/fileNowInMinion.txt ##run on master
If I have to accomplish the exact same thing using python how do I do it? Following this link all I find is a way to copy a file from master to minion by running a script on the minion. I want to run a python script on master that copies a file from master to a specific minion with given Id