Install duplicati on PVE docker machine

Requires some changes to how private IPs are specified, which I really need to clean up at some point!
This commit is contained in:
Jake Howard 2021-01-20 21:38:01 +00:00
parent f6c176d2f0
commit 0f9802a46c
Signed by: jake
GPG Key ID: 57AFB45680EDD477
7 changed files with 11 additions and 7 deletions

View File

@ -0,0 +1,2 @@
private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}"
protected_ip: "{{ private_ip }}"

View File

@ -1,5 +1,7 @@
expose_ssh: true
traefik_private_ip: "{{ ansible_default_ipv4.address }}"
private_ip: "{{ ansible_default_ipv4.address }}"
protected_ip: 192.168.2.47
traefik_proxy_protocol_trusted_ips: 10.23.0.0/16

View File

@ -49,6 +49,7 @@
- gitlab
- heimdall
- gitea
- duplicati
- hosts: walker
roles:

View File

@ -13,4 +13,4 @@ services:
- /:/source:ro
restart: unless-stopped
ports:
- "{{ wireguard.clients[ansible_fqdn].ip }}:8200:8200"
- "{{ protected_ip }}:8200:8200"

View File

@ -1,4 +1,3 @@
traefik_private_ip: "{{ wireguard.clients[ansible_fqdn].ip }}"
traefik_influx_db_dir: ./influxdb
traefik_proxy_protocol_trusted_ips: "{{ wireguard.cidr }}"

View File

@ -19,8 +19,8 @@ services:
volumes:
- "{{ traefik_influx_db_dir }}:/var/lib/influxdb"
ports:
- "{{ traefik_private_ip }}:38089:8089/udp"
- "{{ traefik_private_ip }}:38086:8086"
- "{{ private_ip }}:38089:8089/udp"
- "{{ private_ip }}:38086:8086"
environment:
- INFLUXDB_DB=traefik
- INFLUXDB_HTTP_AUTH_ENABLED=

View File

@ -15,7 +15,7 @@ entryPoints:
trustedIPs:
- "{{ traefik_proxy_protocol_trusted_ips }}"
traefik:
address: "{{ traefik_private_ip }}:8080"
address: "{{ private_ip }}:8080"
ping: {}
@ -53,7 +53,7 @@ serversTransport:
metrics:
influxDB:
address: "{{ traefik_private_ip }}:38089"
address: "{{ private_ip }}:38089"
database: traefik
pushInterval: 30s