its also pretty easy to programatically access the information, which could
make parsing it easier:

>require 'puppet'
>Puppet::Type.type(:package).instances

On Wed, Sep 21, 2011 at 10:53 AM, Glenn Bailey
<[email protected]>wrote:

> >> Before I go about writing one myself, anyone out there written a
> >> software inventory module/fact for gathering a list of all installed
> >> rpms/debs on a system? Got a few ideas floating around in my head, but
> >> wanted to see if/what other folks have done ..
> >
> > you can already do this with:
> >
> > puppet resource package
> >
> > this will generate a manifests that represents all of the packages
> installed
> > on a system.
>
> Let me re-phrase a bit, I'm trying to get a fact setup to collect this
> information and I can report of my Puppet DB. Was just thinking of
> doing an auto-increment so it would be something like "package0 =>
> package_name-version" "package1 => package_name-version" etc. Parsing
> "puppet resource package" will make it easier for writing a single
> module for rpm/deb ..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>


-- 
"Join us for PuppetConf <http://bit.ly/puppetconfsig>, September 22nd and
23rd in Portland, OR."
 <http://bit.ly/puppetconfsig>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to