Skip to content

Commit

Permalink
fix: tf (#61)
Browse files Browse the repository at this point in the history
Signed-off-by: Barnabas Busa <[email protected]>
  • Loading branch information
barnabasbusa authored Nov 1, 2024
1 parent bfe323e commit 264d6ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion ansible/cleanup_ethereum.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- "reth"
- "execution"
- "execution-init"
- "reth"
- "nimbusel"
# Consensus layer clients
- "lighthouse-validator"
- "lighthouse"
Expand Down Expand Up @@ -67,6 +67,7 @@
- /data/geth
- /data/nethermind
- /data/reth
- /data/nimbusel
# Consensus layer data
- /data/lighthouse
- /data/lighthouse-validator
Expand Down
2 changes: 1 addition & 1 deletion ansible/inventories/devnet-0/group_vars/nethermind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ nethermind_container_command_extra_args:
- --Discovery.Bootnodes={{ ethereum_el_bootnodes | join(',') }}
- --Init.IsMining=false
- --Pruning.Mode=None
- --config=none.cfg
- --config=none
- --EthStats.Enabled=true
- --EthStats.Name={{ inventory_hostname }}
- --EthStats.Secret={{ ethstats_secret }}
Expand Down
1 change: 0 additions & 1 deletion ansible/inventories/devnet-0/group_vars/teku.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ teku_container_command_extra_args:
- --rest-api-docs-enabled
teku_validator_container_volumes:
- "{{ teku_validator_datadir }}:/validator-data"
- "{{ eth_testnet_config_dir }}:/network-config:ro"
teku_validator_datadir: /data/teku-validator
6 changes: 3 additions & 3 deletions terraform/devnet-0/digitalocean.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ variable "digitalocean_regions" {
}

////////////////////////////////////////////////////////////////////////////////////////
// LOCALS
// LOCALS
////////////////////////////////////////////////////////////////////////////////////////
locals {
base_cidr_block = var.base_cidr_block
Expand All @@ -49,7 +49,7 @@ locals {
id = "${vm_group.name}-${i + 1}"
vms = {
"${i + 1}" = {
tags = "group_name:${vm_group.name},val_start:${vm_group.validator_start + (i * (vm_group.validator_end - vm_group.validator_start) / vm_group.count)},val_end:${min(vm_group.validator_start + ((i + 1) * (vm_group.validator_end - vm_group.validator_start) / vm_group.count), vm_group.validator_end)}"
tags = "group_name:${vm_group.name},val_start:${vm_group.validator_start + ceil(i * (vm_group.validator_end - vm_group.validator_start) / vm_group.count)},val_end:${min(vm_group.validator_start + ceil((i + 1) * (vm_group.validator_end - vm_group.validator_start) / vm_group.count), vm_group.validator_end)}"
region = element(var.digitalocean_regions, i % length(var.digitalocean_regions))
size = try(vm_group.size, local.digitalocean_default_size)
ipv6 = try(vm_group.ipv6, true)
Expand Down Expand Up @@ -309,7 +309,7 @@ resource "local_file" "ansible_inventory" {
ipv6 = try(server.ipv6_address, "none")
group = try(split(":", tolist(server.tags)[2])[1], "unknown")
validator_start = try(split(":", tolist(server.tags)[4])[1], 0)
validator_end = try(split(":", tolist(server.tags)[3])[1], 0) # if the tag is not a number it will be 0 - e.g no validator keys
validator_end = try(split(":", tolist(server.tags)[3])[1], 0) # if the tag is not a number it will be 0 - e.g no validator keys
tags = "${server.tags}"
hostname = "${split(".", key)[0]}"
cloud = "digitalocean"
Expand Down

0 comments on commit 264d6ba

Please sign in to comment.