Add heimdall

This commit is contained in:
Jake Howard 2020-10-07 14:09:23 +01:00
parent e9f61070f8
commit 7f09db5d20
Signed by: jake
GPG Key ID: 57AFB45680EDD477
5 changed files with 48 additions and 0 deletions

View File

@ -44,6 +44,7 @@
- grafana
- gitlab
- scrutiny
- heimdall
- hosts: walker
roles:

View File

@ -0,0 +1,18 @@
version: "2.3"
services:
heimdall:
image: linuxserver/heimdall:latest
environment:
- PUID={{ docker_user.id }}
- PGID={{ docker_user.id }}
- TZ=Europe/London
restart: unless-stopped
volumes:
- "{{ app_data_dir }}/heimdall/:/config"
labels:
- traefik.enable=true
- traefik.http.routers.heimdall.rule=Host(`jakehoward.tech`)
- traefik.http.routers.heimdall.tls.certresolver=le
- traefik.http.services.heimdall-heimdall.loadbalancer.server.port=443
- traefik.http.services.heimdall-heimdall.loadbalancer.server.scheme=https

View File

@ -0,0 +1,4 @@
- name: restart heimdall
shell:
chdir: /opt/heimdall
cmd: "{{ docker_update_command }}"

View File

@ -0,0 +1,17 @@
- name: Create install directory
file:
path: /opt/heimdall
state: directory
owner: "{{ docker_user.name }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install compose file
template:
src: files/docker-compose.yml
dest: /opt/heimdall/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
notify: restart heimdall
become: true

View File

@ -155,3 +155,11 @@ resource "cloudflare_record" "jakehowardtech_grafana" {
type = "A"
ttl = 1
}
resource "cloudflare_record" "jakehowardtech_apex" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "@"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}