How to add additional discovery facts and have them return when hitting "refresh facts"

Hi,

I'm using discovery 1.3.0 with foreman 1.6.x. We have added additional
facts collected by discover-host.rb by adding them in
/etc/puppetlabs/facters/facts.d/

However, when you click on the server in discovered_hosts tab and "refresh
facts" we lose those additional items… Is there a way to update the list
of facts collected when using "refresh facts" button?

Thank You.

Hello,

> I'm using discovery 1.3.0 with foreman 1.6.x. We have added additional
> facts collected by discover-host.rb by adding them in
> /etc/puppetlabs/facters/facts.d/
>
> However, when you click on the server in discovered_hosts tab and "refresh
> facts" we lose those additional items… Is there a way to update the list
> of facts collected when using "refresh facts" button?

first of all, this is unsupported version of Foreman now. Upgrade to 1.8
with 3.0 discovery and image 2.1. This version of image lets you create
runtime extensions without recompiling the image.

However, this is caused by the fact that initial upload is done via
discovery-register script while refresh facts feature is handled by
foreman-proxy running on the image.

Make sure the proxy process sees the updated facter environment
(FACTERLIB variable).

··· -- Later, Lukas #lzap Zapletal