Appending to facts through REST api

28 views
Skip to first unread message

Cor Bosman

unread,
Jun 4, 2012, 5:37:57 AM6/4/12
to Puppet Users
Hi all, im playing with the REST api to add some custom facts to
nodes. Am I right in concluding that you can't add to the facts of a
node, only replace all facts, using the REST api? I want to just add
a single custom fact to a set of nodes, preferably through the api.

Regards,

Cor

Jeff McCune

unread,
Jun 4, 2012, 11:36:26 AM6/4/12
to puppet...@googlegroups.com
You are correct. The REST API for facts does not have the ability to
merge a new fact and value into the existing set.

You could retrieve the current set, update it and replace it.

Coukd you let me know what you're trying to accomplish? Maybe there
is another approach.

-Jeff
> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
Reply all
Reply to author
Forward
0 new messages