Cleanup volume handling and fix write access
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.11.4",
|
||||
"serial": 555,
|
||||
"serial": 595,
|
||||
"lineage": "15e0900c-88bc-9754-4600-e3977d018ba0",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
@@ -64,10 +64,10 @@
|
||||
"controllers_expected": 0,
|
||||
"controllers_healthy": 0,
|
||||
"deregister_on_destroy": true,
|
||||
"external_id": "unraid_transfer_ext",
|
||||
"external_id": "unraid_transfer",
|
||||
"id": "unraid_transfer",
|
||||
"mount_options": [],
|
||||
"name": "unraid_transfer_name",
|
||||
"name": "unraid_transfer",
|
||||
"namespace": "default",
|
||||
"nodes_expected": 1,
|
||||
"nodes_healthy": 1,
|
||||
@@ -411,9 +411,9 @@
|
||||
"detach": true,
|
||||
"hcl2": [],
|
||||
"id": "transfer",
|
||||
"jobspec": "job \"transfer\" {\n group \"transfer\" {\n network {\n port \"http\" {\n to = 80\n }\n }\n\n service {\n name = \"transfer\"\n port = \"http\"\n \n tags = [\n \"traefik.enable=true\",\n \"traefik.http.routers.volume-test.middlewares=auth@file\",\n ]\n\n check {\n type = \"http\"\n path = \"/\"\n interval = \"10s\"\n timeout = \"2s\"\n }\n }\n\n volume \"unraid_transfer\" {\n type = \"csi\"\n read_only = false\n source = \"unraid_transfer\"\n access_mode = \"single-node-writer\"\n attachment_mode = \"file-system\"\n }\n\n task \"filebrowser\" {\n driver = \"docker\"\n\n config {\n # Use the s6 tag for the linuxserver.io based image\n image = \"filebrowser/filebrowser:s6\"\n\n ports = [\"http\"]\n\n volumes = [\n \"local/config/settings.json:/config/settings.json\",\n ]\n }\n\n volume_mount {\n volume = \"unraid_transfer\"\n\t destination = \"/srv\"\n read_only = false\n }\n\n resources {\n cpu = 500\n memory = 256\n }\n\n template {\n data = \u003c\u003cEOF\n{\n \"port\": 80,\n \"baseURL\": \"\",\n \"address\": \"\",\n \"log\": \"stdout\",\n \"database\": \"/database/filebrowser.db\",\n \"root\": \"/srv\",\n \"auth\": {\n \"method\": \"noauth\"\n }\n}\nEOF\n\n destination = \"local/config/settings.json\"\n }\n }\n }\n}",
|
||||
"jobspec": "job \"transfer\" {\n group \"transfer\" {\n network {\n port \"http\" {\n to = 80\n }\n }\n\n service {\n name = \"transfer\"\n port = \"http\"\n \n tags = [\n \"traefik.enable=true\",\n \"traefik.http.routers.volume-test.middlewares=auth@file\",\n ]\n\n check {\n type = \"http\"\n path = \"/\"\n interval = \"10s\"\n timeout = \"2s\"\n }\n }\n\n volume \"unraid_transfer\" {\n type = \"csi\"\n read_only = false\n source = \"unraid_transfer\"\n access_mode = \"single-node-writer\"\n attachment_mode = \"file-system\"\n\n mount_options {\n mount_flags = [\"uid=911\",\"gid=1000\"] # linuxserver.io container services run as uid 911\n }\n }\n\n task \"filebrowser\" {\n driver = \"docker\"\n\n config {\n # Use the s6 tag for the linuxserver.io based image\n image = \"filebrowser/filebrowser:s6\"\n\n ports = [\"http\"]\n\n volumes = [\n \"local/config/settings.json:/config/settings.json\",\n ]\n }\n\n volume_mount {\n volume = \"unraid_transfer\"\n\t destination = \"/srv\"\n read_only = false\n }\n\n resources {\n cpu = 500\n memory = 256\n }\n\n template {\n data = \u003c\u003cEOF\n{\n \"port\": 80,\n \"baseURL\": \"\",\n \"address\": \"\",\n \"log\": \"stdout\",\n \"database\": \"/database/filebrowser.db\",\n \"root\": \"/srv\",\n \"auth\": {\n \"method\": \"noauth\"\n }\n}\nEOF\n\n destination = \"local/config/settings.json\"\n }\n }\n }\n}",
|
||||
"json": null,
|
||||
"modify_index": "20353",
|
||||
"modify_index": "21245",
|
||||
"name": "transfer",
|
||||
"namespace": "default",
|
||||
"policy_override": null,
|
||||
@@ -421,7 +421,7 @@
|
||||
"read_allocation_ids": false,
|
||||
"region": "global",
|
||||
"rerun_if_dead": false,
|
||||
"status": "dead",
|
||||
"status": "running",
|
||||
"task_groups": [
|
||||
{
|
||||
"count": 1,
|
||||
|
||||
Reference in New Issue
Block a user