Project

General

Profile

« Previous | Next » 

Revision 8c84f4f5

Added by Leos Stejskal about 3 years ago

Fixes #31687 - Host Registration - Repository & GPG keys (#8402)

New feature in `Global Registration template` for adding
repository & gpg key before the host registration starts.

For adding repository (& key), users needs to specify
two parameters: `repo` & `repo_gpg_key`.

View differences:

app/controllers/api/v2/registration_commands_controller.rb
param :setup_remote_execution, :bool, desc: N_("Set 'host_registration_remote_execution' parameter for the host. If it is set to true, SSH keys will be installed on the host")
param :jwt_expiration, :number, desc: N_("Expiration of the authorization token (in hours)")
param :insecure, :bool, desc: N_("Enable insecure argument for the initial curl")
param :repo, String, desc: N_("Repository URL / details, for example for Debian OS family: 'deb http://deb.example.com/ buster 1.0', for Red Hat OS family: 'http://yum.theforeman.org/client/latest/el8/x86_64/'")
param :repo_gpg_key_url, String, desc: N_("URL of the GPG key for the repository")
end
def create
render json: { registration_command: command }

Also available in: Unified diff