On Wednesday, May 13, 2015 at 4:16:16 PM UTC-5, Chris Zou wrote: > > I am new to Puppet, and I am trying to follow Quest Learning Machine from > Puppet Lab. > > However, every time I tried to run > puppet apply cowsayings/tests/cowsay.pp > > Error message comes up like this: > > Warning: The package type's allow_virtual parameter will be changing its > default value from false to true in a future release. If you do not want to > allow virtual packages, please explicitly set allow_virtual to false. > (at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/package.rb:430:in > `block (3 levels) in <module:Puppet>') >
That's a warning, not an error, and it is moreover not directly related to your issue. > Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list cowsay' returned 1: > Error: Cannot find a valid baseurl for repo: epel > Could not retrieve mirrorlist > http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386 error > was > 14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:2:1269::fed2: Network > is unreachable" > That's an error originally encountered by yum, as launched by Puppet to check the latest available version of package 'cowsay'. "Network is unreachable" seems to speak for itself. It is not a Puppet issue, though possibly is signals broken network configuration. > Error: /Stage[main]/Cowsayings::Cowsay/Package[cowsay]/ensure: change from > absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list > cowsay' returned 1: Error: Cannot find a valid baseurl for repo: epel > Could not retrieve mirrorlist > http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386 > error was > 14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:2:1269::fed2: Network > is unreachable" > This one is just a followon from the previous one. > > What does "Cannot find a valid baseurl for repo: epel" mean? How can I fix > these errors? > > The error message is emitted by yum; Puppet is only the messenger. Nevertheless, the root problem is described in the next lines: "error was [...] Network is unreachable". It appears that your machine has a physical network connection because it was able to resolve the machine name in the mirrorlist URL to an address. If it cannot then find a route to that address, as the error message seems to indicate, then that probably means your network configuration requires you to send traffic through a proxy server. In that case, you should configure yum appropriately to use your network's proxy server via the "proxy" property and maybe the "proxy_user" and "proxy_password" properties in /etc/yum.conf. John -- 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/16fe9b7f-1267-4728-a171-b3855e1bbf46%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.