Project

General

Profile

Actions

Feature #30440

closed

Simple & automatic host registration WF

Added by Leos Stejskal over 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

See: https://community.theforeman.org/t/rfc-simple-automatic-host-registration-wf/19588

This RFC is part of an ongoing effort to simplify the registration process of the hosts into the Foreman. It’s not about provisioning new hosts from Foreman, but about registering already existing (running) hosts to Foreman and running user defined commands from the registration templates. That is especially useful in brown-field deployments, where people don’t provision the existing infrastructure from scratch, but want to start managing existing hosts by Foreman.

Motivation & Goals
Make the host registration simple and easy. We should allow users to register and set up hosts with one command.

Ideal Use Case
One command rule them all:

  • User will call curl | bash command, for example something like this:
    curl --user admin:changeme https://foreman.com/templates/register-new-host | bash
    
  • Foreman will generate Global registration template with commands for host registration to Foreman
  • After host creation Foreman will render the host-registration template with commands for host set up.

Subtasks 17 (0 open17 closed)

Feature #30475: DocumentationClosedLeos StejskalActions
Feature #30917: Add Smart proxy feature "Registration"ClosedLeos StejskalActions
Feature #30998: Global Registration - Secure connectionClosedLeos StejskalActions
Feature #30999: Global Registration Template - Add :activation_key to the templateClosedLeos StejskalActions
Refactor #31043: Global Registration Template - Replace JSON in CURL with form-dataClosedLeos StejskalActions
Feature #31236: Host setup action in RegistrationController extendable from pluginsClosedLeos StejskalActions
Bug #31420: Global Registration Template - Exit when subscription-manager failsClosedLeos StejskalActions
Feature #31629: Add API for generating registration commandClosedLeos StejskalActions
Bug #31645: Global registration fails with Validation failed: Name can't be blankClosedLeos StejskalActions
Feature #31663: Usability issues with templates & operating systemsClosedLeos StejskalActions
Feature #31687: Repository & GPG keysClosedLeos StejskalActions
Feature #31743: Install packages after host registrationClosedLeos StejskalActions
Feature #31807: Host Registration - UI Form improvementsClosedLeos StejskalActions
Feature #31240: New Host Registration FormClosedLeos StejskalActions
Feature #31811: Global Registration: wizard should let users know which fields are mandatoryClosedLeos StejskalActions
Feature #31818: JWT without expirationClosedActions
Feature #31885: Global Registration: page does not pre-populate values for "Setup Insights" & "Remote Execution" from Global ParametersClosedLeos StejskalActions

Related issues 37 (0 open37 closed)

