ohowl

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

TODO:

  • Consul/Vault storage
  • cert revocation

Oh, Owl!

Hetzner Cloud utils

Usage

Get metadata

owl hcloud metadata # => {"id":"12345","hostname":"name","ip":"10.0.1.11","public_ip":"X.Y.Z.W"}

Wait for private IP to be assigned (30x every 10s)

owl hcloud wait

Template rendering (generic)

owl tpl render /tmp/consul.json \
    ip=$(owl hcloud metadata | jq -r .ip) \
    node_name=$(owl hcloud metadata | jq -r .hostname) \
    > /opt/consul/config/default.json

TLS

Issues, renews and lists certificates using Let's Encrypt (based on lego library ⭐). Uses pluggable storage system.

Issue/Renew certificate (when testing use debug=true)

owl hcloud tls issue
    token=$HCLOUD_DNS_TOKEN
    email=you@example.com
    domains=*.ohowl.dev,ohowl.dev
    cert-path=/tmp
    cert-storage=fs|consul|vault
    account-path=/tmp
    account-storage=fs|consul|vault
    debug=true

owl hcloud tls renew
   ... # same params

List certificates

owl hcloud tls list cert-path=/tmp cert-storage=fs|consul|vault

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL