[Puppet Users] Re: ody/pkginventory problem / How do _you_ get a listing of all packages installed on a system?

2014-01-30 Thread Stack Kororā
Greetings,
Thanks for the response.

The pkginventory is already doing this inside of util/pkg.rb:

rpm -qa --qf %{NAME}\t%{VERSION}-%{RELEASE}

I am fully aware of how multiple kernels work. As stated, the kernel was 
just an example. I need/want every package installed returned to me and the 
version of the pkginventory code currently listed in the forge is 
nondeterministic on what package version is returned when multiple versions 
exist. This is the problem for me.

We have been running our mods in production for a few days now and things 
are running well.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/91bc1223-9c0a-40ce-886f-cc42685f7cda%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: ody/pkginventory problem / How do _you_ get a listing of all packages installed on a system?

2014-01-29 Thread Andrew
# every package, name only.
rpm -qa --queryformat=%{NAME}\n

# or more info ...
rpm -qa --queryformat=%{NAME} - %{VERSION} - %{ARCH}\n

Hi Stack,

have you tried 


package { kernel.$architecture:
  ensure = '2.6.32-358.el6',
}


to make sure it doesnt find the i686 version as well ?


Also note that a reboot is required for a newly installed kernel version to 
become the running version,

Also note that yum will keep upto 2 older versions of the kernel installed as 
recovery boot options in the grub kernel, so there is always more than one 
kernel-version present on the system.




-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f787e59d-ce8e-49f0-8dd6-fc95825b75d9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.