Jira (PDB-1027) PuppetDB should ship with a simpler query system that directly integrates with Puppet's SSL

3 views
Skip to first unread message

Luke Kanies (JIRA)

unread,
Nov 13, 2014, 2:22:25 PM11/13/14
to puppe...@googlegroups.com
Luke Kanies created an issue
 
PuppetDB / New Feature PDB-1027
PuppetDB should ship with a simpler query system that directly integrates with Puppet's SSL
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2014/11/13 11:22 AM
Priority: Normal Normal
Reporter: Luke Kanies

This is what I wrote to make PuppetDB querying easier:

#!/bin/bash

ca_crt=$(puppet config print cacert)
cert=$(puppet config print hostcert)
key=$(puppet config print hostprivkey)

file=$1

curl -sk -X GET --cacert $ca_crt --cert $cert --key $key -H 'Accept: application/json' --data-urlencode "query@"$

{file}

https://localhost:8081/v3/resources

Much simpler than trying to handle it all manually. It could easily be extended to support different commands (e.g., pull a host's entire catalog or facts) and flags (e.g., certname).

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e)
Atlassian logo

Kenneth Barber (JIRA)

unread,
Dec 5, 2014, 8:55:27 AM12/5/14
to puppe...@googlegroups.com

Russell Mull (JIRA)

unread,
May 17, 2017, 1:58:05 PM5/17/17
to puppe...@googlegroups.com
Russell Mull updated an issue
Change By: Russell Mull
Labels: triaged
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Moses Mendoza (JIRA)

unread,
May 18, 2017, 2:06:09 PM5/18/17
to puppe...@googlegroups.com

Claudia Petty (Jira)

unread,
Jun 21, 2023, 10:57:05 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages