i've tested the localconfig.yaml parser and it works well, but it only shows
which files puppet handles from a client point of view. i.e it shows that
puppet manages "/etc/my.cnf" for my client but i really want to see which
file it manages from a server point of view, i.e.
"/path/to/fileshare/etc/my.cnf--DBGROUP1".

as far as i can see, storeconfigs gives me about the same information as mr.
Pienaars localconfig-parserscript. That is, i can see that puppet manages
"/etc/my.cnf" for this client but i cant see from which source this file is
taken. If I'm wrong, I would be very grateful for an example query.

//Adam

On 10 August 2010 22:59, R.I.Pienaar <r...@devco.net> wrote:

>
> ----- "Luke Kanies" <l...@puppetlabs.com> wrote:
>
> > That really does seem like something storeconfigs can give you, at
> > least if you write the query.
> >
> >
> > It's basically finding all files owned by the host in question.
> > Something like (in ActiveRecord):
> >
> >
> > Puppet::Rails::Node.resources.find_all { |resource| resource.type ==
> > "file" }.collect { |resource| resource.title }
> >
> >
> > That should return an array of file names. Haven't tested it mind you,
> > but something like that should work.
> >
> >
> > Another option involves client-side opening the catalog and reading
> > the files. I've written a script that does this for a bank that
> > delivers its output to their auditors. Ended up being very simple.
>
>
> I have a script like this at
> http://www.devco.net/archives/2010/02/26/what_does_puppet_manage_on_a_node-2.php
>
> Not tested on 2.6 yet though.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

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

Reply via email to