diff --git a/mqtt-exporter.tf b/mqtt-exporter.tf index ee436be..2d679d0 100644 --- a/mqtt-exporter.tf +++ b/mqtt-exporter.tf @@ -1,5 +1,5 @@ data "docker_registry_image" "mqtt-exporter" { - name = "fhemberger/mqtt_exporter:1.2.1" + name = "fhemberger/mqtt_exporter:latest" } resource "docker_image" "mqtt-exporter" { diff --git a/node-red.tf b/node-red.tf index 0587feb..8edab48 100644 --- a/node-red.tf +++ b/node-red.tf @@ -1,5 +1,5 @@ data "docker_registry_image" "node-red" { - name = "nodered/node-red:latest-12" + name = "nodered/node-red:latest" } resource "docker_image" "node-red" { diff --git a/terraform.tfstate b/terraform.tfstate index ace6182..57f5335 100644 --- a/terraform.tfstate +++ b/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.5.5", - "serial": 2373, + "serial": 2383, "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "outputs": {}, "resources": [ @@ -140,10 +140,10 @@ { "schema_version": 0, "attributes": { - "id": "sha256:85437ddda8167683e001fcbb1371380b1ac774ba3438fbd1d963ac6d3807b364", + "id": "sha256:ef71fd5fc8e7e873091e2ace4b4f49cc87107c5608ca756eaf8551f3f18f8c9a", "insecure_skip_verify": false, - "name": "fhemberger/mqtt_exporter:1.2.1", - "sha256_digest": "sha256:85437ddda8167683e001fcbb1371380b1ac774ba3438fbd1d963ac6d3807b364" + "name": "fhemberger/mqtt_exporter:latest", + "sha256_digest": "sha256:ef71fd5fc8e7e873091e2ace4b4f49cc87107c5608ca756eaf8551f3f18f8c9a" }, "sensitive_attributes": [] } @@ -194,10 +194,10 @@ { "schema_version": 0, "attributes": { - "id": "sha256:7b8e58892801f01af48acfb18c21b845a6f35029e7654ca6e19ba86bbe810d04", + "id": "sha256:5fd729fce9b787903e2b443a2fc052c6253b737ca38e65df7b843cd4170bdb5c", "insecure_skip_verify": false, - "name": "nodered/node-red:latest-12", - "sha256_digest": "sha256:7b8e58892801f01af48acfb18c21b845a6f35029e7654ca6e19ba86bbe810d04" + "name": "nodered/node-red:latest", + "sha256_digest": "sha256:5fd729fce9b787903e2b443a2fc052c6253b737ca38e65df7b843cd4170bdb5c" }, "sensitive_attributes": [] } @@ -1034,9 +1034,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "/init" @@ -1044,8 +1044,8 @@ "env": [], "exit_code": null, "gpus": null, - "group_add": null, - "healthcheck": null, + "group_add": [], + "healthcheck": [], "host": [], "hostname": "hass", "id": "a56e8489265ddf5c359a98672abf5a58784151ebac6297d4c0dc246170249fae", @@ -1065,7 +1065,7 @@ "mounts": [ { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/home-assistant", "target": "/config", "tmpfs_options": [], @@ -1076,16 +1076,6 @@ "must_run": true, "name": "home-assistant", "network_data": [ - { - "gateway": "172.29.0.1", - "global_ipv6_address": "", - "global_ipv6_prefix_length": 0, - "ip_address": "172.29.0.5", - "ip_prefix_length": 22, - "ipv6_gateway": "", - "mac_address": "02:42:ac:1d:00:05", - "network_name": "mariadb" - }, { "gateway": "192.168.2.1", "global_ipv6_address": "", @@ -1095,6 +1085,16 @@ "ipv6_gateway": "", "mac_address": "02:42:c0:60:e3:c6", "network_name": "terraform-static-eth1-shared" + }, + { + "gateway": "172.29.0.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "172.29.0.5", + "ip_prefix_length": 22, + "ipv6_gateway": "", + "mac_address": "02:42:ac:1d:00:05", + "network_name": "mariadb" } ], "network_mode": "default", @@ -1127,11 +1127,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "", "userns_mode": "", @@ -1176,9 +1182,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "docker-entrypoint.sh" @@ -1186,8 +1192,8 @@ "env": [], "exit_code": null, "gpus": null, - "group_add": null, - "healthcheck": null, + "group_add": [], + "healthcheck": [], "host": [], "hostname": "4c76a6a78dad", "id": "4c76a6a78dad7f849e48c52215e9396b973c7ec5630d341b9516729ff14ba9a1", @@ -1207,7 +1213,7 @@ "mounts": [ { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/mariadb", "target": "/var/lib/mysql", "tmpfs_options": [], @@ -1218,16 +1224,6 @@ "must_run": true, "name": "mariadb", "network_data": [ - { - "gateway": "192.168.2.1", - "global_ipv6_address": "", - "global_ipv6_prefix_length": 0, - "ip_address": "192.168.2.127", - "ip_prefix_length": 24, - "ipv6_gateway": "", - "mac_address": "02:42:77:5f:91:b8", - "network_name": "terraform-static-eth1-shared" - }, { "gateway": "172.29.0.1", "global_ipv6_address": "", @@ -1237,6 +1233,16 @@ "ipv6_gateway": "", "mac_address": "02:42:ac:1d:00:03", "network_name": "mariadb" + }, + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.127", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:77:5f:91:b8", + "network_name": "terraform-static-eth1-shared" } ], "network_mode": "default", @@ -1269,11 +1275,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "", "userns_mode": "", @@ -1461,9 +1473,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": [], - "dns_opts": [], - "dns_search": [], + "dns": null, + "dns_opts": null, + "dns_search": null, "domainname": "", "entrypoint": [ "/usr/local/bin/python3", @@ -1473,12 +1485,12 @@ "env": [], "exit_code": null, "gpus": null, - "group_add": [], - "healthcheck": [], + "group_add": null, + "healthcheck": null, "host": [], - "hostname": "27672cf973e9", - "id": "27672cf973e92836dce136a1d70324a58a09df508b517681543a550493037764", - "image": "sha256:ba9a5f12f019b77932c510aa84777db5124792a2514d24ae33827e02ef318d3e", + "hostname": "43e76bd9fbac", + "id": "43e76bd9fbac8de79157c0b5837d4bed5db848f5c17aed25a29666e7809eb3cd", + "image": "sha256:8b5fc8974c97425cb135754d5c42202edc1430f48f69ed4cb963ecd58ee2f01d", "init": false, "ipc_mode": "private", "labels": [], @@ -1494,7 +1506,7 @@ "mounts": [ { "bind_options": [], - "read_only": false, + "read_only": null, "source": "/share/appdata/mqtt-exporter", "target": "/usr/src/app/conf", "tmpfs_options": [], @@ -1512,7 +1524,7 @@ "ip_address": "192.168.2.123", "ip_prefix_length": 24, "ipv6_gateway": "", - "mac_address": "02:42:93:4f:5b:04", + "mac_address": "02:42:d1:95:88:28", "network_name": "terraform-static-eth1-shared" } ], @@ -1540,17 +1552,11 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": {}, - "sysctls": {}, - "tmpfs": {}, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, "tty": false, - "ulimit": [ - { - "hard": 65535, - "name": "nofile", - "soft": 65535 - } - ], + "ulimit": [], "upload": [], "user": "mqtt_exporter", "userns_mode": "", @@ -1761,8 +1767,8 @@ "group_add": null, "healthcheck": null, "host": [], - "hostname": "90ea3dfb8c6b", - "id": "90ea3dfb8c6b11e645264d4c158c79cd98e124c734d59e281c96e24616596571", + "hostname": "e6f870030e03", + "id": "e6f870030e035dbb2087eabf8a025240cc64b2b21afc8ddffed40fe4324e21a1", "image": "sha256:2924483b97117b89533467838db8694811f77fbbc292330b668f768a8798f19a", "init": false, "ipc_mode": "private", @@ -1868,27 +1874,19 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": [], - "dns_opts": [], - "dns_search": [], + "dns": null, + "dns_opts": null, + "dns_search": null, "domainname": "", "entrypoint": [ - "npm", - "--no-update-notifier", - "--no-fund", - "start", - "--cache", - "/data/.npm", - "--", - "--userDir", - "/data" + "./entrypoint.sh" ], "env": [ "TZ=Europe/Amsterdam" ], "exit_code": null, "gpus": null, - "group_add": [], + "group_add": null, "healthcheck": [ { "interval": "0s", @@ -1902,9 +1900,9 @@ } ], "host": [], - "hostname": "441be550ea36", - "id": "441be550ea366dd7066957711ca9e11926294b60b3599d627b67b3ed6e8a60c9", - "image": "sha256:c77c1368defc95f168c0af42782e03cc96cbd8feeb012af093ab3b17a9e2b455", + "hostname": "7af51313c568", + "id": "7af51313c568187aaef441cbbefde4c8d733537b5d56e20b48dc0ec3ec0ff335", + "image": "sha256:c18405a7344409fafea74695d2ad912b2e867a0d84ff16ef494d16bfb52643f4", "init": false, "ipc_mode": "private", "labels": [], @@ -1920,7 +1918,7 @@ "mounts": [ { "bind_options": [], - "read_only": false, + "read_only": null, "source": "/share/appdata/node-red", "target": "/data", "tmpfs_options": [], @@ -1938,7 +1936,7 @@ "ip_address": "192.168.2.124", "ip_prefix_length": 24, "ipv6_gateway": "", - "mac_address": "02:42:1a:43:24:52", + "mac_address": "02:42:12:48:59:19", "network_name": "terraform-static-eth1-shared" } ], @@ -1966,17 +1964,11 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": {}, - "sysctls": {}, - "tmpfs": {}, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, "tty": false, - "ulimit": [ - { - "hard": 65535, - "name": "nofile", - "soft": 65535 - } - ], + "ulimit": [], "upload": [], "user": "node-red", "userns_mode": "", @@ -2844,9 +2836,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "/init" @@ -2856,8 +2848,8 @@ ], "exit_code": null, "gpus": null, - "group_add": null, - "healthcheck": null, + "group_add": [], + "healthcheck": [], "host": [], "hostname": "ef40afc4b720", "id": "ef40afc4b720dacd5cc7351490bcaa3140d1139af407d2ba779bd531b8b7e2de", @@ -2877,7 +2869,7 @@ "mounts": [ { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/smokeping/config", "target": "/config", "tmpfs_options": [], @@ -2886,7 +2878,7 @@ }, { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/smokeping/data", "target": "/data", "tmpfs_options": [], @@ -2932,11 +2924,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "", "userns_mode": "", @@ -2975,9 +2973,9 @@ "cpu_shares": 0, "destroy_grace_seconds": null, "devices": [], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "/init" @@ -2985,8 +2983,8 @@ "env": [], "exit_code": null, "gpus": null, - "group_add": null, - "healthcheck": null, + "group_add": [], + "healthcheck": [], "host": [], "hostname": "28ca6475c6c8", "id": "28ca6475c6c8080b19b25c1cff87d7217811b7bd856487977c57e9bf295d849a", @@ -3006,7 +3004,7 @@ "mounts": [ { "bind_options": [], - "read_only": null, + "read_only": false, "source": "/share/appdata/syncthing", "target": "/config", "tmpfs_options": [], @@ -3052,11 +3050,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "", "userns_mode": "", @@ -3666,9 +3670,9 @@ "permissions": "rwm" } ], - "dns": null, - "dns_opts": null, - "dns_search": null, + "dns": [], + "dns_opts": [], + "dns_search": [], "domainname": "", "entrypoint": [ "docker-entrypoint.sh" @@ -3678,8 +3682,8 @@ ], "exit_code": null, "gpus": null, - "group_add": null, - "healthcheck": null, + "group_add": [], + "healthcheck": [], "host": [], "hostname": "c107eb300dbd", "id": "c107eb300dbd09d12da0f319b2959d011eabffdfabc30063ef57a8ff9dc2b384", @@ -3699,18 +3703,18 @@ "mounts": [ { "bind_options": [], - "read_only": true, - "source": "/run/udev", - "target": "/run/udev", + "read_only": false, + "source": "/share/appdata/zigbee2mqtt", + "target": "/app/data", "tmpfs_options": [], "type": "bind", "volume_options": [] }, { "bind_options": [], - "read_only": null, - "source": "/share/appdata/zigbee2mqtt", - "target": "/app/data", + "read_only": true, + "source": "/run/udev", + "target": "/run/udev", "tmpfs_options": [], "type": "bind", "volume_options": [] @@ -3754,11 +3758,17 @@ "stdin_open": false, "stop_signal": "", "stop_timeout": 0, - "storage_opts": null, - "sysctls": null, - "tmpfs": null, + "storage_opts": {}, + "sysctls": {}, + "tmpfs": {}, "tty": false, - "ulimit": [], + "ulimit": [ + { + "hard": 65535, + "name": "nofile", + "soft": 65535 + } + ], "upload": [], "user": "", "userns_mode": "", @@ -3998,15 +4008,15 @@ "attributes": { "build": [], "force_remove": null, - "id": "sha256:ba9a5f12f019b77932c510aa84777db5124792a2514d24ae33827e02ef318d3efhemberger/mqtt_exporter:1.2.1", - "image_id": "sha256:ba9a5f12f019b77932c510aa84777db5124792a2514d24ae33827e02ef318d3e", + "id": "sha256:8b5fc8974c97425cb135754d5c42202edc1430f48f69ed4cb963ecd58ee2f01dfhemberger/mqtt_exporter:latest", + "image_id": "sha256:8b5fc8974c97425cb135754d5c42202edc1430f48f69ed4cb963ecd58ee2f01d", "keep_locally": null, - "name": "fhemberger/mqtt_exporter:1.2.1", + "name": "fhemberger/mqtt_exporter:latest", "platform": null, "pull_triggers": [ - "sha256:85437ddda8167683e001fcbb1371380b1ac774ba3438fbd1d963ac6d3807b364" + "sha256:ef71fd5fc8e7e873091e2ace4b4f49cc87107c5608ca756eaf8551f3f18f8c9a" ], - "repo_digest": "fhemberger/mqtt_exporter@sha256:85437ddda8167683e001fcbb1371380b1ac774ba3438fbd1d963ac6d3807b364", + "repo_digest": "fhemberger/mqtt_exporter@sha256:ef71fd5fc8e7e873091e2ace4b4f49cc87107c5608ca756eaf8551f3f18f8c9a", "triggers": null }, "sensitive_attributes": [], @@ -4088,15 +4098,15 @@ "attributes": { "build": [], "force_remove": null, - "id": "sha256:c77c1368defc95f168c0af42782e03cc96cbd8feeb012af093ab3b17a9e2b455nodered/node-red:latest-12", - "image_id": "sha256:c77c1368defc95f168c0af42782e03cc96cbd8feeb012af093ab3b17a9e2b455", + "id": "sha256:c18405a7344409fafea74695d2ad912b2e867a0d84ff16ef494d16bfb52643f4nodered/node-red:latest", + "image_id": "sha256:c18405a7344409fafea74695d2ad912b2e867a0d84ff16ef494d16bfb52643f4", "keep_locally": null, - "name": "nodered/node-red:latest-12", + "name": "nodered/node-red:latest", "platform": null, "pull_triggers": [ - "sha256:7b8e58892801f01af48acfb18c21b845a6f35029e7654ca6e19ba86bbe810d04" + "sha256:5fd729fce9b787903e2b443a2fc052c6253b737ca38e65df7b843cd4170bdb5c" ], - "repo_digest": "nodered/node-red@sha256:7b8e58892801f01af48acfb18c21b845a6f35029e7654ca6e19ba86bbe810d04", + "repo_digest": "nodered/node-red@sha256:5fd729fce9b787903e2b443a2fc052c6253b737ca38e65df7b843cd4170bdb5c", "triggers": null }, "sensitive_attributes": [], diff --git a/terraform.tfstate.backup b/terraform.tfstate.backup index 554ae8f..ace6182 100644 --- a/terraform.tfstate.backup +++ b/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 4, "terraform_version": "1.5.5", - "serial": 2356, + "serial": 2373, "lineage": "fcc74498-a461-682e-d8e4-5bc8c6ea51ec", "outputs": {}, "resources": [ @@ -1019,14 +1019,279 @@ "type": "docker_container", "name": "home-assistant", "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", - "instances": [] + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [], + "container_logs": null, + "container_read_refresh_timeout_milliseconds": 15000, + "cpu_set": "", + "cpu_shares": 0, + "destroy_grace_seconds": null, + "devices": [], + "dns": null, + "dns_opts": null, + "dns_search": null, + "domainname": "", + "entrypoint": [ + "/init" + ], + "env": [], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "hass", + "id": "a56e8489265ddf5c359a98672abf5a58784151ebac6297d4c0dc246170249fae", + "image": "sha256:24dfcdb859704681d09aa8000469fb59a3bc3f3396f6ea40f9c2d2189766a63a", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "json-file", + "log_opts": { + "max-file": "10", + "max-size": "10m" + }, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/home-assistant", + "target": "/config", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "home-assistant", + "network_data": [ + { + "gateway": "172.29.0.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "172.29.0.5", + "ip_prefix_length": 22, + "ipv6_gateway": "", + "mac_address": "02:42:ac:1d:00:05", + "network_name": "mariadb" + }, + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.70", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:c0:60:e3:c6", + "network_name": "terraform-static-eth1-shared" + } + ], + "network_mode": "default", + "networks_advanced": [ + { + "aliases": [], + "ipv4_address": "", + "ipv6_address": "", + "name": "mariadb" + }, + { + "aliases": [], + "ipv4_address": "192.168.2.70", + "ipv6_address": "", + "name": "terraform-static-eth1-shared" + } + ], + "pid_mode": "", + "ports": [], + "privileged": false, + "publish_all_ports": false, + "read_only": false, + "remove_volumes": true, + "restart": "always", + "rm": false, + "runtime": "runc", + "security_opts": [], + "shm_size": 64, + "start": true, + "stdin_open": false, + "stop_signal": "", + "stop_timeout": 0, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, + "tty": false, + "ulimit": [], + "upload": [], + "user": "", + "userns_mode": "", + "volumes": [], + "wait": false, + "wait_timeout": 60, + "working_dir": "/config" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "data.docker_registry_image.home-assistant", + "data.docker_registry_image.mariadb", + "docker_container.mariadb", + "docker_image.home-assistant", + "docker_image.mariadb", + "docker_network.bridge", + "docker_network.mariadb" + ] + } + ] }, { "mode": "managed", "type": "docker_container", "name": "mariadb", "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", - "instances": [] + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [ + "mariadbd" + ], + "container_logs": null, + "container_read_refresh_timeout_milliseconds": 15000, + "cpu_set": "", + "cpu_shares": 0, + "destroy_grace_seconds": null, + "devices": [], + "dns": null, + "dns_opts": null, + "dns_search": null, + "domainname": "", + "entrypoint": [ + "docker-entrypoint.sh" + ], + "env": [], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "4c76a6a78dad", + "id": "4c76a6a78dad7f849e48c52215e9396b973c7ec5630d341b9516729ff14ba9a1", + "image": "sha256:b18bbb82d438be1ab4ec05446cfae855fd4ea5016d5a1809a3e8bb12abe3f4dd", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "json-file", + "log_opts": { + "max-file": "10", + "max-size": "10m" + }, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/mariadb", + "target": "/var/lib/mysql", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "mariadb", + "network_data": [ + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.127", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:77:5f:91:b8", + "network_name": "terraform-static-eth1-shared" + }, + { + "gateway": "172.29.0.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "172.29.0.3", + "ip_prefix_length": 22, + "ipv6_gateway": "", + "mac_address": "02:42:ac:1d:00:03", + "network_name": "mariadb" + } + ], + "network_mode": "default", + "networks_advanced": [ + { + "aliases": [], + "ipv4_address": "", + "ipv6_address": "", + "name": "mariadb" + }, + { + "aliases": [], + "ipv4_address": "192.168.2.127", + "ipv6_address": "", + "name": "terraform-static-eth1-shared" + } + ], + "pid_mode": "", + "ports": [], + "privileged": false, + "publish_all_ports": false, + "read_only": false, + "remove_volumes": true, + "restart": "always", + "rm": false, + "runtime": "runc", + "security_opts": [], + "shm_size": 64, + "start": true, + "stdin_open": false, + "stop_signal": "", + "stop_timeout": 0, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, + "tty": false, + "ulimit": [], + "upload": [], + "user": "", + "userns_mode": "", + "volumes": [], + "wait": false, + "wait_timeout": 60, + "working_dir": "" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "data.docker_registry_image.mariadb", + "docker_image.mariadb", + "docker_network.bridge", + "docker_network.mariadb" + ] + } + ] }, { "mode": "managed", @@ -1461,6 +1726,128 @@ } ] }, + { + "mode": "managed", + "type": "docker_container", + "name": "nginx-lb-certbot", + "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [ + "renew" + ], + "container_logs": null, + "container_read_refresh_timeout_milliseconds": 15000, + "cpu_set": "", + "cpu_shares": 0, + "destroy_grace_seconds": null, + "devices": [], + "dns": null, + "dns_opts": null, + "dns_search": null, + "domainname": "", + "entrypoint": [ + "certbot" + ], + "env": [], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "90ea3dfb8c6b", + "id": "90ea3dfb8c6b11e645264d4c158c79cd98e124c734d59e281c96e24616596571", + "image": "sha256:2924483b97117b89533467838db8694811f77fbbc292330b668f768a8798f19a", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "json-file", + "log_opts": { + "max-file": "10", + "max-size": "10m" + }, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/nginx-lb/certbot", + "target": "/var/www/acme-challenge-root", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + }, + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/nginx-lb/certs", + "target": "/etc/letsencrypt", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "nginx-lb-certbot", + "network_data": [ + { + "gateway": "10.0.3.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "10.0.3.3", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:0a:00:03:03", + "network_name": "bridge" + } + ], + "network_mode": "default", + "networks_advanced": [], + "pid_mode": "", + "ports": [], + "privileged": false, + "publish_all_ports": false, + "read_only": false, + "remove_volumes": true, + "restart": "no", + "rm": false, + "runtime": "runc", + "security_opts": [], + "shm_size": 64, + "start": true, + "stdin_open": false, + "stop_signal": "", + "stop_timeout": 0, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, + "tty": false, + "ulimit": [], + "upload": [], + "user": "", + "userns_mode": "", + "volumes": [], + "wait": false, + "wait_timeout": 60, + "working_dir": "/opt/certbot" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "docker_image.nginx-lb-certbot" + ] + } + ] + }, { "mode": "managed", "type": "docker_container", @@ -2442,14 +2829,251 @@ "type": "docker_container", "name": "smokeping", "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", - "instances": [] + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [], + "container_logs": null, + "container_read_refresh_timeout_milliseconds": 15000, + "cpu_set": "", + "cpu_shares": 0, + "destroy_grace_seconds": null, + "devices": [], + "dns": null, + "dns_opts": null, + "dns_search": null, + "domainname": "", + "entrypoint": [ + "/init" + ], + "env": [ + "TZ=Europe/Amsterdam" + ], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "ef40afc4b720", + "id": "ef40afc4b720dacd5cc7351490bcaa3140d1139af407d2ba779bd531b8b7e2de", + "image": "sha256:91d19d0b633914604d2dc0561d846843f6f50f42e227f79b02b1a57648b2752e", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "json-file", + "log_opts": { + "max-file": "10", + "max-size": "10m" + }, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/smokeping/config", + "target": "/config", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + }, + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/smokeping/data", + "target": "/data", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "smokeping", + "network_data": [ + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.126", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:e0:ae:63:72", + "network_name": "terraform-static-eth1-shared" + } + ], + "network_mode": "default", + "networks_advanced": [ + { + "aliases": [], + "ipv4_address": "192.168.2.126", + "ipv6_address": "", + "name": "terraform-static-eth1-shared" + } + ], + "pid_mode": "", + "ports": [], + "privileged": false, + "publish_all_ports": false, + "read_only": false, + "remove_volumes": true, + "restart": "always", + "rm": false, + "runtime": "runc", + "security_opts": [], + "shm_size": 64, + "start": true, + "stdin_open": false, + "stop_signal": "", + "stop_timeout": 0, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, + "tty": false, + "ulimit": [], + "upload": [], + "user": "", + "userns_mode": "", + "volumes": [], + "wait": false, + "wait_timeout": 60, + "working_dir": "/" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "data.docker_registry_image.smokeping", + "docker_image.smokeping", + "docker_network.bridge" + ] + } + ] }, { "mode": "managed", "type": "docker_container", "name": "syncthing", "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", - "instances": [] + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [], + "container_logs": null, + "container_read_refresh_timeout_milliseconds": 15000, + "cpu_set": "", + "cpu_shares": 0, + "destroy_grace_seconds": null, + "devices": [], + "dns": null, + "dns_opts": null, + "dns_search": null, + "domainname": "", + "entrypoint": [ + "/init" + ], + "env": [], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "28ca6475c6c8", + "id": "28ca6475c6c8080b19b25c1cff87d7217811b7bd856487977c57e9bf295d849a", + "image": "sha256:d33daaad7190a8cdcae696b55928519c5e10d293b7f0f5264f2da6ecba36a038", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "json-file", + "log_opts": { + "max-file": "10", + "max-size": "10m" + }, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/syncthing", + "target": "/config", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "syncthing", + "network_data": [ + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.119", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:d3:56:b4:85", + "network_name": "terraform-static-eth1-shared" + } + ], + "network_mode": "default", + "networks_advanced": [ + { + "aliases": [], + "ipv4_address": "192.168.2.119", + "ipv6_address": "", + "name": "terraform-static-eth1-shared" + } + ], + "pid_mode": "", + "ports": [], + "privileged": false, + "publish_all_ports": false, + "read_only": false, + "remove_volumes": true, + "restart": "always", + "rm": false, + "runtime": "runc", + "security_opts": [], + "shm_size": 64, + "start": true, + "stdin_open": false, + "stop_signal": "", + "stop_timeout": 0, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, + "tty": false, + "ulimit": [], + "upload": [], + "user": "", + "userns_mode": "", + "volumes": [], + "wait": false, + "wait_timeout": 60, + "working_dir": "/" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "data.docker_registry_image.syncthing", + "docker_image.syncthing", + "docker_network.bridge" + ] + } + ] }, { "mode": "managed", @@ -2529,16 +3153,6 @@ "must_run": true, "name": "traccar", "network_data": [ - { - "gateway": "192.168.2.1", - "global_ipv6_address": "", - "global_ipv6_prefix_length": 0, - "ip_address": "192.168.2.113", - "ip_prefix_length": 24, - "ipv6_gateway": "", - "mac_address": "02:42:96:65:08:7c", - "network_name": "terraform-static-eth1-shared" - }, { "gateway": "172.29.0.1", "global_ipv6_address": "", @@ -2548,6 +3162,16 @@ "ipv6_gateway": "", "mac_address": "02:42:ac:1d:00:02", "network_name": "mariadb" + }, + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.113", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:96:65:08:7c", + "network_name": "terraform-static-eth1-shared" } ], "network_mode": "default", @@ -3016,7 +3640,142 @@ "type": "docker_container", "name": "zigbee-2-mqtt", "provider": "provider[\"registry.terraform.io/kreuzwerker/docker\"]", - "instances": [] + "instances": [ + { + "schema_version": 2, + "attributes": { + "attach": false, + "bridge": "", + "capabilities": [], + "cgroupns_mode": null, + "command": [ + "/sbin/tini", + "--", + "node", + "index.js" + ], + "container_logs": null, + "container_read_refresh_timeout_milliseconds": 15000, + "cpu_set": "", + "cpu_shares": 0, + "destroy_grace_seconds": null, + "devices": [ + { + "container_path": "/dev/ttyACM0", + "host_path": "/dev/ttyACM0", + "permissions": "rwm" + } + ], + "dns": null, + "dns_opts": null, + "dns_search": null, + "domainname": "", + "entrypoint": [ + "docker-entrypoint.sh" + ], + "env": [ + "TZ=Europe/Amsterdam" + ], + "exit_code": null, + "gpus": null, + "group_add": null, + "healthcheck": null, + "host": [], + "hostname": "c107eb300dbd", + "id": "c107eb300dbd09d12da0f319b2959d011eabffdfabc30063ef57a8ff9dc2b384", + "image": "sha256:760bfdaca4c4a179f460e25dd6e6bd85c0a675db4f756c47330080ad520b0df9", + "init": false, + "ipc_mode": "private", + "labels": [], + "log_driver": "json-file", + "log_opts": { + "max-file": "10", + "max-size": "10m" + }, + "logs": false, + "max_retry_count": 0, + "memory": 0, + "memory_swap": 0, + "mounts": [ + { + "bind_options": [], + "read_only": true, + "source": "/run/udev", + "target": "/run/udev", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + }, + { + "bind_options": [], + "read_only": null, + "source": "/share/appdata/zigbee2mqtt", + "target": "/app/data", + "tmpfs_options": [], + "type": "bind", + "volume_options": [] + } + ], + "must_run": true, + "name": "zigbee-2-mqtt", + "network_data": [ + { + "gateway": "192.168.2.1", + "global_ipv6_address": "", + "global_ipv6_prefix_length": 0, + "ip_address": "192.168.2.117", + "ip_prefix_length": 24, + "ipv6_gateway": "", + "mac_address": "02:42:8b:a7:68:9f", + "network_name": "terraform-static-eth1-shared" + } + ], + "network_mode": "default", + "networks_advanced": [ + { + "aliases": [], + "ipv4_address": "192.168.2.117", + "ipv6_address": "", + "name": "terraform-static-eth1-shared" + } + ], + "pid_mode": "", + "ports": [], + "privileged": false, + "publish_all_ports": false, + "read_only": false, + "remove_volumes": true, + "restart": "always", + "rm": false, + "runtime": "runc", + "security_opts": [], + "shm_size": 64, + "start": true, + "stdin_open": false, + "stop_signal": "", + "stop_timeout": 0, + "storage_opts": null, + "sysctls": null, + "tmpfs": null, + "tty": false, + "ulimit": [], + "upload": [], + "user": "", + "userns_mode": "", + "volumes": [], + "wait": false, + "wait_timeout": 60, + "working_dir": "/app" + }, + "sensitive_attributes": [], + "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjIifQ==", + "dependencies": [ + "data.docker_registry_image.zigbee-2-mqtt", + "docker_image.zigbee-2-mqtt", + "docker_network.bridge" + ] + } + ] }, { "mode": "managed", @@ -3149,15 +3908,15 @@ "attributes": { "build": [], "force_remove": null, - "id": "sha256:01ee21da2e4e69051bd8e87dfbbfe7a1f9e3d41db64d9d853002eecff9fed12chomeassistant/home-assistant", - "image_id": "sha256:01ee21da2e4e69051bd8e87dfbbfe7a1f9e3d41db64d9d853002eecff9fed12c", + "id": "sha256:24dfcdb859704681d09aa8000469fb59a3bc3f3396f6ea40f9c2d2189766a63ahomeassistant/home-assistant", + "image_id": "sha256:24dfcdb859704681d09aa8000469fb59a3bc3f3396f6ea40f9c2d2189766a63a", "keep_locally": null, "name": "homeassistant/home-assistant", "platform": null, "pull_triggers": [ - "sha256:17667d8849f01fb8a34f2eecff79beb50be0394928c8c4b64853648472ebee38" + "sha256:aa6ed476b0da1dd38be99c59d8566fc9937d9bc0f1e416b3cdcb011749f667e0" ], - "repo_digest": "homeassistant/home-assistant@sha256:5802094954ff92730dfefa2f321dcc910debe290c9f8660b039d5a5883cede8a", + "repo_digest": "homeassistant/home-assistant@sha256:aa6ed476b0da1dd38be99c59d8566fc9937d9bc0f1e416b3cdcb011749f667e0", "triggers": null }, "sensitive_attributes": [], @@ -3179,15 +3938,15 @@ "attributes": { "build": [], "force_remove": null, - "id": "sha256:cf6aa23aa4ff3d40153afcd1cae6e311a4530f54041f25a909a1c9b7339fa5b3mariadb:10.6", - "image_id": "sha256:cf6aa23aa4ff3d40153afcd1cae6e311a4530f54041f25a909a1c9b7339fa5b3", + "id": "sha256:b18bbb82d438be1ab4ec05446cfae855fd4ea5016d5a1809a3e8bb12abe3f4ddmariadb:10.6", + "image_id": "sha256:b18bbb82d438be1ab4ec05446cfae855fd4ea5016d5a1809a3e8bb12abe3f4dd", "keep_locally": null, "name": "mariadb:10.6", "platform": null, "pull_triggers": [ - "sha256:4635153fbecc576c359066f2018c1922c5686f4a15b7517586925b0e70d51766" + "sha256:fcbe381e5fef20c7a2932b52a070f58987b770c651aedf705332e54d1dfd465f" ], - "repo_digest": "mariadb@sha256:9156c6c088e554b19bdcad795f5b536d5796766806935da63d1268bc647f05b9", + "repo_digest": "mariadb@sha256:fcbe381e5fef20c7a2932b52a070f58987b770c651aedf705332e54d1dfd465f", "triggers": null }, "sensitive_attributes": [], @@ -3534,15 +4293,15 @@ "attributes": { "build": [], "force_remove": null, - "id": "sha256:e00c139bc0102904a580a40fac27e096dcfb77317f754f67eb8daebd2609420blinuxserver/smokeping:latest", - "image_id": "sha256:e00c139bc0102904a580a40fac27e096dcfb77317f754f67eb8daebd2609420b", + "id": "sha256:91d19d0b633914604d2dc0561d846843f6f50f42e227f79b02b1a57648b2752elinuxserver/smokeping:latest", + "image_id": "sha256:91d19d0b633914604d2dc0561d846843f6f50f42e227f79b02b1a57648b2752e", "keep_locally": null, "name": "linuxserver/smokeping:latest", "platform": null, "pull_triggers": [ - "sha256:7dec1f1e263d588024ae5f6945227ce29bd039495cb0eac931f32c6f2cd9b200" + "sha256:68419ecb1ad4f0515b30c1b982fa1a58200c52d8a42550788e8b18500d45bf46" ], - "repo_digest": "linuxserver/smokeping@sha256:415b661c691d56292260be88950371d9cf64318c51650d1b98db11a6adc862e5", + "repo_digest": "linuxserver/smokeping@sha256:68419ecb1ad4f0515b30c1b982fa1a58200c52d8a42550788e8b18500d45bf46", "triggers": null }, "sensitive_attributes": [], @@ -3564,15 +4323,15 @@ "attributes": { "build": [], "force_remove": null, - "id": "sha256:86cbd34f0ca910fe4b6be4d892770f150c334ab4dbca3f2c7d77a03c04fed2eelinuxserver/syncthing:latest", - "image_id": "sha256:86cbd34f0ca910fe4b6be4d892770f150c334ab4dbca3f2c7d77a03c04fed2ee", + "id": "sha256:d33daaad7190a8cdcae696b55928519c5e10d293b7f0f5264f2da6ecba36a038linuxserver/syncthing:latest", + "image_id": "sha256:d33daaad7190a8cdcae696b55928519c5e10d293b7f0f5264f2da6ecba36a038", "keep_locally": null, "name": "linuxserver/syncthing:latest", "platform": null, "pull_triggers": [ - "sha256:8f0e9bb116dcea2bf8d97d4956a8232e440d8c161c3db6e21174ed461fd30ab0" + "sha256:fa6c2bce52ccb8d4d81605031507fc9b7c558e32c7ec12e128de36ba873fa2a2" ], - "repo_digest": "linuxserver/syncthing@sha256:54bf39b2cdc7100542d2f2cecd6237d71015a1b1174b5fa14dbf7430d905d98b", + "repo_digest": "linuxserver/syncthing@sha256:fa6c2bce52ccb8d4d81605031507fc9b7c558e32c7ec12e128de36ba873fa2a2", "triggers": null }, "sensitive_attributes": [], @@ -3715,7 +4474,7 @@ "name": "koenkk/zigbee2mqtt", "platform": null, "pull_triggers": [ - "sha256:a152fa019f05d9712cce1da20c82b1c96557277954ad60d644114376623c9912" + "sha256:98bf0afb61b2fca7402f6cd71933abc72f90e53766cbb65c8be6060b20312f45" ], "repo_digest": "koenkk/zigbee2mqtt@sha256:98bf0afb61b2fca7402f6cd71933abc72f90e53766cbb65c8be6060b20312f45", "triggers": null