Odd behavior on require => Package

4 views
Skip to first unread message

Jeff

unread,
Jun 27, 2008, 10:07:57 AM6/27/08
to Puppet Users
I have this block of code:

package { "tallyman":
name => "tallyman",
ensure => latest,
require => Package["perl-libwww-perl"],
}

Which results in this error:

err: Could not apply complete configuration: Could not retrieve
dependency 'Package[perl-libwww-perl]' at /var/puppet/modules/tallyman/
manifests/init.pp:7

Yet "yum install perl-libwww-perl" works just fine on the command line
of that server.

Any thoughts?


Ben Hughes

unread,
Jun 27, 2008, 10:12:47 AM6/27/08
to puppet...@googlegroups.com

Do you have a package{ ... } for perl-libwww-perl?

You'd need a:

package { "perl-libwww-perl":
name => "perl-libwww-perl",
ensure => latest,
}

For that dependency.

--
Ben Hughes - MindCandy

Evan Hisey

unread,
Jun 27, 2008, 10:12:57 AM6/27/08
to puppet...@googlegroups.com
The require type only knows about other resource in side of puppet. Do
you have a package{"perl-libwww-perl": ensure => present} resoure in
the manifest? based on that err either the above can't find it or you
do not have one. If you are using Yum it is best to let the yum handle
the dependence tracking of rpms in most cases.

Evan

Jeff

unread,
Jun 27, 2008, 10:19:29 AM6/27/08
to Puppet Users
/me smacks hand against head...

Thanks.
Reply all
Reply to author
Forward
0 new messages