Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.