Skip to content

Commit

Permalink
Add needed environments
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Sep 16, 2021
1 parent 68b3fc9 commit 3ed0d01
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 6 deletions.
16 changes: 10 additions & 6 deletions clusters/plutus/playground/default.nix
Expand Up @@ -33,7 +33,15 @@ in {
};
};

services.nomad.namespaces = { production.description = "Production"; };
services.nomad.namespaces = {
production.description = "Marlowe Production";

plutus-production.description = "Plutus Apps Production";

staging.description = "Staging";

wyohack.description = "Marlowe - Wyoming Hackathon 2021";
};

users.extraUsers.root.openssh.authorizedKeys.keys = pkgs.ssh-keys.devOps ++ [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID/fJqgjwPG7b5SRPtCovFmtjmAksUSNg3xHWyqBM4Cs shlevy@shlevy-laptop"
Expand All @@ -57,12 +65,8 @@ in {

autoscalingGroups = listToAttrs (forEach [{
region = "eu-central-1";
desiredCapacity = 2;
desiredCapacity = 8;
}
#{
# region = "us-east-2";
# desiredCapacity = 8;
#}
] (args:
let
attrs = ({
Expand Down
30 changes: 30 additions & 0 deletions deploy.cue
Expand Up @@ -87,6 +87,36 @@ Namespace: [Name=_]: {
}

}
"staging": {
vars: {
#plutusRev: revisions["staging"]
}
jobs: #jobs & {
#namespace: "staging"
#portBase: 1787
}

}
"plutus-production": {
vars: {
#plutusRev: revisions["plutus-production"]
}
jobs: #jobs & {
#namespace: "plutus-apps-prod"
#portBase: 1798
}

}
"wyohack": {
vars: {
#plutusRev: revisions["wyohack"]
}
jobs: #jobs & {
#namespace: "wyohack"
#portBase: 1809
}

}
}

for nsName, nsValue in #namespaces {
Expand Down
3 changes: 3 additions & 0 deletions revisions/plutus-production.cue
@@ -0,0 +1,3 @@
package revisions

"plutus-production": "f653067a6a1b0e579f13df306dd5b345af040145"
3 changes: 3 additions & 0 deletions revisions/staging.cue
@@ -0,0 +1,3 @@
package revisions

staging: "f653067a6a1b0e579f13df306dd5b345af040145"
3 changes: 3 additions & 0 deletions revisions/wyohack.cue
@@ -0,0 +1,3 @@
package revisions

wyohack: "7e33921f3d14f220f651ac0af66fb54361bf9092"

0 comments on commit 3ed0d01

Please sign in to comment.