CopyFileModule2011/05/14 |
|
CopyFileModule の使い方です。ファイルを各Minionへ配布するときに便利です。
|
|
| [1] | Certmaster 上の /root/test2.txt を 全minionの /root 配下へ配布する |
|
[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 |
|
|