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.

On Wed, Jun 11, 2014 at 8:51 AM, Rakesh Kathpal <[email protected]> wrote:
> 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 ?
>
> --
> 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 [email protected].
> 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.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAE4bNTnh5R911on%3D24n8ey_7JbqmVAiDmuSZu-OWuspwFpVmnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to