I wouldn't recommend raising error: there might be use-cases, where the foreman is not configured with puppet but we still want other actions to be run.