Hi!

I can run 'puppet resource package' on a node to get a list of installed 
packages and version numbers. 

are those version numbers available through a PuppetDB(2.3) API query? 

the  http://localhost:8080/v3/catalogs/${NODE} 
call shows the desired end-state

    "type" : "Package", 
    "title" : "libc6",
    "parameters" : {
       "ensure" : "latest"
    },

and 
 curl -G 'http://localhost:8080/v3/events' --data-urlencode 'query=["and", 
["=", "resource-type","Package"], ["=","resource-title","libc6"]]'  

will show what's changed or failed with libc6 . 

can I get the current package version number through an API call? 

Thanks!  
   -jer johnson

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a47876f4-8f8d-4909-a7f0-d1491a19d35c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to