CentOS 5
Sponsored Link

CopyFileModule2010/05/03

  Basic usage of CopyFileModule. It's useful to copy a file to some 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 /root" | sed 's/\\n/\n/g'

('minion.server-linux.info',
[0,
'anaconda-ks.cfg
install.log
install.log.syslog
install.sh
Maildir
test2.txt
# just copied

test.txt
',
''])
('www.server-linux.info',
[0,
'anaconda-ks.cfg
install.log
install.log.syslog
mbox
test2.txt
# just copied

test.txt
',
''])
Matched Content