Func : CopyFileModule を利用する2016/09/29 |
|
CopyFileModule の利用方法です。ファイルを各 Minion へ配布する際に便利です。
|
|
| [1] | Certmaster 上の /root/test.txt を 全 Minion の /home 配下へ配布する。 |
|
[root@dlp ~]#
func "*" copyfile -f /root/test.txt --remotepath /home/test.txt
# ls して確認 [root@dlp ~]# func "*" call command run "ls -l /home" | sed 's/\\n/\n/g'
('node01.srv.world',
[0,
'total 4
drwx------. 2 cent cent 59 Aug 8 2015 cent
-rw-r--r--. 1 root root 10 Sep 30 16:46 test.txt
',
''])
('dlp.srv.world',
[0,
'total 4
drwx------. 2 cent cent 59 Aug 8 2015 cent
-rw-r--r--. 1 root root 10 Sep 30 16:46 test.txt
',
''])
|
| Sponsored Link |
|
|