Adds home-assistant
Trying to run https://hackaday.com/2021/07/24/esp8266-adds-wifi-logging-to-ikeas-air-quality-sensor/
Diff
main.tf | 4 ++++
home-assistant/main.tf | 24 ++++++++++++++++++++++++
modules/container/main.tf | 2 ++
modules/container/vars.tf | 5 +++++
4 files changed, 35 insertions(+)
@@ -91,6 +91,10 @@
source = "./digitalocean"
}
module "home-assistant" {
source = "./home-assistant"
}
module "mastodon" {
source = "./mastodon"
db-password = data.pass_password.mastodon-db-password.password
@@ -1,0 +1,24 @@
module "home-assistant" {
name = "home-assistant"
source = "../modules/container"
image = "ghcr.io/home-assistant/home-assistant:stable"
resource = {
memory = 1024
memory_swap = 1024
}
env = [
"TZ=Asia/Kolkata",
]
network_mode = "host"
volumes = [
{
container_path = "/config"
host_path = "/mnt/zwing/config/home-assistant"
},
]
}
@@ -17,6 +17,8 @@
entrypoint = var.entrypoint
user = var.user
privileged = var.privileged
network_mode = var.network_mode
gpus = var.gpu ? "all" : ""
@@ -102,6 +102,11 @@
default = {}
}
variable "privileged" {
description = " If true, the container runs in privileged mode."
default = false
}
variable "capabilities" {
description = "capabilities"