Issue #2186 has been updated by luke. Status changed from Needs design decision to Accepted Assigned to changed from luke to community
While I think this is a good idea, I think it's a good bit more work than is obvious. The simple cases are relatively simple - load the catalog and look for a file of that name. But the hard cases aren't that simple, because they require recursion. I'd accept this patch, but I think it's a good bit of work. And really, it's probably either a different executable focused on introspecting the catalog, or an addition to puppetd. ---------------------------------------- Feature #2186: Some introspection capabilities about Files http://projects.reductivelabs.com/issues/2186 Author: phantez Status: Accepted Priority: Normal Assigned to: community Category: file Target version: unplanned Complexity: Unknown Affected version: 0.25.0 Keywords: Allow the user to ask some introspection query about files, the following examples use arbitrary options : * What is the reference file for a specific file ? <pre> # puppet /etc/puppet/manifest/site.pp --which-source-file /etc/sysconfig/security.conf Src file /etc/puppet/services/files/security.conf </pre> * What is the difference between the actual file and the reference file ? <pre> # puppet /etc/puppet/manifest/site.pp --diff-with-reference-file /etc/sysconfig/security.conf 1c1,2 < file1 --- > file2 </pre> * Which manifest define a specific file ? <pre> # puppet /etc/puppet/manifest/site.pp --which-manifest-file /etc/sysconfig/security.conf Content is defined in class security in '/etc/puppet/services/manifests/conf.pp' </pre> I don't know which command should handle this request and how to manage the fact that the answers depend on the node and the facts, but I think that this features can be very useful to maintain manifests when there is several administrators. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" 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-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
