Issue #13023 has been updated by Stefan Schulte.

Tracker changed from Feature to Bug
Status changed from Unreviewed to Needs More Information

can you please clarify a bit

That's what I understand:

you want to make sure that a local file on your node has the same content as 
the following file on your master
<pre>
/singleCLOUD/systemrpm/xen-libs-4.0.2_21511_02-0.7.1.x86_64.rpm
</pre>

In fileserver.conf you allow the path `/opt`. Where does that come from? (you 
know that the fileserver.conf is only used on the master side, the part that is 
serving the file?). In your site.pp you suddenly declare a mysql tar.gz
<pre>
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”,
}
</pre>
is `$pupperserver` even set to anything here? I don't seee you xen-lib 
fileresource anywhere?

You also don't say which version of puppet you are using.
----------------------------------------
Bug #13023: transfer file from master to node failed
https://projects.puppetlabs.com/issues/13023#change-56512

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