From 7cffeffca9722c9d1cdf199fe2dc642158b88570 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 25 Oct 2024 10:31:52 +0100 Subject: [PATCH] Add bitcoind configuration and prefect variables - Add bitcoind IP and port configuration variables - Update prefect variables for bitcoind ip and port - Maintain existing configurations for other services --- hosts/common/optional/nixos-containers/baseddata-worker.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/common/optional/nixos-containers/baseddata-worker.nix b/hosts/common/optional/nixos-containers/baseddata-worker.nix index acdbad2..f6b2606 100644 --- a/hosts/common/optional/nixos-containers/baseddata-worker.nix +++ b/hosts/common/optional/nixos-containers/baseddata-worker.nix @@ -14,6 +14,8 @@ gatewayIp = configVars.networking.addresses.gateway.ip; postgresIp = configVars.networking.addresses.postgres.ip; postgresPort = toString configVars.networking.addresses.postgres.port; + bitcoindIp = configVars.networking.addresses.bitcoin-node.ip; + bitcoindPort = toString configVars.networking.addresses.bitcoin-node.services.bitcoind.port; #secrets sshKeyFile = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."ssh_keys/baseddata-models-access/id_ed25519".path; @@ -228,6 +230,8 @@ in { .venv/bin/prefect variable set "postgres_pwd" $(cat /run/secrets/postgresPassword) --overwrite .venv/bin/prefect variable set "bitcoin_rpc_password" $(cat /run/secrets/bitcoindRPCPassword) --overwrite .venv/bin/prefect variable set "bitcoin_rpc_username" $(cat /run/secrets/bitcoindRPCUsername) --overwrite + .venv/bin/prefect variable set "bitcoind_ip" ${bitcoindIp} --overwrite + .venv/bin/prefect variable set "bitcoind_port" ${bitcoindPort} --overwrite .venv/bin/prefect variable set "osm_history_dir" "/media/baseddata-data/osm-history" --overwrite .venv/bin/prefect variable set "mongo_db_name" "baseddata" --overwrite