I''m running Puppet 0.23.2 on RHEL 3 and for some reason I
can''t get a
package installed.
Here is my class...
===================class cronolog {
package { "cronolog":
ensure => present,
name => cronolog,
source => "/web/conf/puppet/src/rpms/cronolog-1.6.1-1.i386.rpm"
}
}
===================
And here''s what puppet debug says...
===================...
debug: package provider up2date: Executing ''/bin/rpm -q cronolog --
nosignature --nodigest --qf %{NAME}-%{VERSION}-%{RELEASE} %{VERSION}-%
{RELEASE}
''
debug: //core/cronolog/Package[cronolog]: Changing ensure
debug: //core/cronolog/Package[cronolog]: 1 change(s)
debug: //core/cronolog/Package[cronolog]/ensure: setting present
(currently absent)
debug: package provider up2date: Executing ''/usr/sbin/up2date-nox -u
cronolog''
debug: package provider up2date: Executing ''/bin/rpm -q cronolog --
nosignature --nodigest --qf %{NAME}-%{VERSION}-%{RELEASE} %{VERSION}-%
{RELEASE}
''
err: //core/cronolog/Package[cronolog]/ensure: change from absent to
present failed: Could not find package cronolog
...
===================
It appears it''s not paying attention to my source path. However, I
install other packages like this and it works fine. The only
difference with this package is that it''s custom. I install other
packages using the same source path. What am I missing here?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Digant C Kasundra
2008-May-28 19:30 UTC
[Puppet Users] Re: RPM not found error (why just this one?)
--On Wednesday, May 28, 2008 12:00 PM -0700 Joe Morris <snowboardjoe@gmail.com> wrote:> class cronolog { > package { "cronolog": > ensure => present, > name => cronolog, > source => "/web/conf/puppet/src/rpms/cronolog-1.6.1-1.i386.rpm" > } > }Try adding provider => rpm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Joe Morris
2008-May-29 16:54 UTC
[Puppet Users] Re: RPM not found error (why just this one?)
Yep, that did it. I assumed RPM would be..., well..., assumed. Not sure why this one was different. Could be some differences between RH3 and RH4. Thanks! On May 28, 3:30 pm, Digant C Kasundra <dig...@stanford.edu> wrote:> --On Wednesday, May 28, 2008 12:00 PM -0700 Joe Morris > > <snowboard...@gmail.com> wrote: > > class cronolog { > > package { "cronolog": > > ensure => present, > > name => cronolog, > > source => "/web/conf/puppet/src/rpms/cronolog-1.6.1-1.i386.rpm" > > } > > } > > Try adding provider => rpm--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Lutterkort
2008-May-30 00:28 UTC
[Puppet Users] Re: RPM not found error (why just this one?)
On Thu, 2008-05-29 at 09:54 -0700, Joe Morris wrote:> Yep, that did it. I assumed RPM would be..., well..., assumed. Not > sure why this one was different. Could be some differences between > RH3 and RH4.If they are RHEL (not CentOS), the package provider should default to up2date. On CentOS, Fedora and RHEL5+, it''s yum. I don''t think there are any platforms where puppet uses rpm as the default provider. David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---