CopyFileModule2011/05/14 |
Basic usage of CopyFileModule. It's useful to copy files to minions.
|
|
[1] | Copy '/root/test2.txt' on Certmaster to all minions. |
[root@certmaster ~]# func "*" copyfile -f /root/test2.txt --remotepath /root/test2.txt [root@certmaster ~]# func "*" call command run "ls -l /root" | sed 's/\\n/\n/g'
('minion02', [0, 'total 24 -rw-------. 1 root root 1274 Mar 14 21:58 anaconda-ks.cfg -rw-r--r--. 1 root root 8681 Mar 14 21:58 install.log -rw-r--r--. 1 root root 3094 Mar 14 21:56 install.log.syslog -rw-r--r-- 1 root root 89 May 14 23:14 test2.txt -rw------- 1 nobody nobody 0 May 14 23:04 test.txt ', '']) ('minion01', [0, 'total 24 -rw-------. 1 root root 1274 Mar 14 21:58 anaconda-ks.cfg -rw-r--r--. 1 root root 8681 Mar 14 21:58 install.log -rw-r--r--. 1 root root 3094 Mar 14 21:56 install.log.syslog -rw-r--r-- 1 root root 89 May 14 23:14 test2.txt -rw------- 1 nobody nobody 0 May 14 23:04 test.txt ', '']) |
Sponsored Link |