Foreman Development getting started

Hello dear developers,
first of all thank you for such a great project like foreman.

We are using foreman in our company for a about 3 years but we would like
to extend some features. For example hammer-cli "host list". We would like
to have here an additional column for "description". How could u do that?

What is the best to get started with development on foreman/hammer etc.?

What programming language is useul, ruby, puppet?

Is there a entry source to get started?

We would like to help ourself and the community with development on this
great project.

Greets,
Denis

> Hello dear developers,
> first of all thank you for such a great project like foreman.
>
> We are using foreman in our company for a about 3 years but we would like
> to extend some features. For example hammer-cli "host list". We would like
> to have here an additional column for "description". How could u do that?

Description of host? That field does not exist, so you would have to add
it on Foreman core https://github.com/theforeman/foreman/ - there are
recent commits that add the 'description' field to various objects, I
hope that can serve as a reference.

As for hammer, it essentially reads whatever the Foreman API has, so
you'd have to expose that field in the Foreman API, and then make


read it

>
> What is the best to get started with development on foreman/hammer etc.?

This is the best way to get started:
https://theforeman.org/contribute.html

>
> What programming language is useul, ruby, puppet?

Mostly Ruby, the installer modules are in Puppet though so if you want
to improve the installer that'd be useful too.

··· On 10/10, 'Denis Müller' via foreman-dev wrote:

Is there a entry source to get started?

We would like to help ourself and the community with development on this
great project.

Greets,
Denis


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
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

> Hello dear developers,
> first of all thank you for such a great project like foreman.
>
> We are using foreman in our company for a about 3 years but we would like
> to extend some features. For example hammer-cli "host list". We would like
> to have here an additional column for "description". How could u do that?
>
> What is the best to get started with development on foreman/hammer etc.?
>
> What programming language is useul, ruby, puppet?
>
> Is there a entry source to get started?
>
> We would like to help ourself and the community with development on this
> great project.
>

Hey Denis,

We have some development resources out there that may be of help. The first
thing is getting a development environment setup. For a development
environment we have a Vagrant based deployment tool to configure and setup
a development in a VM (you can also use the tooling on your own box if you
don't want to use Vagrant) [1]. We are happy to answer any questions you
have about getting started with it.

Further, there are some environments that have been added to aide with
other areas as well. For example, you ask about hammer development, there
is a Vagrant box setup that will create a VM configured to allow hammer
development with lots of plugins, and useful tools to take you from nothing
to developing [2].

[1] https://github.com/Katello/forklift/blob/master/docs/development.md
[2]
https://github.com/Katello/forklift/blob/master/docs/development.md#hammer-development

··· On Tue, Oct 11, 2016 at 2:39 AM, 'Denis Müller' via foreman-dev < foreman-dev@googlegroups.com> wrote:

Greets,
Denis


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.


Eric D. Helms
Red Hat Engineering
Ph.D. Student - North Carolina State University

Thank you guys for great responses, i think this is a good way to start.

··· Am Dienstag, 11. Oktober 2016 09:09:16 UTC+2 schrieb Denis Müller: > > Hello dear developers, > first of all thank you for such a great project like foreman. > > We are using foreman in our company for a about 3 years but we would like > to extend some features. For example hammer-cli "host list". We would like > to have here an additional column for "description". How could u do that? > > What is the best to get started with development on foreman/hammer etc.? > > What programming language is useul, ruby, puppet? > > Is there a entry source to get started? > > We would like to help ourself and the community with development on this > great project. > > Greets, > Denis >

If it is the filed 'Comment' what you have on your mind, it is fairly
simple to add. It is already part of API response so the only thing you
need to do is to add it to the hammer command here [1]

Depending on your plans you can either suggest this change for inclusion in
hammer via redmine feature request [2] and send pull request in the Github
or start building hammer plugin of your own (some hints are here [3]).

–Martin

[1]


[2] Foreman
[3]
https://github.com/theforeman/hammer-cli/blob/master/doc/developer_docs.md#hammer-development-docs

··· On Tue, Oct 11, 2016 at 10:08 AM, Daniel Lobato Garcia wrote:

We are using foreman in our company for a about 3 years but we would like
to extend some features. For example hammer-cli “host list”. We would
like
to have here an additional column for “description”. How could u do that?

i got an "comment" column with editing
https://github.com/theforeman/hammer-cli-foreman/blob/master/lib/hammer_cli_foreman/host.rb,
thanks for that. I will try to find a way to build an option for "comment"
for hammer-cli.

··· Am Dienstag, 11. Oktober 2016 10:08:35 UTC+2 schrieb Daniel Lobato: > > On 10/10, 'Denis Müller' via foreman-dev wrote: > > Hello dear developers, > > first of all thank you for such a great project like foreman. > > > > We are using foreman in our company for a about 3 years but we would > like > > to extend some features. For example hammer-cli "host list". We would > like > > to have here an additional column for "description". How could u do > that? > > Description of host? That field does not exist, so you would have to add > it on Foreman core https://github.com/theforeman/foreman/ - there are > recent commits that add the 'description' field to various objects, I > hope that can serve as a reference. > > As for hammer, it essentially reads whatever the Foreman API has, so > you'd have to expose that field in the Foreman API, and then make > > https://github.com/theforeman/hammer-cli-foreman/blob/master/lib/hammer_cli_foreman/host.rb > read it > > > > > What is the best to get started with development on foreman/hammer etc.? > > This is the best way to get started: > https://theforeman.org/contribute.html > > > > > What programming language is useul, ruby, puppet? > > Mostly Ruby, the installer modules are in Puppet though so if you want > to improve the installer that'd be useful too. > > > > > Is there a entry source to get started? > > > > We would like to help ourself and the community with development on this > > great project. > > > > Greets, > > Denis > > > > -- > > 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 >