docs: nest config examples and use neutral swarm/hive names
Closes #6146
This commit is contained in:
parent
af434e1374
commit
4c321f3d2d
1 changed files with 113 additions and 77 deletions
17
README.md
17
README.md
|
|
@ -131,12 +131,17 @@ covers spreading a swarm across hosts.
|
|||
hyperhive.nixosModules.default # the whole host stack, one import
|
||||
{
|
||||
services.hyperhive = {
|
||||
deploy.singleHostSwarm = true; # every swarm service on this machine
|
||||
deploy.hive-controller.enable = true; # …and a hive to run agents on
|
||||
|
||||
swarm.domain = "hive.example"; # the swarm's DNS domain
|
||||
deploy.hive-controller.hiveName = "pr1ma"; # this hive's label in it
|
||||
swarm.hives.pr1ma = { }; # the directory: just us
|
||||
swarm = {
|
||||
domain = "myswarm.example"; # the swarm's DNS domain
|
||||
hives.firsthive = { }; # the directory: just us
|
||||
};
|
||||
deploy = {
|
||||
singleHostSwarm = true; # every swarm service on this machine
|
||||
hive-controller = {
|
||||
enable = true; # …and a hive to run agents on
|
||||
hiveName = "firsthive"; # this hive's label in it
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# ... the rest of your host config
|
||||
|
|
|
|||
Loading…
Reference in a new issue