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 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 traefik_proxy_protocol_trusted_ips: 10.23.0.0/16

View file

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

View file

@ -13,4 +13,4 @@ services:
- /:/source:ro - /:/source:ro
restart: unless-stopped restart: unless-stopped
ports: 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_influx_db_dir: ./influxdb
traefik_proxy_protocol_trusted_ips: "{{ wireguard.cidr }}" traefik_proxy_protocol_trusted_ips: "{{ wireguard.cidr }}"

View file

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

View file

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