Related to Foreman - Feature #30441: API endpoint for Global Registration Template ClosedLeos StejskalActions
Related to Foreman - Feature #30442: JWT for Global Registration Template endpointClosedLeos StejskalActions
Related to Foreman - Feature #30443: Global Registration Template - ContentResolvedLeos StejskalActions
Related to Foreman - Feature #30444: GRT - Host registration template featuresClosedLeos StejskalActions
Related to Foreman - Feature #30445: Host registration template - contentClosedLeos StejskalActions
Related to Foreman - Feature #30446: Global Registration Template - Default Organization and LocationClosedLeos StejskalActions
Related to Foreman - Feature #30447: Add :insecure parameter to the Global registration endpointRejectedLeos StejskalActions
Related to Foreman - Feature #30459: Global Registration Template - Capsule callback supportClosedLeos StejskalActions
Related to Foreman - Feature #30473: Global Registration - UIClosedLeos StejskalActions
Related to Katello - Feature #30676: Extend Global registration endpoint with :activation_key parameter.ClosedLeos StejskalActions
Related to Smart Proxy - Feature #30677: Registration moduleClosedLeos StejskalActions
Related to Foreman - Refactor #30699: Error logging for invalid token is misleadingClosedActions
Related to Foreman - Feature #30714: Global registration - add :url parameter to list of allowed params for the templateClosedLeos StejskalActions
Related to Foreman - Feature #30742: Global Registration - RefactoringClosedLeos StejskalActions
Related to Foreman - Feature #30771: Global Registration - New workflowClosedLeos StejskalActions
Related to Installer - Feature #30950: Enable SmartProxy Registration moduleClosedLeos StejskalActions
Related to Foreman - Bug #30992: HRT API endpoint should document ipv6 parameterClosedActions
Related to Foreman - Bug #30993: HRT endpoint enables owner in strong params definitionClosedActions
Related to Foreman - Feature #31020: Global registration should support disabling REX setupClosedActions
Related to Foreman - Feature #31021: Global registration should support disabling insights setupClosedActions
Related to Katello - Bug #31050: Registration fails if Katello is involved and the host is already subscribed, just not registered to this SatelliteClosedActions
Related to Foreman - Bug #31070: Improve the foreman_server_ca_cert macro documentationClosedMarek HulánActions
Related to Foreman - Feature #31081: I should be able to specify REX interface during the registrationClosedActions
Related to Foreman - Bug #31082: The new insights registration snippet should be added to the Kickstart fileClosedLeos StejskalActions
Related to Foreman - Feature #31137: The registration form should warn user if the OS does not have registration template associatedClosedActions
Related to Foreman - Refactor #31143: Use single quotes in registration templates for curlClosedMarek HulánActions
Related to Foreman - Feature #31164: Register host button should be added to the empty (welcome) host index pageClosedActions
Related to Foreman - Refactor #31177: Extract the permitted params to a separate variable in registration controllerClosedMarek HulánActions
Related to Foreman - Bug #31179: Registration curls print the output, making it hard to understand the progressClosedActions
Related to Foreman - Feature #31211: The inline help in the registration form should be hidden in the "?" icon like in other formsClosedActions
Related to Foreman - Bug #31245: Host registration UI fails with "wrong number of arguments (given 2, expected 1)"DuplicateActions
Related to Foreman - Bug #31279: Activation key not supplied to the global registration templateClosedActions
Related to Foreman - Bug #31281: Clarify JWT used for registration template grants full access as the generating userClosedActions
Related to Foreman - Bug #31282: Limit JWT used for host registration to only allow access to the register endpointClosedActions
Related to Foreman - Bug #31397: Global Registration Form - hostgroup_id instead of host_group_idClosedLeos StejskalActions
Related to Foreman - Feature #31503: Add insecure checkbox to the registration formClosedActions
Related to Hammer CLI - Feature #31630: Global Registration - Hammer supportClosedLeos StejskalActions
Actions #1

Updated by Leos Stejskal over 4 years ago

  • Description updated (diff)
Actions #2

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30441: API endpoint for Global Registration Template added
Actions #3

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30442: JWT for Global Registration Template endpoint added
Actions #4

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30443: Global Registration Template - Content added
Actions #5

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30444: GRT - Host registration template features added
Actions #6

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30445: Host registration template - content added
Actions #7

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30446: Global Registration Template - Default Organization and Location added
Actions #8

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30447: Add :insecure parameter to the Global registration endpoint added
Actions #9

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30459: Global Registration Template - Capsule callback support added
Actions #10

Updated by Tomer Brisker over 4 years ago

  • Category set to Templates
Actions #11

Updated by Leos Stejskal over 4 years ago

Actions #12

Updated by Leos Stejskal over 4 years ago

Actions #13

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30476: Support scope of permissions for JWT authorization tokens added
Actions #14

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30676: Extend Global registration endpoint with :activation_key parameter. added
Actions #15

Updated by Leos Stejskal over 4 years ago

Actions #16

Updated by Leos Stejskal over 4 years ago

Actions #17

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30695: Global registration template endpoint - add :insecure parameter added
Actions #18

Updated by Marek Hulán over 4 years ago

  • Related to Feature #30696: Improve the error output in global registration template added
Actions #19

Updated by Marek Hulán over 4 years ago

  • Related to Refactor #30699: Error logging for invalid token is misleading added
Actions #20

Updated by Leos Stejskal over 4 years ago

  • Related to Feature #30714: Global registration - add :url parameter to list of allowed params for the template added
Actions #21

