Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
45a8fb0d
Commit
45a8fb0d
authored
5 years ago
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
more comments
parent
f3192716
No related branches found
No related tags found
1 merge request
!2
Testing and production grids
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
morph/grid.nix
+19
-0
19 additions, 0 deletions
morph/grid.nix
with
19 additions
and
0 deletions
morph/grid.nix
+
19
−
0
View file @
45a8fb0d
...
@@ -8,16 +8,35 @@ let
...
@@ -8,16 +8,35 @@ let
url
=
"https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz"
;
url
=
"https://github.com/NixOS/nixpkgs/archive/3c83ad6ac13b67101cc3e2e07781963a010c1624.tar.gz"
;
sha256
=
"0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14"
;
sha256
=
"0cdq342wrkvkyccygpp1gvwp7hhqg68hljjwld4vjixm901ayy14"
;
})
{};
})
{};
# Load our JSON configuration for later use.
cfg
=
pkgs
.
lib
.
trivial
.
importJSON
./grid.config.json
;
cfg
=
pkgs
.
lib
.
trivial
.
importJSON
./grid.config.json
;
in
in
{
{
network
=
{
network
=
{
# Make all of the hosts in this network use the nixpkgs we pinned above.
inherit
pkgs
;
inherit
pkgs
;
# This is just for human consumption as far as I can tell.
description
=
"PrivateStorage.io Staging Grid"
;
description
=
"PrivateStorage.io Staging Grid"
;
};
};
# Here are the hosts that are in this morph network. This is sort of like a
# server manifest. We try to keep as many of the specific details as
# possible out of *this* file so that this file only grows as server count
# grows. If it grows too much, we can load servers by listing contents of a
# directory or reading from another JSON file or some such. For now, I'm
# just manually maintaining these entries.
#
# The name on the left of the `=` is mostly irrelevant but it does provide a
# default hostname for the server if the configuration on the right side
# doesn't specify one.
#
# The names must be unique!
"staging000"
=
import
./staging000.nix
{
"staging000"
=
import
./staging000.nix
{
publicIPv4
=
"3.123.26.90"
;
publicIPv4
=
"3.123.26.90"
;
# Pass along some of the Tahoe-LAFS configuration. If we have much more
# configuration than this we may want to keep it bundled up in one value
# instead of pulling individual values out to pass along.
inherit
(
cfg
)
publicStoragePort
;
inherit
(
cfg
)
publicStoragePort
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment