So, I can sort of reproduce. I created a file at the URL
puppet:///modules/demo/var/www/index.html
Initially, I tried what you suggested and just mistyped my URL as
puppet:///modules/demo/ar/www/index.html
The error is humane enough:
Error: /Stage[main]/Main/File[/tmp/index.html]: Could not evaluate:
Could not retrieve information from environment production source(s)
puppet:///modules/demo/ar/www/index.html
So, from your earlier post I suspected that you hadn't just made *any*
typo, but had in fact skipped one of the slashes in puppet:///.
puppet://modules/demo/ar/www/index.html
Error: /Stage[main]/Main/File[/tmp/index.html]: Could not evaluate:
Could not retrieve file metadata for
puppet://modules/demo/ar/www/index.html: getaddrinfo: Name or service
not known
Lo and behold, and it even makes sense - after all, the domain in the
URL is now "modules", which doesn't resolve. Unfortunately for you, it
does resolve on *your* machine. To complete my test, I added a hosts
file entry for "modules" with a random working IP from my LAN and sure
enough:
Error: /Stage[main]/Main/File[/tmp/index.html]: Could not evaluate:
Could not retrieve file metadata for
puppet://modules/demo/ar/www/index.html: Connection refused - connect(2)
Btw, setting modules to be an alias for my master host:
Error: /Stage[main]/Main/File[/tmp/index.html]: Could not evaluate:
Could not retrieve file metadata for
puppet://modules/demo/ar/www/index.html: Server hostname 'modules' did
not match server certificate; expected one of geras.localdomain,
DNS:geras.localdomain, DNS:puppet, DNS:puppet.localdomain
So this would have likely been more helpful to you, but alas.
So, there is really no way for Puppet to tell that a) the URL is typoed
(it's valid and the domain name even resolves) and so b) assuming that
"modules" is your chosen fileserver, it has no choice but to notify you
of the fact that the Puppet port is not open.
Hope that's satisfactory, regards,
Felix
On 04/24/2014 05:40 PM, Chris Johnson wrote:
> Very easily reproducible. I was reproducing it for four days. The
> module I was trying to write initialized the /var/www/html Web content
> directory with a index.html. Try mistyping something in the source path
> that should normally go to the module's file directory (bloody
> trifocals). BTW this is puppet and server 3.5.1 with current
> dependencies on CentOS-6.5.
> {/Stage{main}/web_server/File{/var/www/html/index.html]) Could not
> evaluate: Could not retrieve file metadata for
> puppet://modules/web_services/client1/html/index.html: Connection
> refused - connect(2)
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/536806FA.1040105%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.