Problem:
After updating to Foreman 3.0 / Katello 4.2, with Puppet ENC enabled, Environment is no longer inherited through hostgroups and “Inherit from paren” is no longer an option.
Expected outcome:
Environment inheritance in hostgroups works as it did before
Foreman and Proxy versions:
Foreman 3.0
Katello 4.2
Foreman and Proxy plugin versions:
Distribution and version:
CentOS 7
Other relevant data:
@birkirf Which version of the Puppet plugin are you using? Do you mean that when you are creating a host, the Inherit
button next to the Environment
selection is not showing up?
Puppet plugin is whatever came default with the update from 2.5.4 → 3.0.0 which i believe to be Puppet 3.0.0
What I mean is when you go to edit a hostgroup (or create a new one) there is no option to “inherit parent” as there used to be for enviroment prior to puppet being extracted from Core.
Understood, thank you! @ezr-ondrej Is there a particular reason this is not there or shall we open a ticket to re-add the functionality?
No, this is definitelly a bug. The field should be the same as it was prior the puppet plugin extraction.
Thanks for reporting @birkirf !
1 Like
The fix is basically only this line: https://github.com/theforeman/foreman_puppet/pull/220/files#diff-8b201884358a605eb996c7060bc4368e88d694cfb2eca1d73fe954f5187323b2R51
I’ve added bunch of tests to make sure this won’t get broken in the future, but if you want to patch your environment, just get that line 
1 Like