Hi guys, I am new to Puppet and have a very strange error that I cannot seem to solve. I am using Puppet Master 3.4.1 with Apache/Passenger config in CentOS and my Puppet Agent in Windows.
When I try to create a file that doesn't exist using Puppet, it works fine. In this case, I am simply creating C:\test.txt file. C:\>puppet agent -t Info: Retrieving plugin Info: Caching catalog for sstm-mntr01.colo.svg.local Info: Applying configuration version '1389894672' Notice: /Stage[main]/Createfile/File[testfile]/ensure: defined content as '{md5} 803d1a275b8c8c4cc084d54c78c2ed61' Notice: Finished catalog run in 2.39 seconds All is well. Now, if I edit the file and save it, and rerun the above command, I get this: C:\>puppet agent -t Info: Retrieving plugin Info: Caching catalog for sstm-mntr01.colo.svg.local Info: Applying configuration version '1389894672' Notice: /Stage[main]/Createfile/File[testfile]/content: Error: Could not back up C:/test.txt: getaddrinfo: No such host is known. Error: Could not back up C:/test.txt: getaddrinfo: No such host is known. Error: /Stage[main]/Createfile/File[testfile]/content: change from {md5}fb4bb40e a8ac9631aa3ad463e41e239e to {md5}803d1a275b8c8c4cc084d54c78c2ed61 failed: Could not back up C:/test.txt: getaddrinfo: No such host is known. Notice: Finished catalog run in 1.77 seconds The module is very simple: # pwd /etc/puppet/modules/createfile/manifests # cat init.pp class createfile ($file_arg = undef, $content_arg = undef) { case $operatingsystem { windows: { $default_filename = [ "C:\\test.txt" ] $default_content = $fqdn } } if $file_arg == undef { $file_real = $default_filename } else { $file_real = $file_arg } if $content_arg == undef { $content_real = $default_content } else { $content_real = $content_arg } file { 'testfile': path => $file_real, ensure => file, content => $content_real } } Any ideas what this could be? I can resolve all hosts, master and agent from all servers. I don't even know what it's doing trying to do a getaddrinfo?! Thanks Alex -- 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/c75d8f46-f648-414e-baba-3ac58cb920c9%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.