Writing facts into comment field

Problem: A fact contains a small description of a host. Since the comment field seems to be the only existent field in Foreman that, if set, is presented on a host’s main page to describe a node, it would be wonderful to get this information out of a fact and stored in the comment.

Foreman and Proxy versions: 1.22

Other relevant data:
I’ve already learned how to write facts into host parameters. Maybe there is also an approach to do that?

I can do that for you.


Here is the patch:

Have fun

I already got 2 patches from you in the last days. Can I do that in the same way as in the past?

In this way:

cd /usr/share/foreman
wget https://github.com/theforeman/foreman/pull/7008.patch
patch -p1 < 7008.patch
systemctl restart httpd


@lzap And what shall I do to write a custom fact into comment field?

Sorry what?

How does it work? Or, how do I have to setup Foreman to do that?

It does not work yet, there is a WIP patch that needs more work at the moment.

@lzap Any news on this?Does it already work in 2.0?

1 Like

Fixed in 2.1