'This is a feature used to run the pre/post install triggers.
See CobblerTriggers on Wiki for details'

def run_install_triggers(self, mode, objtype, name, ip, token=None, **rest):

    self._log('run_install_triggers', token=token)
    if ((mode != 'pre') and (mode != 'post') and (mode != 'firstboot')):
        return False
    if ((objtype != 'system') and (objtype != 'profile')):
        return False
    utils.run_triggers(self.api, None, ('/var/lib/cobbler/triggers/install/%s/*' % mode), additional=[objtype, name, ip], logger=self.logger)
    return True
