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? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff wrote:> 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?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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On Fri, Jun 27, 2008 at 9:07 AM, Jeff <joesiege@gmail.com> wrote:> > 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? >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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Ben Hughes wrote:> Jeff wrote: > > 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? > > 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. >/me smacks hand against head... Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---