Red Hat Training

A Red Hat training course is available for Red Hat Satellite

20.4. addScript

Add a pre/post script to a kickstart profile.
  • string sessionKey
  • string ksLabel - The kickstart label to add the script to.
  • string name - The kickstart script name.
  • string contents - The full script to add.
  • string interpreter - The path to the interpreter to use (i.e. /bin/bash). An empty string will use the kickstart default interpreter.
  • string type - The type of script (either 'pre' or 'post').
  • boolean chroot - Whether to run the script in the chrooted install location (recommended) or not.
  • boolean template - Enable templating using cobbler.
  • boolean erroronfail - Whether to throw an error if the script fails or not
Return Value
  • int id - the id of the added script