Skip to content

Commit

Permalink
Cloud home-assistant and wyze bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbovbel committed Jun 27, 2024
1 parent 14e71cb commit f3bd989
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 77 deletions.
38 changes: 5 additions & 33 deletions inventory/bovbel/host_vars/media.bovbel.com.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ zfs_pool: storage
# TODO(pbovbel) expose RDP over tailnet, and game server over WAN
aws_alias_domains:
- tower.bovbel.com
- homeassistant.bovbel.com

docker_extras:
services:
Expand Down Expand Up @@ -59,39 +58,12 @@ docker_extras:
x-systemd-requires: ['storage.mount']
jackett:
x-systemd-requires: ['storage.mount']
enshrouded:
image: sknnr/enshrouded-dedicated-server:proton-latest
container_name: enshrouded
networks:
- apps
environment:
SERVER_NAME: BraveNewWorldTwo
SERVER_PASSWORD: "{{ enshrouded_server_password }}"
SERVER_SLOTS: 16
ports:
- "15636:15636/udp"
- "15636:15636/tcp"
- "15637:15637/udp"
- "15637:15637/tcp"
volumes:
- "{{ app_folder }}/enshrouded:/home/steam/enshrouded"
restart: "no"
x-systemd-enabled: false
x-systemd-requires: ['storage.mount']

upnp_forwards_extras:
enshrouded1: {from: 15636, to: 15636, proto: tcp}
enshrouded2: {from: 15636, to: 15636, proto: udp}
enshrouded3: {from: 15637, to: 15637, proto: tcp}
enshrouded4: {from: 15637, to: 15637, proto: udp}

enshrouded_server_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
35623830653934623634353863353134386531613638316633353233663861376265653835343265
3965663735653263346137393931366239363930333564650a383764383564633761666531396630
62336134363635623765353266323732346261356437363835663662373232303264346464633964
3637396338643166390a636633613930386338623335616635393636366666356338633530626364
3563
# upnp_forwards_extras:
# enshrouded1: {from: 15636, to: 15636, proto: tcp}
# enshrouded2: {from: 15636, to: 15636, proto: udp}
# enshrouded3: {from: 15637, to: 15637, proto: tcp}
# enshrouded4: {from: 15637, to: 15637, proto: udp}

caddy_extras:
users:
Expand Down
6 changes: 0 additions & 6 deletions roles/caddy/templates/Caddyfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,3 @@

{% endfor %}
}

{% for subdomain in caddy.subdomains.values() %}

# TODO(pbovbel) implement

{% endfor %}
67 changes: 38 additions & 29 deletions roles/homeassistant/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,45 @@ docker_homeassistant:
volumes:
- "{{ app_folder }}/matter-server:/data"
- /run/dbus:/run/dbus:ro
whisper:
container_name: whisper
image: rhasspy/wyoming-whisper
wyze-bridge:
container_name: wyze-bridge
networks:
- apps
image: mrlt8/wyze-bridge:latest
restart: "no"
volumes:
- "{{ app_folder }}/whisper:/data"
ports:
- 10300:10300
command: --model tiny-int8 --language en
piper:
container_name: piper
image: rhasspy/wyoming-piper
networks:
- apps
restart: "no"
volumes:
- "{{ app_folder }}/piper:/data"
ports:
- 10200:10200
command: --voice en_US-lessac-medium


caddy_homeassistant:
subdomains:
homeassistant:
type: proxy
auth: null
subdomain: homeassistant.bovbel.com
host: media.bovbel.com
port: 8123
role: admin
- 1935:1935 # RTMP
- 8554:8554 # RTSP
- 8888:8888 # HLS
- 8889:8889 #WebRTC
- 8189:8189/udp # WebRTC/ICE
- 5000:5000 # WEB-UI
environment:
WYZE_EMAIL: "{{ ansible_email }}"
WYZE_PASSWORD: !vault |
$ANSIBLE_VAULT;1.1;AES256
63666331623761326537613530666430663334346661333664646532383034393766343230613434
3935356335666531356434393133303166313030306464390a353432636134383365313031353761
30626362383339363936393336343431633033363139343461656163313464393536353362333063
3562636133373866330a663261376230663462353833333632366532333465306365353164396462
6436
API_ID: !vault |
$ANSIBLE_VAULT;1.1;AES256
30383136363165643766646237336131303761366264366364616663356262363961643538373838
3637623038363132626239373633353365363166333938660a383538626631376532316537303031
35626266313339623034656137396539666432376331303134346535383162343331323134363162
6337316537363262620a643963613334633665663663383939386536336437343835653162303630
61396439363163393337636536653565323033336539383165353937323337306462363532623364
3033613535616633636562636633323838306366326565356263
API_KEY: !vault |
$ANSIBLE_VAULT;1.1;AES256
64666466343432353630323661633637366362666538313836366663363436623363623330356131
3336383034376639643735626631383836313430663832300a323564326565346236663435363663
61333332333435396134383663636164313238616465663664326435633332386366336236633363
3032336338323061390a366366633131336431333036303166376536613462353635323834316466
64613135613165383965303434633639343430303731633831316634616130643837653432386666
31623435633338343232323861383166636363303833386263666436613134623739326330633562
613165303466366133663762343532353430
WB_AUTH: true
WB_USERNAME: "{{ ansible_user }}"
WB_PASSWORD: "{{ web_password }}"
1 change: 0 additions & 1 deletion roles/homeassistant/meta/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
dependencies:
- docker
- caddy
8 changes: 0 additions & 8 deletions roles/homeassistant/tasks/00-homeassistant.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
---
- name: configure homeassistant caddy
set_fact:
caddy: "{{ caddy | combine(caddy_homeassistant, recursive=True, list_merge='append') }}"
cacheable: true
changed_when: true
notify: configure caddy
tags: caddy

- name: configure homeassistant docker
set_fact:
docker: "{{ docker | combine(docker_homeassistant, recursive=True, list_merge='append') }}"
Expand Down

0 comments on commit f3bd989

Please sign in to comment.