It works !
I have edited the file “/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_chef-0.6.0/lib/foreman_chef/engine.rb” and commented the line as requested.
I have done a “# katello-service restart” and the new host has been created.
I have deleted it afterwards : this was alos OK.
The import of the Chef environments was also successful.
I have recreated the new host specifying the Chef environement to use and the roles to use too : host creation was OK.
I am now installing it (booting on the iso file I create for this host) and I see a message “Starting package installation process. Error populating transaction, retrying (1/10)” - never seen this message before - so I will now face the next problem .
But at least I am already one step further …
Thanks a lot !!!
Have a nice end of year.
PS : I will be back on Jan. 8th and proceed with the Foreman/Katello/Chef Proof Of Concept here so if you have suggestions and/or tests you want me to do and if I can help … don’t hesitate.