Re: [Puppet Users] inventory of managed resources

2010-08-27 Thread Adam Winberg
i discovered by accident that i can sort of get the functionality i want by using puppets apache logs (i run puppet via apache+passenger). In the access log each attempt to fetch a file from puppets fileserver is logged, if the file is absent it logs a 404 and if it is a match a 200 return code:

Re: [Puppet Users] inventory of managed resources

2010-08-11 Thread Adam Winberg
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.

Re: [Puppet Users] inventory of managed resources

2010-08-10 Thread Adam Winberg
i've tested the storeconfigs option but i'm not fully getting what i want (do we ever..?). i've got quite a lot of files i sync with my clients via puppets fileserving capabilities. these files are tagged with different suffixes as labels, like: resolv.conf--serverA resolv.conf--CLUSTER1

Re: [Puppet Users] inventory of managed resources

2010-08-10 Thread Luke Kanies
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 {

Re: [Puppet Users] inventory of managed resources

2010-08-10 Thread R.I.Pienaar
- 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 {

Re: [Puppet Users] inventory of managed resources

2010-07-10 Thread Adam Winberg
ah, good point! i will look into it, thank you. //Adam On 9 July 2010 09:23, David Schmitt da...@dasz.at wrote: On 7/7/2010 4:33 PM, Adam Winberg wrote: Hi, are there any good ways of scripting an inventory of managed resources on all nodes? I've found the inventory script by R.I.Pienaar

[Puppet Users] inventory of managed resources

2010-07-07 Thread Adam Winberg
Hi, are there any good ways of scripting an inventory of managed resources on all nodes? I've found the inventory script by R.I.Pienaar ( http://www.devco.net/archives/2010/02/26/what_does_puppet_manage_on_a_node-2.php) which does what I want but only locally on each client. Is there any native