Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new onboarding strategy #192

Closed
damyan opened this issue Sep 26, 2024 · 1 comment · Fixed by #196
Closed

Add new onboarding strategy #192

damyan opened this issue Sep 26, 2024 · 1 comment · Fixed by #196
Assignees
Labels
enhancement New feature or request

Comments

@damyan
Copy link
Member

damyan commented Sep 26, 2024

Summary

Currently, the metal plugin onboards (i.e. creates Endpoints) only for known inventories from a static list. See https://github.com/ironcore-dev/FeDHCP?tab=readme-ov-file#configuration-5.

Basic example

Enhance the inventory configuration to a more comprehensive format. Example:

namePrefix: server-
hosts:
  - name: machine-1
    macAddress: aa:bb:cc:dd:ee:ff
  - name: machine-2
    macAddress: 11:22:33:44:55:66
macPrefixFilter:
  - aa:aa:aa:aa:aa:aa
  - bb:bb:bb:bb:bb:bb

Onboarding algorithm:

  • if a static hosts section exists, onboard only those inventories (matches current behaviour)
  • if no static hosts section exists, onboard the inventories with MAC addresses matching the macFilter, according to the following naming scheme:
    • if a namePrefix section exists, each inventory shall get a suffix-generated name like server-abcd, server-uxyz, etc.
    • if no namePrefix section exists, generate the name with the predefined prefix compute, resulting in names like compute-abcd, compute-uxyz, etc.
  • if neither hosts nor macFilter section is specified, do not onboard anything. We want a restrictive onboarding approach, though, that might change in the future

Motivation

We want more flexibility:

  • we don't (always) want pets as servers, we might as well go on and onboard every available inventory
  • we want more flexibility about the naming scheme
  • we want to support filtering, a.k.a. onboard inventories matching certain criteria
@damyan damyan added the enhancement New feature or request label Sep 26, 2024
@damyan damyan self-assigned this Sep 26, 2024
@damyan
Copy link
Member Author

damyan commented Sep 26, 2024

/cc @afritzler Comments are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant