Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
wip nomad-autoscaler
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp committed Apr 8, 2021
1 parent 908bc62 commit 5a19217
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
1 change: 1 addition & 0 deletions clusters/mantis/testnet/default.nix
Expand Up @@ -113,6 +113,7 @@ in {
(bitte + /profiles/core.nix)
(bitte + /profiles/bootstrapper.nix)
./secrets.nix
./nomad-autoscaler.nix
];

securityGroupRules = {
Expand Down
3 changes: 3 additions & 0 deletions clusters/mantis/testnet/nomad-autoscaler.nix
@@ -0,0 +1,3 @@
{
services.nomad-autoscaler.enable = true;
}
13 changes: 7 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions flake.nix
Expand Up @@ -2,7 +2,7 @@
description = "Bitte for Mantis";

inputs = {
bitte.url = "github:input-output-hk/bitte";
bitte.url = "github:input-output-hk/bitte/nomad-autoscaler-module";
nixpkgs.follows = "bitte/nixpkgs";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
terranix.follows = "bitte/terranix";
Expand All @@ -17,6 +17,7 @@
};

outputs = { self, nixpkgs, utils, ops-lib, bitte, ... }@inputs:

let
hashiStack = bitte.mkHashiStack {
flake = self;
Expand All @@ -35,7 +36,8 @@
};

nixosConfigurations = hashiStack.nixosConfigurations;
in {
in
{
inherit nixosConfigurations;
clusters.x86_64-linux = hashiStack.clusters;
legacyPackages.x86_64-linux = pkgs;
Expand All @@ -55,7 +57,7 @@

morpho-node morpho-node-entrypoint

;
;
} // (pkgs.lib.mapAttrs (_: v: v.config.system.build.toplevel)
nixosConfigurations);
};
Expand Down

0 comments on commit 5a19217

Please sign in to comment.