Rename to make-bootstrap to create-bootstrap

This commit is contained in:
Brian Picciano 2022-11-05 16:41:14 +01:00
parent 4bc0750797
commit 0d7d69679f
2 changed files with 6 additions and 6 deletions

View File

@ -43,7 +43,7 @@ To create a `bootstrap.yml` file for the new host, the admin should perform the
following command from their own host:
```
cryptic-net hosts make-bootstrap \
cryptic-net hosts create-bootstrap \
--hostname <name> \
--ip <ip> \
--admin-path <path to admin.yml> \
@ -61,12 +61,12 @@ running their host's `cryptic-net daemon`.
### Encrypted `admin.yml`
If `admin.yml` is kept in an encrypted format on disk (it should be!) then the
decrypted form can be piped into `make-bootstrap` over stdin. For example, if
decrypted form can be piped into `create-bootstrap` over stdin. For example, if
GPG is being used to secure `admin.yml` then the following could be used to
generate a `bootstrap.yml`:
```
gpg -d <path to admin.yml.gpg> | cryptic-net hosts make-boostrap \
gpg -d <path to admin.yml.gpg> | cryptic-net hosts create-bootstrap \
--hostname <name> \
--ip <ip> \
--admin-path - \

View File

@ -245,8 +245,8 @@ var subCmdAdminCreateNetwork = subCmd{
},
}
var subCmdAdminMakeBootstrap = subCmd{
name: "make-bootstrap",
var subCmdAdminCreateBootstrap = subCmd{
name: "create-bootstrap",
descr: "Creates a new bootstrap.yml file for a particular host and writes it to stdout",
checkLock: true,
do: func(subCmdCtx subCmdCtx) error {
@ -335,7 +335,7 @@ var subCmdAdmin = subCmd{
do: func(subCmdCtx subCmdCtx) error {
return subCmdCtx.doSubCmd(
subCmdAdminCreateNetwork,
subCmdAdminMakeBootstrap,
subCmdAdminCreateBootstrap,
)
},
}