debug: //Node[vm0000170.sina.com.cn]/user::filetest/File[/root/puppet/server_netstat.txt]: File does not exist debug: Calling fileserver.describe err: //Node[vm0000170.sina.com.cn]/user::filetest/File[/root/puppet/server_netstat.txt]: Failed to retrieve current state of resource: /etc/puppet/manifests/modules/user/files does not exist Could not describe /user/server_netstat.txt: /etc/puppet/manifests/modules/user/files does not exist at /etc/puppet/manifests/modules/user/manifests/init.pp:4 fileserver.conf: [user] path /etc/puppet/mainfests/modules/user allow * /etc/puppet/manifests/modules/user/manifests/init.pp: class user::filetest { file { "/root/puppet/server_netstat.txt": source => "puppet://vm0000190.sina.com.cn/user/server_netstat.txt" } } And the file server_netstat.txt stores in /etc/puppet/manifests/modules/user/files/server_netstat.txt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
jcbollinger
2009-Aug-27 13:27 UTC
[Puppet Users] Re: Failed to retrieve file from the server
On Aug 26, 10:48 pm, ice jew <jewfor...@gmail.com> wrote:> debug: //Node[vm0000170.sina.com.cn]/user::filetest/File[/root/puppet/server_netstat.txt]: > File does not exist > debug: Calling fileserver.describe > err: //Node[vm0000170.sina.com.cn]/user::filetest/File[/root/puppet/server_netstat.txt]: > Failed to retrieve current state of resource: > /etc/puppet/manifests/modules/user/files does not exist Could not describe > /user/server_netstat.txt: /etc/puppet/manifests/modules/user/files does not > exist at /etc/puppet/manifests/modules/user/manifests/init.pp:4 > > fileserver.conf: > [user] > path /etc/puppet/mainfests/modules/user > allow * > > /etc/puppet/manifests/modules/user/manifests/init.pp: > class user::filetest { > file { "/root/puppet/server_netstat.txt": > source => "puppet://vm0000190.sina.com.cn/user/server_netstat.txt"Supposing that you want to load the file from the same server that the manifest comes from, I recommend removing the server name from the source URL, i.e.: source => "puppet:///user/server_netstat.txt" That could be the source of your error, in fact, but more likely not.> > } > } > > And the file server_netstat.txt stores in > /etc/puppet/manifests/modules/user/files/server_netstat.txtA more likely problem is that file permissions prevent the puppetmaster daemon from reading the file. Files to be served must be readable by the server user, which, if you''re practicing safe computing, is not root. I run into that regularly (you''d think I would learn :-) ). John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---