想把文件psutil-3.3.0.tar.gz从master上复制到minions的/root/python/soft位置,看了文档,但是没有作用,不知道有什么问题没有?
root@ubuntu:~/python/soft# salt '*' cp.get_file salt://root/python/soft/psutil-3.3.0.tar.gz /root/python/soft
ub1:
ub2:
root@ubuntu:~/python/soft# pwd
/root/python/soft
root@ubuntu:~/python/soft# salt '*' test.ping
ub1:
True
ub2:
True
root@ubuntu:~/python/soft# salt '*' cmd.run 'ls -l /root/python/soft/'
ub2:
total 0
ub1:
total 0
猜测是路径问题。
salt://
对应的根目录是 master
配置文件中的 file_roots
的 base
项。