diff --git a/deploy/aws/main.tf b/deploy/aws/main.tf index 347d73fc0..ab4a20785 100644 --- a/deploy/aws/main.tf +++ b/deploy/aws/main.tf @@ -38,7 +38,7 @@ module "leader" { addr: http: ":8800" mgmt: ":8700" - raft: ":8500" + raft: "MYIP:8500" gossip: ":8400" CONFIG @@ -64,7 +64,7 @@ module "follower-1" { addr: http: ":8800" mgmt: ":8700" - raft: ":8500" + raft: "MYIP:8500" gossip: ":8400" raft_join: - "${module.leader.private_ip}:8700" @@ -94,7 +94,7 @@ module "follower-2" { addr: http: ":8800" mgmt: ":8700" - raft: ":8500" + raft: "MYIP:8500" gossip: ":8400" raft_join: - "${module.leader.private_ip}:8700" diff --git a/deploy/aws/modules/qed/main.tf b/deploy/aws/modules/qed/main.tf index 4443d1fe2..81498543a 100644 --- a/deploy/aws/modules/qed/main.tf +++ b/deploy/aws/modules/qed/main.tf @@ -85,6 +85,9 @@ resource "aws_instance" "qed-server" { chmod +x ${var.path}/node_exporter ${var.path}/node_exporter & + + # TONIGHT WE DINE IN HELL + sed -i "s/MYIP/$(ifconfig | awk '/inet addr/{print substr($2,6)}' | head -1)/g" ${var.path}/config.yml ${var.path}/qed ${var.command} DATA