Bug 499046 - Need tooltip and upgrade path for %post/%pre scripts edit page
Summary: Need tooltip and upgrade path for %post/%pre scripts edit page
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 530
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Justin Sherrill
QA Contact: Pradeep Kilambi
URL:
Whiteboard:
Depends On:
Blocks: 457075
TreeView+ depends on / blocked
 
Reported: 2009-05-04 23:09 UTC by Mike McCune
Modified: 2009-09-10 19:25 UTC (History)
3 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-10 19:25:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2009-05-04 23:09:53 UTC
Because existing kickstart pre and post scripts may contain $variables that are not going to resolve when cobbler renders the profiles we need to pre and postpend the following during the upgrade of Satellite 5.2 -> 5.3:

#raw
.. existing script ..
#end raw

this will ensure compatibility.

Also need a tooltip on the kickstart script create/edit page noting that if you have $variables that are not associated with the profile you need to wrap them with #raw and #end raw

Comment 1 Justin Sherrill 2009-05-05 19:37:33 UTC
b668fba 

so i added a 'template' option to the scripts edit/create page that is disabled by default.  If it's disabled  

#raw
& #end raw  

are added to the script

Comment 3 John Matthews 2009-07-29 20:14:24 UTC
Moving to RELEASE_PENDING

Verified that "template" option checkbox controls the inserts of "#raw    #end raw" by looking at a kickstart file under /var/lib/rhn/kickstarts/wizard

#raw
%post --interpreter testscript01
$TEMP_VALUE
#end raw

Comment 4 Brandon Perkins 2009-09-10 19:25:31 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-1434.html


Note You need to log in before you can comment on or make changes to this bug.