https://github.com/riesinger/preseeder
https://github.com/riesinger/preseeder
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/riesinger/preseeder
- Owner: riesinger
- Created: 2020-10-03T13:48:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T14:07:06.000Z (over 5 years ago)
- Last Synced: 2024-12-31T12:26:56.059Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# preseeder
preseeder is a simple service serving [Debian Preseed
files](//https://wiki.debian.org/DebianInstaller/Preseed) for use when setting
up your home lab, cloud infrastructure, personal machine or local VM.
It features a simple templating mechanism, so you can serve customized preseeds
via a single HTTP endpoint.
## Installation
Since preseeder is written in Go, you can do a simple `go get
github.com/riesinger/preseeder/cmd/preseeder` to install it locally.
Alternatively, you're able to `git clone` this repository and run `go build
./cmd/preseeder`.
Furthermore, a `Dockerfile` is provided, so you could also build preseeder via
Docker.
## Usage
After starting preseeder, it will listen to HTTP requests on Port `3000`.
You can now request preseeds via a call to `127.0.0.1:3000/preseed/`.
The hostname of the machine is the primary means of differentiating between
preseed templates. By default, a preseed template called `_default_` will be
served from `./preseeds`. If a template with the same name as `hostname` is
present, it will be served instead of the default preseed.
Since the templates use the power of [Go
Templates](https://golang.org/pkg/text/template/), you can already configure a
lot of different things using the hostname for differentiation.
### Docker
The Docker container reads preseed templates from the `/data` directory, so you
could use the container something like this:
```sh
docker run --name preseeder -v $(pwd)/preseeds:/data -p 3000:3000
```