Description of problem:
To be able to generate the documentation for puppet classes accessible from foreman ui -> puppet classes -> the environment links in documentation column,
`foreman-rake puppet:rdoc:generate` needs to be run. However, it expects puppetdoc command to be present. It seems, puppet 3.6 does not ship this script, and `puppet doc` should be used instead.
Even after the path is changes, there are still issues when loading the information about the puppet environments from the master:
foreman-rake puppet:rdoc:generate --trace
undefined method `keys' for ["motd", motd]:Array
/usr/share/foreman/app/models/environment.rb:45:in `block (2 levels) in puppetEnvs'
/usr/share/foreman/app/models/environment.rb:44:in `block in puppetEnvs'
/usr/share/foreman/lib/tasks/puppet.rake:17:in `block (3 levels) in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in `block in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. create a content view with a puppet module and publish
2. run the `foreman-rake puppet:rdoc:generate`
Foreman is trying to use puppetdoc script, and even after fixing this, it fails on other errors
Created redmine issue http://projects.theforeman.org/issues/6666 from this bug
Connecting redmine issue http://projects.theforeman.org/issues/1556 from this bug
Not providing devel_ack+ for this, it's likely CANTFIX or WONTFIX. It'll need a more thorough review of bugs at multiple levels, and a redesign of the implementation. It's quite a bit of work.
Upstream bug assigned to email@example.com
Upstream bug component is WebUI
Upstream bug component is Provisioning
Upstream bug component is Configuration Management
Upstream bug component is Puppet
Upstream bug assigned to firstname.lastname@example.org
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/1556 has been resolved.
Closing this as can't fix. Puppet rdoc support has been dropped and there is currently no plan to reintroduce this. Upstream the related rake command has been removed already and this will land in Satellite as well when fix for https://bugzilla.redhat.com/show_bug.cgi?id=1243586 is pulled in.