Skip to content

Commit

Permalink
fix(preview): replace usages of "preprod"
Browse files Browse the repository at this point in the history
  • Loading branch information
Pacman99 committed Aug 12, 2022
1 parent 225f6d7 commit 75be1d9
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions nix/cloud/namespaces/preview.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
inherit (cell) constants;

persistanceMount = "/persist";
LEDGER_SLOT = "-1"; # cardano.environments.preprod.usePeersFromLedgerAfterSlot;
LEDGER_SLOT = "-1"; # cardano.environments.preview.usePeersFromLedgerAfterSlot;
in {
sp-1 = let
jobname = "cardano-sp-1";
in
data-merge.merge (
cardano.nomadCharts.cardano-node (
constants.envs.preprod
constants.envs.preview
// {
datacenters = ["eu-west-1"];
inherit jobname;
Expand All @@ -27,10 +27,10 @@ in {
env = {
inherit LEDGER_SLOT;
DATA_DIR = persistanceMount + "/sp-1";
CONSUL_KV_PATH = "config/cardano/preprod";
VAULT_KV_PATH = "kv/data/cardano/preprod/sp-1";
LOCAL_ROOTS_SRV_DNS = "_preprod-${jobname}-node._tcp.service.consul";
PUBLIC_ROOTS_SRV_DNS = "_preprod-node._tcp.service.consul";
CONSUL_KV_PATH = "config/cardano/preview";
VAULT_KV_PATH = "kv/data/cardano/preview/sp-1";
LOCAL_ROOTS_SRV_DNS = "_preview-${jobname}-node._tcp.service.consul";
PUBLIC_ROOTS_SRV_DNS = "_preview-node._tcp.service.consul";
};
};
};
Expand All @@ -39,7 +39,7 @@ in {
in
data-merge.merge (
cardano.nomadCharts.cardano-node (
constants.envs.preprod
constants.envs.preview
// {
datacenters = ["us-east-2"];
inherit jobname;
Expand All @@ -52,10 +52,10 @@ in {
env = {
inherit LEDGER_SLOT;
DATA_DIR = persistanceMount + "/sp-2";
CONSUL_KV_PATH = "config/cardano/preprod";
VAULT_KV_PATH = "kv/data/cardano/preprod/sp-2";
LOCAL_ROOTS_SRV_DNS = "_preprod-${jobname}-node._tcp.service.consul";
PUBLIC_ROOTS_SRV_DNS = "_preprod-node._tcp.service.consul";
CONSUL_KV_PATH = "config/cardano/preview";
VAULT_KV_PATH = "kv/data/cardano/preview/sp-2";
LOCAL_ROOTS_SRV_DNS = "_preview-${jobname}-node._tcp.service.consul";
PUBLIC_ROOTS_SRV_DNS = "_preview-node._tcp.service.consul";
};
};
};
Expand All @@ -64,7 +64,7 @@ in {
in
data-merge.merge (
cardano.nomadCharts.cardano-node (
constants.envs.preprod
constants.envs.preview
// {
datacenters = ["eu-central-1"];
inherit jobname;
Expand All @@ -77,18 +77,18 @@ in {
env = {
inherit LEDGER_SLOT;
DATA_DIR = persistanceMount + "/sp-3";
CONSUL_KV_PATH = "config/cardano/preprod";
VAULT_KV_PATH = "kv/data/cardano/preprod/sp-3";
LOCAL_ROOTS_SRV_DNS = "_preprod-${jobname}-node._tcp.service.consul";
PUBLIC_ROOTS_SRV_DNS = "_preprod-node._tcp.service.consul";
CONSUL_KV_PATH = "config/cardano/preview";
VAULT_KV_PATH = "kv/data/cardano/preview/sp-3";
LOCAL_ROOTS_SRV_DNS = "_preview-${jobname}-node._tcp.service.consul";
PUBLIC_ROOTS_SRV_DNS = "_preview-node._tcp.service.consul";
};
};
};
faucet = let
jobname = "faucet";
in
data-merge.merge (cardano.nomadCharts.cardano-faucet (
constants.envs.preprod
constants.envs.preview
// {
datacenters = ["eu-central-1"];
inherit jobname;
Expand All @@ -101,8 +101,8 @@ in {
# env.DEBUG_SLEEP = 6000;
env = {
DATA_DIR = persistanceMount + "/faucet";
CONSUL_KV_PATH = "config/cardano/preprod";
PUBLIC_ROOTS_SRV_DNS = "_preprod-node._tcp.service.consul";
CONSUL_KV_PATH = "config/cardano/preview";
PUBLIC_ROOTS_SRV_DNS = "_preview-node._tcp.service.consul";
EDGE_NODE = "1";
};
};
Expand Down

0 comments on commit 75be1d9

Please sign in to comment.