Skip to main content

Proxmox Hetzner Autoconfigure

Takes over where the Hetzner installimage left off

About This Project

This is a command line dialog based tool to help configure a freshly installed Proxmox host node on a Hetzner dedicated server.

If you haven't yet installed Proxmox on your Hetzner server, start here: Installing Proxmox on Hetzner, then use this tool to help configure the rest.

The application will ask you a series of questions to ascertain how you'd like your server to be setup, and output a neat, well documented boostrap.sh script you can execute on your Proxmox host to configure things like Networking, Storage, and TLS.

Things this project will help configure and whether they are implemented yet:

  • Setting up the Network
    • Routed topology where you have purchased an additional subnet
    • Routed topology where you have purchased separate IPs
    • Bridged topology where you have purchased an additional subnet
    • Bridged topology where you have purchased separate IPs
    • Single IP (port forwarding, SNI)
  • TLS with LetsEncrypt / ACME
  • Mounting a Hetzner Storage Box
  • Setting up LMV-Thin
  • DNS and DHCP (DNSMasq)
  • Wireguard
  • Scheduled Backups

Hopefully this script saves some people some time. I'll try and update it as I learn new and better ways to do things with Proxmox.

Screenshot

Getting Started

To install the binary locally follow these steps:

Prerequisites

Needs a dialog like program in your search path. This is available on most Linux operating systems through the native package managers and on MacOS through brew. Windows users might have more trouble, although running through WSL or a VM would work.

You also need Python 3.6 or above and pip, if they're not already installed.

For example, on Debian:

$ apt install dialog python3-pip

Installation

  1. Install the package using the python3 version of pip.
$ pip3 install proxmox_hetzner_autoconfigure

Usage

$ proxmox_hetzner_autoconfigure

Then follow the instructions. The application does not need to be run as root and will not make any changes to your system. It also does not need to be run on your Proxmox host node. It's better to run it locally and not pollute your host node with unnecessary dependencies.

It will ask you a series of questions using the venerable dialog application to ascertain how you would like your Proxmox system setup, and then output a simple shell (Bash) script boostrap.sh that can be run on your Proxmox host node.

bootstrap.sh has no dependencies and can easily be added to source control to document your system setup and for disaster recovery scenarios.

Development Setup

$ git clone https://github.com/johnknott/proxmox-hetzner-autoconfigure.git
  • From within the project directory, fetch the dependencies using poetry.
$ poetry install
  • From within the project directory, run the application using poetry.
$ poetry run proxmox-hetzner-autoconfigure 
  • From within the project directory, run the test-suite using poetry.
$ poetry run pytest

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

John Knott - @johndknott - john.knott@gmail.com

Project Link: https://github.com/johnknott/proxmox-hetzner-autoconfigure

Metadata

Release files for proxmox-hetzner-autoconfigure 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proxmox-hetzner-autoconfigure 0.2.0
File Size Uploaded Provenance Actions
proxmox-hetzner-autoconfigure-0.2.0.tar.gz 16.5 kB Without provenance Details for proxmox-hetzner-autoconfigure-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proxmox-hetzner-autoconfigure 0.2.0
File Interpreter ABI Platform Actions
proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl Python 3 none any Details for proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl

Total release size: 42.1 kB

Release files / proxmox-hetzner-autoconfigure-0.2.0.tar.gz

Download URL proxmox-hetzner-autoconfigure-0.2.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
86214320d905e402f91a64d36fce4adecf9ba3a67921f1dfe3a514c761d7706d
BLAKE2b-256 checksum
How to use checksums
6f20ab54dd286da2b09197b16decd0771e8770d21e706361341c16461e105df7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.2 Darwin/20.3.0

Release files / proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl

Download URL proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl
Size 25.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43ec59bdaf0e3bc94b6e649b47e1bbe3b5cf4b901db164ec2af498775ca53d1a
BLAKE2b-256 checksum
How to use checksums
f78f22789120364df52b2a29130f1319b9ebbe51bb5a29e51cac6180a675e167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.2 Darwin/20.3.0

Security for proxmox-hetzner-autoconfigure 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page