Project

General

Profile

Actions

Bug #6666

closed

foreman-rake puppet:rdoc:generate doesn't work with puppet 3.6

Added by Ivan Necas almost 10 years ago. Updated over 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1120698
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 `each'
/usr/share/foreman/app/models/environment.rb:44:in `map'
/usr/share/foreman/app/models/environment.rb:44:in `block in puppetEnvs'
/usr/share/foreman/app/models/environment.rb:43:in `map'
/usr/share/foreman/app/models/environment.rb:43:in `puppetEnvs'
/usr/share/foreman/app/models/puppetclass.rb:102:in `rdoc'
/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 `call'
/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:200:in `each'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in `execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in `block in invoke_with_call_chain'
/opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in `invoke_with_call_chain'

Version-Release number of selected component (if applicable):

How reproducible:
Always

Steps to Reproduce:
1. create a content view with a puppet module and publish
2. run the `foreman-rake puppet:rdoc:generate`

Actual results:
Foreman is trying to use puppetdoc script, and even after fixing this, it fails on other errors

Expected results:

Additional info:


Related issues 1 (0 open1 closed)

Is duplicate of Foreman - Bug #1556: Puppet rdoc generation is broken in ForemanClosedTomer Brisker03/28/2012Actions
Actions #1

Updated by Dominic Cleal over 9 years ago

  • Is duplicate of Bug #1556: Puppet rdoc generation is broken in Foreman added
Actions #2

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF