Skip to content

Commit

Permalink
change prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
DaMandal0rian committed Jul 18, 2024
1 parent 0f4e1e1 commit 9e36f7f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion resources/gemini-3h/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ module "gemini-3h" {
instance-count = var.instance_count["rpc-squid"]
docker-org = "subspace"
docker-tag = "gemini-3h-2024-jul-16"
domain-prefix = "rpc-squid"
reserved-only = false
prune = false
node-dsn-port = 30433
disk-volume-size = var.disk_volume_size
disk-volume-type = var.disk_volume_type
}

domain-node-config = {
nova-squid-node-config = {
instance-type = var.instance_type["nova-squid"]
deployment-version = 0
regions = var.aws_region
Expand Down
2 changes: 1 addition & 1 deletion templates/scripts/create_domain_node_compose_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
NRIA_LICENSE_KEY: "\${NR_API_KEY}"
NRIA_DISPLAY_NAME: "\${NETWORK_NAME}-domain-node-\${NODE_ID}"
NRIA_DISPLAY_NAME: "\${NETWORK_NAME}-\${DOMAIN_PREFIX}-node-\${NODE_ID}"
restart: unless-stopped
# traefik reverse proxy with automatic tls management using let encrypt
Expand Down
2 changes: 1 addition & 1 deletion templates/scripts/create_rpc_node_compose_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
NRIA_LICENSE_KEY: "\${NR_API_KEY}"
NRIA_DISPLAY_NAME: "\${NETWORK_NAME}-rpc-node-\${NODE_ID}"
NRIA_DISPLAY_NAME: "\${NETWORK_NAME}-\${DOMAIN_PREFIX}-node-\${NODE_ID}"
restart: unless-stopped
# traefik reverse proxy with automatic tls management using let encrypt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ resource "null_resource" "start-domain-nodes" {
"echo DOMAIN_ID=${var.domain-node-config.domain-id[0]} >> /home/${var.ssh_user}/subspace/.env",
"echo NODE_ID=${count.index} >> /home/${var.ssh_user}/subspace/.env",
"echo NODE_KEY=$(sed -nr 's/NODE_${count.index}_KEY=//p' /home/${var.ssh_user}/subspace/node_keys.txt) >> /home/${var.ssh_user}/subspace/.env",
"echo RELAYER_SYSTEM_ID=$(sed -nr 's/NODE_${count.index}_RELAYER_SYSTEM_ID=//p' /home/${var.ssh_user}/subspace/relayer_ids.txt) >> /home/${var.ssh_user}/subspace/.env",
"echo RELAYER_DOMAIN_ID=$(sed -nr 's/NODE_${count.index}_RELAYER_DOMAIN_ID=//p' /home/${var.ssh_user}/subspace/relayer_ids.txt) >> /home/${var.ssh_user}/subspace/.env",
"echo NR_API_KEY=${var.nr_api_key} >> /home/${var.ssh_user}/subspace/.env",
"echo PIECE_CACHE_SIZE=${var.piece_cache_size} >> /home/${var.ssh_user}/subspace/.env",
"echo NODE_DSN_PORT=${var.domain-node-config.node-dsn-port} >> /home/${var.ssh_user}/subspace/.env",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ resource "null_resource" "start-nova-squid-nodes" {
"echo DOMAIN_ID=${var.nova-squid-node-config.nova-squid-id[0]} >> /home/${var.ssh_user}/subspace/.env",
"echo NODE_ID=${count.index} >> /home/${var.ssh_user}/subspace/.env",
"echo NODE_KEY=$(sed -nr 's/NODE_${count.index}_KEY=//p' /home/${var.ssh_user}/subspace/node_keys.txt) >> /home/${var.ssh_user}/subspace/.env",
"echo RELAYER_SYSTEM_ID=$(sed -nr 's/NODE_${count.index}_RELAYER_SYSTEM_ID=//p' /home/${var.ssh_user}/subspace/relayer_ids.txt) >> /home/${var.ssh_user}/subspace/.env",
"echo RELAYER_DOMAIN_ID=$(sed -nr 's/NODE_${count.index}_RELAYER_DOMAIN_ID=//p' /home/${var.ssh_user}/subspace/relayer_ids.txt) >> /home/${var.ssh_user}/subspace/.env",
"echo NR_API_KEY=${var.nr_api_key} >> /home/${var.ssh_user}/subspace/.env",
"echo PIECE_CACHE_SIZE=${var.piece_cache_size} >> /home/${var.ssh_user}/subspace/.env",
"echo NODE_DSN_PORT=${var.nova-squid-node-config.node-dsn-port} >> /home/${var.ssh_user}/subspace/.env",
Expand Down

0 comments on commit 9e36f7f

Please sign in to comment.