Issue #13023 has been updated by Stefan Schulte.

I am not sure if I understand your question correctly. If you reference a local 
file with the source parameter you can (and have to) use an absolute pathname. 
Like
<pre>
file { '/etc/localtime':
  ensure => file,
  source => '/usr/share/zoneinfo/Europe/Berlin',
}
</pre>
Note that the source parameter does reference a local file on the agent, not on 
the master. If you want to reference a file on the puppetmaster you cannot 
specify an absolute path. The path is always relative to certain mountpoint 
(like the modulepath).

So a source parameter of `puppet:///modules/test_module/testfile.txt` might 
reference the file `/etc/puppet/modules/test_module/files/testfile.txt`

If you do have more general questions about puppet file serving I encourage you 
in subscribing to the puppet-users mailinglist: 
http://groups.google.com/group/puppet-users?pli=1

You will reach a bigger audience there.
----------------------------------------
Bug #13023: transfer file from master to node failed
https://projects.puppetlabs.com/issues/13023#change-60625

Author: 俊锋 张
Status: Needs More Information
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.

Reply via email to