I hereby claim:
- I am langerma on github.
- I am langerma (https://keybase.io/langerma) on keybase.
- I have a public key whose fingerprint is 4521 3324 64EA E917 15AD 775E 1468 0C5B FA78 9C2C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# tmux options | |
set-option -g default-terminal "screen-256color" | |
set-option -g mouse on | |
#set -g status-justify "centre" | |
set -g status "on" | |
set -g status-attr "none" | |
set -g status-left-attr "none" | |
set -g status-right-attr "none" | |
setw -g window-status-attr "none" |
job "homeassistant" { | |
datacenters = ["morsegasse"] | |
type = "service" | |
update { | |
max_parallel = 1 | |
min_healthy_time = "10s" | |
healthy_deadline = "6m" | |
progress_deadline = "10m" | |
auto_revert = false | |
canary = 0 |
langerma@macbookpro:~/repos/ansible/langerma.tsdb|master⚡ ⇒ cat nomad.yml | |
- hosts: nomad_instances | |
become: true | |
vars: | |
nomad_version: 0.12.1 | |
tasks: | |
- name: import nomad | |
import_role: | |
name: ansible-nomad | |
- name: Start nomad |
job "search" { | |
datacenters = [ | |
"dc1" | |
] | |
type = "service" | |
update { | |
stagger = "10s" | |
max_parallel = 1 | |
} |
# Hashicorp At Home - A series of blog posts by Mockingbird Consulting | |
# Read the original at https://www.mockingbirdconsulting.co.uk/blog/2019-01-05-hashicorp-at-home/ | |
# | |
# This code is licensed under the MIT License, and remains the copyright of Mockingbird Consulting Ltd. | |
# This configuration will launch homeassistant.io and have it hosted at homeassistant.service.consul | |
# (assuming the default domain of .consul has been retained from the original articles). | |
# | |
# Configuration for HomeAssistant will be saved to the host machine in /srv/home_assistant/config, | |
# so if you have an existing HomeAssistant configuration you should be able to drop the files in to |
job "traefik" { | |
datacenters = ["morsegasse"] | |
type = "system" | |
group "loadbalancers" { | |
#constraint { | |
# attribute = "${meta.worker}" | |
# value = "pine" | |
# } | |
count = 1 |
#!/bin/sh | |
op="${1:-op}" | |
mac="${2:-mac}" | |
ip="${3:-ip}" | |
hostname="${4}" | |
discovery="dhcp-$(echo ${mac} | sed -e s/://g)-tracker" | |
macvendor="$(echo ${mac} | tr -d ':' | head -c 6 | tr '[:lower:]' '[:upper:]')" | |
#vendor="$(grep '${macvendor}' /usr/local/bin/oui.txt | cut -d')' -f2 | tr -d '\t')" | |
#vendor="$(grep '${macvendor}' /usr/local/bin/oui.txt)" |
job "update-certs" { | |
datacenters = ["hetzner"] | |
type = "batch" | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} |
job "loki" { | |
datacenters = ["hetzner"] | |
type = "service" | |
group "loki-distributor" { | |
count = 2 | |
network { | |
dns { | |
servers = ["169.254.1.1"] |