Skip to content

Commit 0fb37f4

Browse files
authored
Merge pull request #1442 from input-output-hk/jpraynaud/1410-fix-cardano-configuration-infra
Fix Cardano configuration in infrastructure
2 parents 2982a54 + 394d48c commit 0fb37f4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mithril-infra/assets/infra.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.5
1+
0.2.6

mithril-infra/mithril.aggregator.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "null_resource" "mithril_aggregator" {
3434
set -e
3535
# Setup cardano node configuration
3636
AGGREGATOR_CONFIG_DIRECTORY=/home/curry/data/${var.cardano_network}/mithril-aggregator/cardano/config
37-
cp -R /home/curry/docker/cardano-configurations/network/${var.cardano_network} $AGGREGATOR_CONFIG_DIRECTORY
37+
cp -R /home/curry/docker/cardano-configurations/network/${var.cardano_network}_p2p $AGGREGATOR_CONFIG_DIRECTORY
3838
cat $AGGREGATOR_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json | jq ".hasPrometheus[0] |= \"cardano-node-aggregator\"" > $AGGREGATOR_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json.new
3939
rm -f $AGGREGATOR_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json
4040
mv $AGGREGATOR_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json.new $AGGREGATOR_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json

mithril-infra/mithril.signer.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ resource "null_resource" "mithril_signer" {
4444
"echo -n ${local.mithril_signers_relay_cardano_port[each.key]} > /home/curry/data/${var.cardano_network}/mithril-signer-${each.key}/cardano/pool/port",
4545
<<-EOT
4646
# Setup cardano node block producer topology
47-
cat /home/curry/docker/cardano-configurations/network/${var.cardano_network}/cardano-node/topology.json | jq 'del(.publicRoots[0].accessPoints[0:])' | jq '.localRoots[0].accessPoints[0] |= . + { "address": "${google_compute_address.mithril-external-address.address}", "port": ${local.mithril_signers_relay_cardano_port[each.key]}}' > /home/curry/data/${var.cardano_network}/mithril-signer-${each.key}/cardano/pool/topology-block-producer.json
47+
cat /home/curry/docker/cardano-configurations/network/${var.cardano_network}_p2p/cardano-node/topology.json | jq 'del(.publicRoots[0].accessPoints[0:])' | jq '.localRoots[0].accessPoints[0] |= . + { "address": "${google_compute_address.mithril-external-address.address}", "port": ${local.mithril_signers_relay_cardano_port[each.key]}}' > /home/curry/data/${var.cardano_network}/mithril-signer-${each.key}/cardano/pool/topology-block-producer.json
4848
4949
# Setup cardano node relay topology
50-
cat /home/curry/docker/cardano-configurations/network/${var.cardano_network}/cardano-node/topology.json | jq '.localRoots[0].accessPoints[0] |= . + { "address": "${google_compute_address.mithril-external-address.address}", "port": ${local.mithril_signers_block_producer_cardano_port[each.key]}}' > /home/curry/data/${var.cardano_network}/mithril-signer-${each.key}/cardano/pool/topology-relay.json
50+
cat /home/curry/docker/cardano-configurations/network/${var.cardano_network}_p2p/cardano-node/topology.json | jq '.localRoots[0].accessPoints[0] |= . + { "address": "${google_compute_address.mithril-external-address.address}", "port": ${local.mithril_signers_block_producer_cardano_port[each.key]}}' > /home/curry/data/${var.cardano_network}/mithril-signer-${each.key}/cardano/pool/topology-relay.json
5151
EOT
5252
,
5353
<<-EOT
@@ -56,7 +56,7 @@ SIGNER_TYPES="full relay block-producer"
5656
for SIGNER_TYPE in $SIGNER_TYPES; do
5757
SIGNER_TYPE_CONFIG_DIRECTORY=/home/curry/data/${var.cardano_network}/mithril-signer-${each.key}/cardano/config/$SIGNER_TYPE
5858
mkdir -p $SIGNER_TYPE_CONFIG_DIRECTORY
59-
cp -R /home/curry/docker/cardano-configurations/network/${var.cardano_network} $SIGNER_TYPE_CONFIG_DIRECTORY
59+
cp -R /home/curry/docker/cardano-configurations/network/${var.cardano_network}_p2p $SIGNER_TYPE_CONFIG_DIRECTORY
6060
cat $SIGNER_TYPE_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json | jq ".hasPrometheus[0] |= \"cardano-node-$SIGNER_TYPE-signer-${each.key}\"" > $SIGNER_TYPE_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json.new
6161
rm -f $SIGNER_TYPE_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json
6262
mv $SIGNER_TYPE_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json.new $SIGNER_TYPE_CONFIG_DIRECTORY/${var.cardano_network}/cardano-node/config.json

mithril-infra/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ variable "cardano_image_id" {
147147
variable "cardano_configurations_repository_commit" {
148148
type = string
149149
description = "The Cardano configurations commit to use"
150-
default = "7b1a4833e36f78202f67f6638d005c796f4626a9"
150+
default = "21249e0d5c68b4e8f3661b250aa8272a8785d678"
151151
}
152152

153153
variable "mithril_api_domain" {

0 commit comments

Comments
 (0)