docs: nest config examples and use neutral swarm/hive names
Closes #6146
This commit is contained in:
parent
af434e1374
commit
4c321f3d2d
2 changed files with 113 additions and 77 deletions
|
|
@ -68,11 +68,17 @@ The smallest working config, as in the README's
|
|||
|
||||
```nix
|
||||
services.hyperhive = {
|
||||
deploy.singleHostSwarm = true;
|
||||
deploy.hive-controller.enable = true;
|
||||
swarm.domain = "hive.example";
|
||||
deploy.hive-controller.hiveName = "pr1ma";
|
||||
swarm.hives.pr1ma = { };
|
||||
swarm = {
|
||||
domain = "myswarm.example";
|
||||
hives.firsthive = { };
|
||||
};
|
||||
deploy = {
|
||||
singleHostSwarm = true;
|
||||
hive-controller = {
|
||||
enable = true;
|
||||
hiveName = "firsthive";
|
||||
};
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ an agent's config arrive as PRs you merge. → [`2-handbook/agent-lifecycle/agen
|
|||
To create an agent yourself instead, use the swarm UI, or:
|
||||
|
||||
```bash
|
||||
swarmctl agent create iris --hive pr1ma
|
||||
swarmctl agent create iris --hive firsthive
|
||||
```
|
||||
|
||||
The controller provisions iris's identity, forge user and config repo
|
||||
|
|
|
|||
Loading…
Reference in a new issue