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