Browse PuppetDB resources

24 views
Skip to first unread message

Jonathan Gazeley

unread,
Jul 26, 2017, 6:57:37 AM7/26/17
to Puppet Users
Hi folks,

I'm trying to troubleshoot an issue about tagging and realising exported
resources. Is there a way I can browse/view exported resources in
PuppetDB to make sure the expected tags have been applied?

Thanks,
Jonathan

Russell Mull

unread,
Jul 26, 2017, 12:08:22 PM7/26/17
to Puppet Users
Hi Jonathan, 

You can use the PuppetDB CLI to do queries directly. https://docs.puppet.com/puppetdb/5.0/pdb_client_tools.html

- Russ

Antony Fomenko

unread,
Jul 27, 2017, 3:44:00 AM7/27/17
to Puppet Users
If you use PostgreSQL as PuppetDB backend you can as following:
su - postgres
psql
\c puppetdb

select * from catalog_resources where exported='true';

Jonathan Gazeley

unread,
Jul 27, 2017, 5:53:33 AM7/27/17
to puppet...@googlegroups.com
Thank you, this was perfect!

Cheers,
Jonathan
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f58d0f3c-14ed-4214-878e-e967248736cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Rob Nelson

unread,
Jul 27, 2017, 7:47:39 AM7/27/17
to puppet...@googlegroups.com
There's also the module zack/exports that adds a puppet face to browse exported resources without interacting with postgresql directly. https://forge.puppet.com/zack/exports
On Thu, Jul 27, 2017 at 5:53 AM, Jonathan Gazeley <jonathan...@bristol.ac.uk> wrote:
Thank you, this was perfect!

Cheers,
Jonathan

On 26/07/17 17:08, Russell Mull wrote:
Hi Jonathan, 

You can use the PuppetDB CLI to do queries directly. https://docs.puppet.com/puppetdb/5.0/pdb_client_tools.html

- Russ

On Wednesday, July 26, 2017 at 3:57:37 AM UTC-7, Jonathan Gazeley wrote:
Hi folks,

I'm trying to troubleshoot an issue about tagging and realising exported
resources. Is there a way I can browse/view exported resources in
PuppetDB to make sure the expected tags have been applied?

Thanks,
Jonathan

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3ed820eb-ccb4-554d-d805-92fcb81f7b09%40bristol.ac.uk.
Reply all
Reply to author
Forward
0 new messages