Groups
Groups
Sign in
Groups
Groups
Puppet Users
Conversations
About
Send feedback
Help
puppetdb command api !!!
42 views
Skip to first unread message
Rakesh Kathpal
unread,
Jun 11, 2014, 3:51:16 AM
6/11/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
I am trying to execute the command api for puppetdb with the command "replace facts"
curl -G -H "Accept: application/json" '
http://localhost:8080/v2/commands
' --data-urlencode 'payload={"command":"replace facts","version": 2,"payload:{"name":"\"node_name\""}}'
As output of the above command just a uuid is printed, but I seem to get some errors in the logs for illegal argument...
So will this replace all facts with their latest values ??
Or is there another way to do that ?
Ken Barber
unread,
Jun 11, 2014, 9:24:59 AM
6/11/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Puppet Users
I posted this in the other thread, but this is a working example of
how to submit facts in Ruby:
https://gist.github.com/kbarber/6190c64335613111c9df
. I'd start there,
and post any problems/errors you have.
> --
> 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/CAEJrXMVLafySLa9-uy-dFOd%2B2ojXzgwr%3DykK1Fe5GzGWqrvjfg%40mail.gmail.com
.
> For more options, visit
https://groups.google.com/d/optout
.
Reply all
Reply to author
Forward
0 new messages