Skip to content
Snippets Groups Projects
Select Git revision
  • fefac078426217cf7f4f91de4dd62b038d9ff157
  • main default protected
  • restricted-sqlite-strategies
  • compare-structured-sql-dumps
  • 235.backup-and-recovery.recovery
  • mypy
  • real-spender
  • github/fork/tp-la/real-spender
  • 260.metric-rejected-zkaps
  • implicit-lease-renewal-problems
  • mach-nix
  • github/fork/tp-la/deep-traverse
  • v0.0
13 results

ristretto.nix

Blame
  • grid.nix 1.01 KiB
    # Load the helper function and call it with arguments tailored for the testing
    # grid.  It will make the morph configuration for us.  We share this function
    # with the production grid and have one fewer possible point of divergence.
    import ../../lib/make-grid.nix {
      name = "Testing";
      config = ./config.json;
      nodes = cfg:
      let
        importDef = default: path: (
          if builtins.pathExists path
          then import path
          else default
        );
        sshUsers = importDef {} ../../../../PrivateStorageSecrets/staging-users.nix;
      in {
        "payments" = import ../../lib/make-issuer.nix ({
          publicIPv4 = "18.197.42.120";
          monitoringvpnIPv4 = "172.23.23.11";
          inherit sshUsers;
          hardware = ../../lib/issuer-aws.nix;
          stateVersion = "19.03";
        } // cfg);
    
        "storage001" = import ../../lib/make-testing.nix (cfg // {
          publicIPv4 = "3.120.26.190";
          monitoringvpnIPv4 = "172.23.23.11";
          inherit sshUsers;
          hardware = ./testing001-hardware.nix;
          stateVersion = "19.03";
        });
      };
    }