From d66995fed7ac237e4f8a02f88ae7137f01e37fdb Mon Sep 17 00:00:00 2001 From: DaMandal0rian Date: Fri, 1 Nov 2024 15:18:08 +0300 Subject: [PATCH] mount farmer identity --- templates/scripts/create_farmer_node_compose_file.sh | 1 + .../terraform/network-primitives/farmer_node_provisioner.tf | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/scripts/create_farmer_node_compose_file.sh b/templates/scripts/create_farmer_node_compose_file.sh index 607ae27e..8a18723a 100755 --- a/templates/scripts/create_farmer_node_compose_file.sh +++ b/templates/scripts/create_farmer_node_compose_file.sh @@ -50,6 +50,7 @@ services: image: ghcr.io/\${NODE_ORG}/farmer:\${NODE_TAG} volumes: - /home/$USER/subspace/farmer_data:/var/subspace:rw + - /home/$USER/subspace/identity.bin:/var/subspace/identity.bin:ro restart: unless-stopped ports: - "30533:30533/tcp" diff --git a/templates/terraform/network-primitives/farmer_node_provisioner.tf b/templates/terraform/network-primitives/farmer_node_provisioner.tf index 857e3a9f..59b545c5 100644 --- a/templates/terraform/network-primitives/farmer_node_provisioner.tf +++ b/templates/terraform/network-primitives/farmer_node_provisioner.tf @@ -108,7 +108,6 @@ resource "null_resource" "start-farmer-nodes" { timeout = "300s" } - # copy farmer identity files (todo: reset this after) provisioner "file" { source = "./identity.bin" destination = "/home/${var.ssh_user}/subspace/identity.bin"