I wrote https://github.com/ripienaar/puppet-parselocalconfig some time
ago that can do this on the node - I am not sure if it still works with
latest puppet version but worth a try
The only other solution if to do some kind of 'grep -r "my_object"
/etc/puppet/* ' which is very unfriendly for admins...
Aur�lien
In Puppet 2.7 you can issue the command:
puppet catalog select $hostname $type
So say if you had a system called prod_db and you are interested in
all the file resources puppet manage:
puppet catalog select prod_db file
To list all the services managed by puppet on that system:
puppet catalog select prod_db service
This currently only shows the resource title so it can be improved.
This is one of the improvements with Puppet 2.7 faces where the
catalog information is better exposed to the end user.
Thanks,
Nan
Also as of 2.7.6, we automatically dump this info in a text file on the agents.
cat $(puppet agent --configprint resourcefile)
file[/etc/puppetlabs/mcollective/ssl/mcollective-private.pem]
file[/opt/puppet/libexec/mcollective/mcollective/agent/package.rb]
file[/etc/puppetlabs/activemq/broker.p12]
file[/etc/puppetlabs/activemq/broker.ts]
file[/etc/puppetlabs/mcollective/ssl/mcollective-cert.pem]
file[/opt/puppet/share/puppet-dashboard/.ssh/authorized_keys]
file[/var/lib/peadmin/.mcollective.d/peadmin-private.pem]
file[/opt/puppet/libexec/mcollective/mcollective/registration/meta.rb]
file[/opt/puppet/libexec/mcollective/mcollective/util]
file[/etc/puppetlabs/mcollective/ssl/clients/mcollective-public.pem]
group[peadmin]
user[peadmin]
...
https://github.com/deanwilson/puppet-scripts/blob/master/puppet-ls
vince
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>
Something I recommend to some people:
http://www.tenshu.net/2010/08/adventures-in-puppet-tangled-strings.html
Which does more or less that ... but shows a banner in VIM for users
to warn them the file is puppet managed before they modify it.
ken.
A mild word of warning: tangledstrings is distributed as a Vimball,
which works well in (most? all?) Linux flavours of Vim, but you may run
into support problems in other OS's (such as OpenBSD, *grumble grumble*).
That said, tangledstrings does exactly what it's supposed to do: act as
a very handy warning layer.
--
Daniel Maher
With listening comes wisdom, with speaking repentance.