Add heimdall
This commit is contained in:
parent
e9f61070f8
commit
7f09db5d20
5 changed files with 48 additions and 0 deletions
|
@ -44,6 +44,7 @@
|
||||||
- grafana
|
- grafana
|
||||||
- gitlab
|
- gitlab
|
||||||
- scrutiny
|
- scrutiny
|
||||||
|
- heimdall
|
||||||
|
|
||||||
- hosts: walker
|
- hosts: walker
|
||||||
roles:
|
roles:
|
||||||
|
|
18
ansible/roles/heimdall/files/docker-compose.yml
Normal file
18
ansible/roles/heimdall/files/docker-compose.yml
Normal 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
|
4
ansible/roles/heimdall/handlers/main.yml
Normal file
4
ansible/roles/heimdall/handlers/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
- name: restart heimdall
|
||||||
|
shell:
|
||||||
|
chdir: /opt/heimdall
|
||||||
|
cmd: "{{ docker_update_command }}"
|
17
ansible/roles/heimdall/tasks/main.yml
Normal file
17
ansible/roles/heimdall/tasks/main.yml
Normal 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
|
|
@ -155,3 +155,11 @@ resource "cloudflare_record" "jakehowardtech_grafana" {
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = 1
|
ttl = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "jakehowardtech_apex" {
|
||||||
|
zone_id = cloudflare_zone.jakehowardtech.id
|
||||||
|
name = "@"
|
||||||
|
value = vultr_server.casey.main_ip
|
||||||
|
type = "A"
|
||||||
|
ttl = 1
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue