Project

General

Profile

Actions

Feature #13261

open

Allow plugins to add lines on foreman-debug summary page

Added by Lukas Zapletal over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
foreman-debug
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Foreman-debug tool automatically evaluates scripts in particular directory, which is used by other plugins. There is currently no way of putting a line onto the summary page. There was a downstream only patch that adds some info.

If there is a way to add lines onto the summary page, external plugin could do something like:

# cat /usr/share/foreman/script/foreman-debug.d/my_plugin

add_cmd "cat /usr/share/foreman/lib/satellite/version.rb" "satellite_version" 
SUMMARY += ("SATELLITE:", "$(grep -o '[0-9\.]*' /usr/share/foreman/lib/satellite/version.rb 2>/dev/null)")

This can be used for example in the Satellite branding plugin.

Actions #1

Updated by Dominic Cleal over 7 years ago

  • Tracker changed from Bug to Feature
Actions

Also available in: Atom PDF