Ask Your Question
0

error message when trying to run puppet and apply changes to the system

asked 2015-05-13 16:25:31 -0500

Chris Zou gravatar image

updated 2015-05-14 22:44:18 -0500

GregLarkin gravatar image

Hi,

I am new to puppet and I am trying to follow Quest Guide and its VM Learning Machine.

When I run puppet apply cowsayings/tests/cowsay.pp, I encounter error message as following:

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>')
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"
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"

What does it mean by "Error: Cannot find a valid baseurl for repo: epel"?

Why "network is unreachable"?

How can I fix it?

I really appreciate your help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-14 22:45:14 -0500

GregLarkin gravatar image

It appears that the VM is unable to make outbound connections to the Internet. Do you have the VM networking configured correctly?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-05-13 16:25:31 -0500

Seen: 769 times

Last updated: May 14 '15