Updated by Leos Stejskal over 4 years ago

  • Related to deleted (Feature #30695: Global registration template endpoint - add :insecure parameter)
Actions #22

Updated by Leos Stejskal over 4 years ago

Actions #23

Updated by Leos Stejskal over 4 years ago

Actions #24

Updated by Leos Stejskal over 4 years ago

  • Related to deleted (Feature #30476: Support scope of permissions for JWT authorization tokens)
Actions #25

Updated by Leos Stejskal over 4 years ago

Actions #26

Updated by Leos Stejskal about 4 years ago

  • Related to Feature #30950: Enable SmartProxy Registration module added
Actions #27

Updated by Marek Hulán about 4 years ago

  • Related to Bug #30990: GRT and HRT should use curl with --fail to avoid executing html code on 5xx responses added
Actions #28

Updated by Marek Hulán about 4 years ago

  • Related to Bug #30992: HRT API endpoint should document ipv6 parameter added
Actions #29

Updated by Marek Hulán about 4 years ago

  • Related to Bug #30993: HRT endpoint enables owner in strong params definition added
Actions #30

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31020: Global registration should support disabling REX setup added
Actions #31

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31021: Global registration should support disabling insights setup added
Actions #32

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31049: Add more reliable way to detect Foreman CA certificate added
Actions #33

Updated by Marek Hulán about 4 years ago

  • Related to Bug #31050: Registration fails if Katello is involved and the host is already subscribed, just not registered to this Satellite added
Actions #34

Updated by Marek Hulán about 4 years ago

  • Related to Bug #31070: Improve the foreman_server_ca_cert macro documentation added
Actions #35

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31081: I should be able to specify REX interface during the registration added
Actions #36

Updated by Marek Hulán about 4 years ago

  • Related to Bug #31082: The new insights registration snippet should be added to the Kickstart file added
Actions #37

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31137: The registration form should warn user if the OS does not have registration template associated added
Actions #38

Updated by Marek Hulán about 4 years ago

  • Related to Refactor #31138: Host registration tab should be removed added
Actions #39

Updated by Marek Hulán about 4 years ago

  • Related to Refactor #31143: Use single quotes in registration templates for curl added
Actions #40

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31164: Register host button should be added to the empty (welcome) host index page added
Actions #41

Updated by Marek Hulán about 4 years ago

  • Related to Refactor #31177: Extract the permitted params to a separate variable in registration controller added
Actions #42

Updated by Marek Hulán about 4 years ago

  • Related to Bug #31179: Registration curls print the output, making it hard to understand the progress added
Actions #43

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31211: The inline help in the registration form should be hidden in the "?" icon like in other forms added
Actions #44

Updated by Marek Hulán about 4 years ago

  • Related to Bug #31212: Registration form parameters (such as insights) should always set the value if it's not an empty string added
Actions #45

Updated by Peter Ondrejka about 4 years ago

  • Related to Bug #31245: Host registration UI fails with "wrong number of arguments (given 2, expected 1)" added
Actions #46

Updated by Peter Ondrejka about 4 years ago

  • Related to Bug #31279: Activation key not supplied to the global registration template added
Actions #47

Updated by Tomer Brisker about 4 years ago

  • Related to Bug #31281: Clarify JWT used for registration template grants full access as the generating user added
Actions #48

Updated by Tomer Brisker about 4 years ago

  • Related to Bug #31282: Limit JWT used for host registration to only allow access to the register endpoint added
Actions #49

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31341: Deploy the foreman_scap_client as part of registration added
Actions #50

Updated by Leos Stejskal about 4 years ago

Actions #51

Updated by Marek Hulán about 4 years ago

  • Related to Bug #31397: Global Registration Form - hostgroup_id instead of host_group_id added
Actions #52

Updated by Marek Hulán about 4 years ago

  • Related to Feature #31503: Add insecure checkbox to the registration form added
Actions #53

Updated by Leos Stejskal almost 4 years ago

  • Related to Feature #31630: Global Registration - Hammer support added
Actions #54

Updated by Leos Stejskal almost 4 years ago

Actions #55

Updated by Leos Stejskal almost 4 years ago

  • Category changed from Templates to Host registration
Actions #56

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Feature #30696: Improve the error output in global registration template)
Actions #57

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Refactor #31138: Host registration tab should be removed)
Actions #58

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Bug #31212: Registration form parameters (such as insights) should always set the value if it's not an empty string)
Actions #59

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Feature #31819: Host Registration - Ansible module)
Actions #60

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Feature #31341: Deploy the foreman_scap_client as part of registration)
Actions #61

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Feature #31049: Add more reliable way to detect Foreman CA certificate)
Actions #62

Updated by Leos Stejskal over 3 years ago

  • Related to deleted (Bug #30990: GRT and HRT should use curl with --fail to avoid executing html code on 5xx responses)
Actions #63

Updated by Leos Stejskal over 3 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF