Skip to content
A Pallet crate to work with dedicated servers at Hetzner data centre.
Clojure
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
resources/hetzner
src/hetzner_crate
test/hetzner_crate
.gitignore
README.md Fix up how we deal with private ip/hostname. Jan 15, 2013
project.clj

README.md

hetzner-crate

A Pallet crate to work with dedicated servers at Hetzner data centre.

A few utility functions to initialize a freshly provisioned dedicated Ubuntu server at Hetzner assuming all you have is the machine's IP and first root password appointed by Hetzner.

It let's you:

  • set the machine's timezone
  • set the root password to something you have chosen
  • set the machine's hostname and update /etc/hosts
  • prepare an admin user for use with pallet

Usage

hetzner-crate uses pallet-nodelist-helpers and the format of hosts-config, apart from the standard ones, are:

{"host.to.configure" {:first-rootpass "appointed password"
                      :rootpass "chosen password"
                      :timezone "Etc/UTC"
                      :ip "1.2.3.4"
                      :private-ip "10.1.1.1" ;; optional
                      :private-hostname "host-int.to.configure" ;;optional }}

The hetzner-crate/api namespace provides a utility function hetzner-initial-setup:

(hetzner-initial-setup "hostname.to.set.up")

There's a server spec included called hetzner-server in the hetzner-crate/specs namespace with a phase hetzner-bootstrap that you can use and that hetzner-initial-setup relies on.

License

Copyright © 2013 Board Intelligence

Distributed under the MIT License, see http://boardintelligence.mit-license.org for details.

Something went wrong with that request. Please try again.