Skip to main content

Helps to configure Proxmox on Hetzner. Takes over where Hetzner installimage left off

Project description


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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

proxmox-hetzner-autoconfigure-0.2.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file proxmox-hetzner-autoconfigure-0.2.0.tar.gz.

File metadata

File hashes

Hashes for proxmox-hetzner-autoconfigure-0.2.0.tar.gz
Algorithm Hash digest
SHA256 86214320d905e402f91a64d36fce4adecf9ba3a67921f1dfe3a514c761d7706d
MD5 e37f93571bf3f8471078d7772c45a998
BLAKE2b-256 6f20ab54dd286da2b09197b16decd0771e8770d21e706361341c16461e105df7

See more details on using hashes here.

File details

Details for the file proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for proxmox_hetzner_autoconfigure-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 43ec59bdaf0e3bc94b6e649b47e1bbe3b5cf4b901db164ec2af498775ca53d1a
MD5 78972e32708303e1642ba8a61970268f
BLAKE2b-256 f78f22789120364df52b2a29130f1319b9ebbe51bb5a29e51cac6180a675e167

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page