Add pilot from plane.watch/planefeeder #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thepilot
binary to be located at/opt/pilot/pilot
.Pilot expects that
netplan
is installed, and will usenetworkd
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. :-)