I'm using Salt Python Client API to copy file from master to minion with
minion = '*'
source = "salt://greetings.txt"
target = "/home/salt_testing_cp/greetings.txt"
local = salt.client.LocalClient()
ret = local.cmd_full_return(minion, 'cp.get_file', [source,
print json.dumps(ret, indent=2)
*1) Can we transfer files without using salt file server ? *If yes, how to
achieve it with Python Client API available.
2) Also the document says *"You can't run interactive scripts" *. Does it
mean there are some limitations to execute arbitrary linux commands with
cmd.run eg. we can run salt "*" cmd.run ['ls -l /home'] . Similarly can we
run commands like scp,ssh with cmd.run.
eg. salt '*' cmd.run ['ssh firstname.lastname@example.org']
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 email@example.com.
For more options, visit https://groups.google.com/d/optout.