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

WIP: PXE boot server (for kickstarting hardware) #181

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

oranenj
Copy link

@oranenj oranenj commented Dec 12, 2020

I'm working on this related to #14

This is not even tested yet, but I'll work on it during the weekend, just making this PR in case someone has ideas they want to bring up.

@NeilHanlon NeilHanlon marked this pull request as draft December 12, 2020 13:48
@NeilHanlon
Copy link
Member

Making this a draft for you :)


- name: Enable tftp server socket
systemd:
name: tftp.socket
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would really rather not use tftp. It's insecure, old as heck, and udp i.e. Slow.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UEFI can probably load the boot files over HTTP, but I'm not sure if that's an option for BIOS. Since this is only for loading the boot files when initially installing a host, is the slowness / security an issue? The TFTP server should only be exposed to the network from which the servers get installed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UEFI not only supports HTTP, but HTTPS (with certificate verification).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTP also has other nasty problems: being able to send a UDP packet to the client is Game Over. I strongly recommend making sure the “network” is just a single cable.

path: '/var/lib/tftpboot/uefi'
state: directory

# Are there better ways to get these same files into the tftpboot directory?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add a reposync to a local mirror later on. This is good enough for now.

Can you log an issue and link to it in this via an @todo or something?

Copy link
Author

@oranenj oranenj Dec 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EDIT: oops, replied to the wrong comment :-)


# This is to try to avoid the handler issue in pre/post tasks
handlers:
- include: handlers/main.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving a note here so as not to be forgotten. Please update the include statement with the new import_tasks as ansible docs suggest.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a lint check to reject commits which perform this (unwanted) behavior? Is it possible?

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

Successfully merging this pull request may close these issues.

4 participants