Ask Your Question

Corporate yum repo - package install fails

asked 2015-02-25 06:54:16 -0600

kariboe gravatar image

Context: we have setup a small corporate yum repository with a handfull of specific rpm version we like to manage ourselves. We added the repo to Puppet with the yumrepo resource.

Problem: package resource fails when adding packagesettings --enablerepo='corporateyumrepo' --disablerepo="*" Running a puppet agent to install the package:

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y --disablerepo="*" --enablerepo="corporate_yumrepo" list mercurial' returned 1: Error getting repository data for "corporate_yumrepo", repository not found

Tested: - executing the yum install commandline works perfect - wget of the repomd.xml file works perfect commandline

Puppet code:

  package { 'mercurial_package':
    ensure           => 'present',
    name             => 'mercurial',
    provider         => 'yum',
    install_options  => ['--disablerepo="*"','--enablerepo="corporate_yumrepo"'],

Any help appreciated. What I'm a doing wrong?

edit retag flag offensive close merge delete


perhaps launching the puppet client with --debug option could give additional information. Also you can try to launch the exact same commad with the user running the puppet client to see the result. Sorry this is not an answer, just adivces you might have already followed.

doc75 gravatar imagedoc75 ( 2015-02-27 11:52:11 -0600 )edit

Problem solved. It was a problem with the double quotes around the * and corporate_yumrepo. Although you didn't fix my issue, thanks for giving some new energy to look at the problem. :-)

kariboe gravatar imagekariboe ( 2015-03-02 07:51:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-02 07:52:07 -0600

kariboe gravatar image

Problem solved: double quotes around the name of the repo and the wildcard removed;

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

1 follower


Asked: 2015-02-25 06:54:16 -0600

Seen: 1,019 times

Last updated: Mar 02 '15