Hello,

a good start is reading this [1], looking at [2][3][4][5] and asking questions 
on #theforeman-dev irc channel on freenode.

[1] http://projects.theforeman.org/projects/foreman/wiki/
How_to_Create_a_Plugin
[2] https://github.com/theforeman/foreman_chef/blob/master/app/models/
foreman_chef/fact_importer.rb
[3] https://github.com/theforeman/foreman_chef/blob/master/app/models/
foreman_chef/fact_name.rb
[4] https://github.com/theforeman/foreman_chef/blob/master/app/models/
foreman_chef/fact_parser.rb
[5] https://github.com/theforeman/foreman_chef/blob/master/lib/foreman_chef/
engine.rb#L81-L83

Hope this helps

--
Marek

On čtvrtek 29. června 2017 10:44:28 CEST Fairouz el ouazi wrote:
> Hi, thank for  your answer , my  platform  can communicate over REST API .
> you said that it would be quite easy to develop a plugin for my cfgmgmt .
> Can you give me a point from where to start . or documentation .
> 
> Le mercredi 28 juin 2017 13:58:10 UTC+2, Marek Hulán a écrit :
> > On středa 28. června 2017 11:34:00 CEST Fairouz el ouazi wrote:
> > > Hi everyone ,
> > > 
> > >      I'm a beginner in using foreman ,So before in take the adventure i
> > > 
> > > want to know if the fact that it exists a plugin for managing chef is
> > 
> > there
> > 
> > > any chance to develop a new one that will manage my own platform  X
> > > (PLatform that manage IOT  devices ) . So  at place of having chef
> > 
> > client i
> > 
> > > will have foreman dealing with the devices of my X platform . ???
> > > 
> > >     I really need your help or some ideas or if anyone has face the same
> > > 
> > > uses cases ?
> > 
> > I'm not sure if I understand the question but maybe a generic answer will
> > help. You can create a plugin that introduces any kind of new object in
> > Foreman. The simple plugins such as chef/salt/ansible adds new cfgmgmt
> > support
> > and can be used as an example how to parse reports and facts of any new
> > similar tool. If your IOT device can send some kind of report, it should
> > be
> > quite easy to add a plugin for that.
> > 
> > If you want to go futher and let's say create IOT devices as different
> > objects
> > than hosts, it's also entirely possible but obviously more complicated.
> > 
> > Hope this helps


-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to