-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Apply trust establishment changes to the init, add and preseed docs
- Loading branch information
1 parent
1806c85
commit 20270e7
Showing
5 changed files
with
155 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
(howto-add)= | ||
# How to add a machine | ||
## Interactive configuration | ||
|
||
If you want to add a machine to the MicroCloud cluster after the initialisation, use the {command}`microcloud add` command: | ||
|
||
sudo microcloud add | ||
|
||
Answer the prompts to add the machine. | ||
You can add the `--wipe` flag to automatically wipe any disks you add to the cluster. | ||
On the new machine use the {command}`microcloud join` command: | ||
|
||
sudo microcloud join | ||
|
||
Answer the prompts on both sides to add the machine. | ||
You can also add the `--wipe` flag to automatically wipe any disks you add to the cluster. | ||
|
||
## Non-interactive configuration | ||
|
||
If you want to automatically add a machine, you can provide a preseed configuration in YAML format to the {command}`microcloud preseed` command: | ||
|
||
cat <preseed_file> | microcloud preseed | ||
|
||
In the list of systems include only the new machine and set either `initiator` or `initiator_address` which can point to any machine | ||
that is already part of the MicroCloud. | ||
|
||
Make sure to distribute and run the same preseed configuration on the new and existing system configured using either `initiator` or `initiator_address`. | ||
|
||
The preseed YAML file must use the following syntax: | ||
|
||
```{literalinclude} preseed.yaml | ||
:language: YAML | ||
:emphasize-lines: 1-3,6-8,11-12,19,29-33 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters