Git Product home page Git Product logo

preseeder's Introduction

preseeder

preseeder is a simple service serving Debian Preseed files 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/<hostname>.

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, 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:

docker run --name preseeder -v $(pwd)/preseeds:/data -p 3000:3000 <you docker tag>

preseeder's People

Contributors

riesinger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.