module ForemanRemoteExecution::Concerns::Api::V2::RegistrationControllerExtensions
def host_setup_extension
def host_setup_extension remote_execution_interface remote_execution_pull reset_host_known_keys! unless @host.new_record? super end
def remote_execution_interface
def remote_execution_interface return unless params['remote_execution_interface'].present? @host.set_execution_interface(params['remote_execution_interface']) end
def remote_execution_pull
def remote_execution_pull HostParameter.where(host: @host, name: 'host_registration_remote_execution_pull').destroy_all setup_host_param('host_registration_remote_execution_pull', ActiveRecord::Type::Boolean.new.deserialize(params['setup_remote_execution_pull'])) end
def reset_host_known_keys!
def reset_host_known_keys! @host.host_proxy_invocations.destroy_all end