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
···
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 ?
–
Marek
> 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 .
Here are some docs on how to write your own plugin:
https://theforeman.org/plugins/#3.WritingYourOwn
For the use case you're asking about, I would recommend looking into the
commit history of similar projects, namely:
···
On 06/29, Fairouz el ouazi wrote:
Le mercredi 28 juin 2017 11:50:40 UTC+2, Fairouz el ouazi a écrit :
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 ?
–
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 foreman-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
–
Daniel Lobato Garcia
@dLobatog
GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: elobato (Daniel Lobato Garcia) | Keybase
Hi , it's me again im really sorry for asking a lot of question but when
take a look to the documetation i didn't get a clear idea about the real
job of smart proxy chef plugin and why on chef we have a client plugin and
on salt we don't have it ?? and if my platform is not agent less would it
be necessary to have 3 plugin one on foreman and other one on smart proxy
foreman and the third on my iot devices ?
···
Le mercredi 28 juin 2017 11:50:40 UTC+2, Fairouz el ouazi a écrit :
>
> 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 ?
>
>
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
>
> --
> Marek
>
I m really so greatful for the help taht you give me as a beginner that's
why i have just a few questions that seems stupids .
1- if i wants to benefits of the functionalities and dashboard of foreman
do i need to keep smart proxies with puppet or i need to create a new one
for my (IOT x platform)
2-from documentation i see that plugins of cfgmngt can receive data
(facts ) from client but is there any possibility to take the opposite
direction is the plugins capable to send data to clients . for example
when on foreman i would like to change the value of one parametres of
group of node : does the clients have the capability to get it and apply
the changes .
···
Le jeudi 29 juin 2017 13:08:04 UTC+2, Daniel Lobato a écrit :
>
> On 06/29, 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 .
>
> Here are some docs on how to write your own plugin:
>
> https://theforeman.org/plugins/#3.WritingYourOwn
>
> For the use case you're asking about, I would recommend looking into the
> commit history of similar projects, namely:
>
> https://github.com/theforeman/foreman_chef
> https://github.com/theforeman/foreman_ansible
> https://github.com/theforeman/foreman_salt/
>
> >
> > Le mercredi 28 juin 2017 11:50:40 UTC+2, Fairouz el ouazi a écrit :
> > >
> > > 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 ?
> > >
> > >
> >
> > --
> > 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 foreman-dev...@googlegroups.com .
> > For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Daniel Lobato Garcia
>
> @dLobatog
> blog.daniellobato.me
> daniellobato.me
>
> GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
> Keybase: https://keybase.io/elobato
>
Hello
the smart proxy chef plugin is only a proxy between Foreman - chef-client and
Foreman - chef-server. Most of Foreman functionality proxies the communication
through smart-proxy, the idea is that Foreman is running on one place e.g. in
office while you need to talk to many hosts in datacenters. These hosts might
not be accessible from outside network so you put smart-proxy to the
datacenter and make this as the only available endpoint.
It's totally up to you if you decide to go this path, if this is not your
case, you can just add one plugin on foreman side. For iot devices it really
depends on what you're trying to achieve. Describing that on few examples
would help me understand what you need.
···
--
Marek
On pátek 30. června 2017 14:40:53 CEST Fairouz el ouazi wrote:
Hi , it’s me again im really sorry for asking a lot of question but when
take a look to the documetation i didn’t get a clear idea about the real
job of smart proxy chef plugin and why on chef we have a client plugin and
on salt we don’t have it ?? and if my platform is not agent less would it
be necessary to have 3 plugin one on foreman and other one on smart proxy
foreman and the third on my iot devices ?
Le mercredi 28 juin 2017 11:50:40 UTC+2, Fairouz el ouazi a écrit :
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 ?
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] About - Foreman
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
Hello ,
My platform is a software suite for IoT / M2M solution integrators
offering a set of tools to facilitate the interconnection between devices
(or connected « things ») and business applications:
···
-
Connectivity Interfaces (public and private) to collect data, send
command or notification from/to IoT/M2M devices,
Device Management (supervision, configuration, resources, firmware,
etc.),
Message Routing between devices and business applications,
Data Management: Data Storage with Advanced Search features.
Every device has a particular parameters with a mix of communication modes
. The devices use MQTT protocol to communicate with the platform .
I m looking for a device management that can offer me more functionalities
so the clients can have more visibility for their devices . For example i
want to modify a parameter on multiple devices at the same time : ex:
device Group . I want to manage different devices with different constraint
, I want to supervise my devices and their evolution and it will be just
great if i could do auto-provisioning (my devices get automatically an
existent configuration and having inventory .
Le lundi 3 juillet 2017 09:16:05 UTC+2, Marek Hulán a écrit :
Hello
the smart proxy chef plugin is only a proxy between Foreman - chef-client
and
Foreman - chef-server. Most of Foreman functionality proxies the
communication
through smart-proxy, the idea is that Foreman is running on one place e.g.
in
office while you need to talk to many hosts in datacenters. These hosts
might
not be accessible from outside network so you put smart-proxy to the
datacenter and make this as the only available endpoint.
It’s totally up to you if you decide to go this path, if this is not your
case, you can just add one plugin on foreman side. For iot devices it
really
depends on what you’re trying to achieve. Describing that on few examples
would help me understand what you need.
–
Marek
On pátek 30. června 2017 14:40:53 CEST Fairouz el ouazi wrote:
Hi , it’s me again im really sorry for asking a lot of question but when
take a look to the documetation i didn’t get a clear idea about the real
job of smart proxy chef plugin and why on chef we have a client plugin
and
on salt we don’t have it ?? and if my platform is not agent less would
it
be necessary to have 3 plugin one on foreman and other one on smart
proxy
foreman and the third on my iot devices ?
Le mercredi 28 juin 2017 11:50:40 UTC+2, Fairouz el ouazi a écrit :
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 ?
Thanks for the information. I think in this case, it would be good if smart
proxy plugin would communicate with platform then. But for easier start you
might start with the foreman plugin only and move the code from foreman plugin
to smart proxy later if you find the need to proxy the communication. I
suppose the plugin would be only talking to the platform and not specific
devices/things.
···
--
Marek
On pondělí 3. července 2017 10:11:34 CEST Fairouz el ouazi wrote:
Hello ,
My platform is a software suite for IoT / M2M solution integrators
offering a set of tools to facilitate the interconnection between devices
(or connected « things ») and business applications:
Connectivity Interfaces (public and private) to collect data, send
command or notification from/to IoT/M2M devices,
Device Management (supervision, configuration, resources, firmware,
etc.),
Message Routing between devices and business applications,
Data Management: Data Storage with Advanced Search features.
Every device has a particular parameters with a mix of communication modes
. The devices use MQTT protocol to communicate with the platform .
I m looking for a device management that can offer me more functionalities
so the clients can have more visibility for their devices . For example i
want to modify a parameter on multiple devices at the same time : ex:
device Group . I want to manage different devices with different constraint
, I want to supervise my devices and their evolution and it will be just
great if i could do auto-provisioning (my devices get automatically an
existent configuration and having inventory .
Le lundi 3 juillet 2017 09:16:05 UTC+2, Marek Hulán a écrit :
Hello
the smart proxy chef plugin is only a proxy between Foreman - chef-client
and
Foreman - chef-server. Most of Foreman functionality proxies the
communication
through smart-proxy, the idea is that Foreman is running on one place e.g.
in
office while you need to talk to many hosts in datacenters. These hosts
might
not be accessible from outside network so you put smart-proxy to the
datacenter and make this as the only available endpoint.
It’s totally up to you if you decide to go this path, if this is not your
case, you can just add one plugin on foreman side. For iot devices it
really
depends on what you’re trying to achieve. Describing that on few examples
would help me understand what you need.
On pátek 30. června 2017 14:40:53 CEST Fairouz el ouazi wrote:
Hi , it’s me again im really sorry for asking a lot of question but when
take a look to the documetation i didn’t get a clear idea about the real
job of smart proxy chef plugin and why on chef we have a client plugin
and
on salt we don’t have it ?? and if my platform is not agent less would
it
be necessary to have 3 plugin one on foreman and other one on smart
proxy
foreman and the third on my iot devices ?
Le mercredi 28 juin 2017 11:50:40 UTC+2, Fairouz el ouazi a écrit :
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 really so greatful for the help taht you give me as a beginner that's
why i have just a few questions that seems stupids .
1- if i wants to benefits of the functionalities and dashboard of foreman
do i need to keep smart proxies with puppet or i need to create a new one
for my (IOT x platform)
2-from documentation i see that plugins of cfgmngt can receive data
(facts ) from client but is there any possibility to take the opposite
direction is the plugins capable to send data to clients . for example
when on foreman i would like to change the value of one parametres of
group of node : does the clients have the capability to get it and apply
the changes .
···
Le jeudi 29 juin 2017 13:09:53 UTC+2, Marek Hulán a écrit :
>
> 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
>
>
>
Hello,
please see responses below in text
> I m really so greatful for the help taht you give me as a beginner that's
> why i have just a few questions that seems stupids .
> 1- if i wants to benefits of the functionalities and dashboard of foreman
> do i need to keep smart proxies with puppet or i need to create a new one
> for my (IOT x platform)
Usually plugin creates their own extensions (plugins) for smart proxy. In such
case you wouldn't need a smart proxy with puppet feature. Smart proxy can
combine multiple features and it's up to its configuration, which are active.
You can avoid going through smart proxy completely, but I'd recommend to have
support for proxying to follow the usual flow of communication in Foreman
world.
> 2-from documentation i see that plugins of cfgmngt can receive data
> (facts ) from client but is there any possibility to take the opposite
> direction is the plugins capable to send data to clients . for example
> when on foreman i would like to change the value of one parametres of
> group of node : does the clients have the capability to get it and apply
> the changes .
Plugins can extend Foreman code entirely introducing completely new logic, so
the answer is yes, you can do that. Depending on your use case, you might be
interested in remote execution plugin that allows you to run any command on
any target through SSH. If your devices provides REST API, you might have
simple job templates (scripts to be executed) using curl and being run on
smart proxies. See [1] for more details
[1] https://www.theforeman.org/plugins/foreman_remote_execution/0.3/index.html
···
On čtvrtek 29. června 2017 15:07:20 CEST Fairouz el ouazi wrote:
–
Marek
Le jeudi 29 juin 2017 13:09:53 UTC+2, Marek Hulán a écrit :
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] About - Foreman
How_to_Create_a_Plugin
[2] https://github.com/theforeman/foreman_chef/blob/master/app/models/
foreman_chef/fact_importer.rb
<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
<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
<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
<https://github.com/theforeman/foreman_chef/blob/master/lib/foreman_chef/e
ngine.rb#L81-L83>
Hope this helps
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
Hi , i don't have a knowledge about ruby or Ruby on Rails and I see that my plugin need to be developed in Ruby on Rails …I want to know where to start because when I try to use plugin example on the Manual I don't see anything on foreman … When I run rails server it show me to do rails new App Path … So do you think that I have to follow a ruby rails tutorial or just start with the example and because ruby is near to Python I could make it