In addition to needing to use three '/'s in your URI as Den mentioned, you would need to change up your folder path. Modules under /etc/puppet/modules all have their own structure i.e. /etc/puppet/modules/modulename/{files,manifests,templates,tests}. When structuring your URI you need to keep in mind that the 'files' folder is invisible or silent. If you have a module named 'files', then you would need to put your motd file in /etc/puppet/modules/files/files/etc/.
- Tony On Tuesday, November 25, 2014 10:43:31 PM UTC-8, Jegadeesh Kumar wrote: > > I am a new bee in puppet world. > > > > I wrote one class to copy a file from puppet master to puppet agent. i > puppet client says following error. > > Error: /Stage[main]/Motd/File[motd]: Could not evaluate: Could not > retrieve file metadata for puppet://modules/files/etc/motd: getaddrinfo: > Temporary failure in name resolution > > Puppet class is > > root@puppet classes]# cat motd.pp > class motd{ > file {'motd': > path =>"/etc/motd", > ensure => "file", > owner => "root", > group => "root", > mode => "644", > #content => "Hello this is jegadeesh test", > source => "puppet://modules/files/etc/motd" > } > } > > > keep the desired files under /etc/puppet/modules/files/etc > > Please help me to short out the issue. > > Thanks, > Jegadeesh > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0396d154-c7ad-4399-8903-3572639f0a46%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.