[Spacewalk-list] Update kickstart scripts via API

Jon Miller jonebird at gmail.com
Wed May 1 03:33:05 UTC 2013


Actually I sent my last email before completing my testing. Speaking of
being able to retrieve the script name, I didn't realize I wasn't
specifying a "script name" parameter for the kickstart.profile.addScript()
API call. My goal is to be able to manage a changing set of scripts outside
of the UI (hopefully avoid human error) and the side affect is now my
scripts are nameless. I suppose that would further encourage my goal of
keeping the scripts updated outside of the UI but I'd rather be able to
specify the script name.

...I'm half tempted to checkout the SW git repo and hack out a solution but
only half way. :-)

-- Jon Miller


On Tue, Apr 30, 2013 at 5:50 PM, Jon Miller <jonebird at gmail.com> wrote:

> I'm currently wrapping up a script that helps me update the scripts
> collection for a specified kickstart profile. I currently have to use
> the kickstart.profile.removeScript() and then kickstart.profile.addScript()
> in sequence. In case nobody has mentioned this before, I think adding a new
> API to allow an kickstart.profile.updateScript() call would be great.
>
> Also, I think the kickstart.profile.listScripts() should return the script
> name along with the other attributes. I'm currently using a hack where I
> parse a special comment to maintain a consistent name for the script. I
> then ensure that special comment is inserted during upload of a new script.
>
> -- Jon Miller
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20130430/b8778aca/attachment.htm>


More information about the Spacewalk-list mailing list