Not able to provision from Discovery using GUI or using hammer commands. When using the GUI, after hitting submit, the page goes to blank white page. When using “hammer discovery”, we get “Error: uninitialized constant HammerCLIForeman::CommandExtensions::PuppetEnvironment”
New host provisioned on physical servers.
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Distribution and version:
CentOS Linux release 7.9.2009 (Core)
Other relevant data:
Error: uninitialized constant HammerCLIForeman::CommandExtensions::PuppetEnvironment
I found that by commenting out the line:
in the file:
fixed the hammer cli issue.
Hi, @tbrooks, from hammer perspective, there is also a PR that should fix your error . Moreover, if you need Puppet support, you can install hammer-cli-foreman-puppet and apply this patch .
 - https://github.com/theforeman/hammer-cli-foreman-discovery/pull/51
UPD: Regarding Puppet, this patch will work only for hammer-cli-foreman-puppet version 0.0.5 or above, which wasn’t released yet But otherwise it should make hammer-cli-foreman-discovery usable again.