see https://github.com/theforeman/foreman/blob/develop/app/controllers/unattended_controller.rb#L162 and http://projects.theforeman.org/issues/2693#note-1