Issue #13023 has been reported by 俊锋 张.
----------------------------------------
Feature #13023: transfer file from master to node failed
https://projects.puppetlabs.com/issues/13023
Author: 俊锋 张
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version:
Keywords:
Branch:
I want to transfer the file xen-libs-4.0.2_21511_02-0.7.1.x86_64.rpm from
master to node
the directory on master is /singleCLOUD/systemrpm, on node is /singleCLOUD
实例:要把server服务器上/opt目录下的mysql-5.1.49-linux-i686-icc-glibc23.tar.gz传输至client服务器的/opt目录下,文件名不变。
第一步:Vi /etc/puppet/fileserver.conf
[files]
path /opt/
allow 192.168.133.0/24
第二步:vi /etc/puppet/manifests/site.pp
file
{ "/opt/mysql-5.1.49-linux-i686-icc-glibc23.tar.gz":
source =>
"puppet://$puppetserver/files/mysql-5.1.49-linux-i686-icc-glibc23.tar.gz",
}
第三步:
在client客户端执行更新命令
puppetd --test --server testsns
The output is :
Mar 8 12:31:52 IPSAN_CNA01 puppet-agent[13519]:
(/Stage[main]//Node[default]/File[/singleCLOUD/systemrpm]) Could not evaluate:
Error 400 on SERVER: Not authorized to call find on
/file_metadata/singleCLOUD/systemrpm/xen-libs-4.0.2_21511_02-0.7.1.x86_64.rpm
Could not retrieve file metadata for
puppet:///singleCLOUD/systemrpm/xen-libs-4.0.2_21511_02-0.7.1.x86_64.rpm: Error
400 on SERVER: Not authorized to call find on
/file_metadata/singleCLOUD/systemrpm/xen-libs-4.0.2_21511_02-0.7.1.x86_64.rpm
at /etc/puppet/manifests/site.pp:8
Mar 8 12:31:52 IPSAN_CNA01 puppet-agent[13519]: Finished catalog run in 0.04
seconds
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.