Issue #22359 has been reported by Trevor Vaughan. ---------------------------------------- Feature #22359: Would like a command line utility to determine if Puppet manages a file on the system and what code portion manages it. https://projects.puppetlabs.com/issues/22359
* Author: Trevor Vaughan * Status: Unreviewed * Priority: Low * Assignee: * Category: newfeature * Target version: * Affected Puppet version: * Keywords: user experience, debugging * Branch: ---------------------------------------- I was using the yum 'whatrequires' command and realized that it would be great if Puppet had a similar command for files on the system. Something like: puppet whatmanages <resource_type> <target> Example: puppet whatmanages file /etc/hosts Expected Return Value (human readable): File: /etc/puppet/manifests/site.pp Line: 106 File: /etc/puppet/modules/foo/manifests/init.pp Line: 5 Should also have the ability to return JSON. This would be a 'best effort' utility since delving through Execs would be almost impossible. It may also require an additional metaparameter to allow types to indicate their system modifiable targets in a consistent manner. -- 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://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
