Error: Could not find dependency Yumrepo[puppetlabs-products] for Package[puppet]

245 views
Skip to first unread message

Jagan Kommineni

unread,
May 24, 2013, 9:19:46 PM5/24/13
to puppet...@googlegroups.com
I have installed puppet from puppet-labs yum repository on OEL familiy of Red Hat Enterprise Linux Server release 5.9 (Tikanga)
----------------------------------------------------------------------------
[root@oel-puppet-master modules]# yum list facter
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
Installed Packages
facter.x86_64                 1:1.7.1-1.el5                  installed          
Available Packages
facter.noarch                 1.6.6-1.el5                    puppetlabs-products
[root@oel-puppet-master modules]# yum list puppet
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
Installed Packages
puppet.noarch                  3.1.1-1.el5                   installed          
Available Packages
puppet.noarch                  3.2.1-1.el5                   puppetlabs-products
[root@oel-puppet-master modules]# 
-------------------------------------------------------------------------------------------
        package { "puppet":
                ensure  => latest,
                require => [ Yumrepo["puppetlabs-products"], Package["facter"] ],
                notify  => Service["puppet"],
        }

        package { "facter":
                ensure  => latest,
                require => Yumrepo["puppetlabs-products"],
                notify  => Service["puppet"],
        }
----------------------------------------------------------------------------------------------------------------
Here is the repofile
---------------------------------
[root@oel-puppet-master modules]# cat /etc/yum.repos.d/puppetlabs.repo 
[puppetlabs-products]
name=Puppet Labs Products El 5 - $basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppetlabs
enabled=1
gpgcheck=1
-------------------------------------------------------
 yum repolist | grep puppetlabs-products
This system is not registered with ULN.
You can use up2date --register to register.
ULN support will be disabled.
puppetlabs-products Puppet Labs Products El 5 - x86_64                       262
[root@oel-puppet-master modules]# 
-----------------------------------------------------------------------------------------------------
Could you mind to advise where I am going wrong ...
-------------------------------------------------------------------------------------------------


Matthias Saou

unread,
May 27, 2013, 5:35:48 AM5/27/13
to puppet...@googlegroups.com
On Fri, 24 May 2013 18:19:46 -0700 (PDT)
Jagan Kommineni <jagan.k...@gmail.com> wrote:

> I have installed puppet from puppet-labs yum repository on OEL
> familiy of Red Hat Enterprise Linux Server release 5.9 (Tikanga)
[...]

You checked your system's yum repository configuration, which seems to
be in order, but given your email's subject, the problem must be in
your puppet configuration, where your package resource want the
"puppetlabs-products" yumrepo resource to be present.

If you already have that repository configured on your nodes, you can
just remove the "require => Yumrepo["puppetlabs-products"]" lines.
Otherwise, you will need to add that resource to be declared.

Matthias

--
Matthias Saou ██ ██
██ ██
Web: http://matthias.saou.eu/ ██████████████
Mail/XMPP: matt...@saou.eu ████ ██████ ████
██████████████████████
GPG: 4096R/E755CC63 ██ ██████████████ ██
8D91 7E2E F048 9C9C 46AF ██ ██ ██ ██
21A9 7A51 7B82 E755 CC63 ████ ████
Reply all
Reply to author
Forward
0 new messages