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 pilot from plane.watch/planefeeder #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mikenye
Copy link

@mikenye mikenye commented Jan 22, 2024

This PR adds a very basic and work-in-progress web UI (named "pilot") that will configure network settings (for now).

Pilot can be built by changing into the pilot directory and running go build ./cmd/pilot.

There is a system service definition in pilot/pilot.service, which expects the pilot binary to be located at /opt/pilot/pilot.

Pilot expects that netplan is installed, and will use networkd as the renderer. It will create a netplan YAML format file at: /etc/netplan/pilot.yaml.

Pilot will listen on :80.

You can "skin" the web UI by editing the HTML template files located in pilot/lib/webui/*.html.

Currently if the user enters invalid values, pilot will simply return a HTTP error. Ideally, we should perform validation on the form using javascript, and also return any errors relating to user input back to the user.

I'll continue to give you more PRs as this is developed, and likewise would be happy to receive PRs from you if you work on it. :-)

Copy link
Contributor

@kevinelliott kevinelliott left a comment

Choose a reason for hiding this comment

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

Not a bad first pass @mikenye ... I like that it's in Go (some kind of optimized static binary asset). I have some opinions that might impact in the future, but for now this is a nice addition to start moving us forward. Thank you!

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.

None yet

2 participants