proxomox-home-assistant/home-assistant-user-data.yml
2026-02-16 23:50:20 +02:00

43 lines
1.1 KiB
YAML

#cloud-config
users:
- name: homeadmin
ssh-authorized-keys:
- ssh-ed25519 A... e@d
sudo: ALL=(ALL) NOPASSWD:ALL
groups: sudo, wheel
shell: /bin/bash
package_update: true
package_upgrade: true
packages:
- yum-utils
- device-mapper-persistent-data
- lvm2
- kernel-modules-extra
- iptables-services
timezone: UTC
runcmd:
- dnf install -y kernel-modules-extra-$(uname -r)
- dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
- dnf install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
- systemctl enable --now docker
- mkdir -p /opt/homeassistant
- cd /opt/homeassistant && docker compose up -d
write_files:
- path: /opt/homeassistant/docker-compose.yaml
content: |
services:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /opt/homeassistant/config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
privileged: true
network_mode: host