Ruby program example to post to The Foreman

44 views
Skip to first unread message

wernerbahlke

unread,
Aug 15, 2012, 9:11:13 AM8/15/12
to puppet...@googlegroups.com
Hi,

I want to use The Foreman to pass variables between nodes. Does somebody have an example of a Ruby parser which does POSTs to The Foreman and can be used in my manifests?. With the exception of a Perl example I have only seen examples for GET operations, for example foreman.rb. I will start with foreman.rb and modify it but any hints would be very helpful.

Thanks,

Werner

Ohad Levy

unread,
Aug 15, 2012, 1:51:14 PM8/15/12
to puppet...@googlegroups.com, forema...@googlegroups.com, foreman-dev
On Wed, Aug 15, 2012 at 4:11 PM, wernerbahlke <werner...@gmail.com> wrote:
Hi,

I want to use The Foreman to pass variables between nodes. Does somebody have an example of a Ruby parser which does POSTs to The Foreman and can be used in my manifests?. With the exception of a Perl example I have only seen examples for GET operations, for example foreman.rb. I will start with foreman.rb and modify it but any hints would be very helpful.

We are writing full ruby binding for foreman 1.1, have a look at  https://github.com/theforeman/foreman_api

the binding are auto generated from the API documentation, so I'm guessing the binding in question are a bit out of date (you could generate them your self assuming you have a recent git version.

saying all of that, we did not do the host object just yet.

Ohad

Thanks,

Werner

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/c6MFTXmAZEEJ.
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