docs(ha-bootstrap): fix config tag length: 12 hex chars (6 bytes), not 16
This commit is contained in:
parent
c7badd3f96
commit
b8e6404fe2
1 changed files with 3 additions and 3 deletions
|
|
@ -97,13 +97,13 @@ The controller looks for config at:
|
||||||
{workdir}/{myname}/conf/cluster.bin.<hex_tag> ← capnp config blob
|
{workdir}/{myname}/conf/cluster.bin.<hex_tag> ← capnp config blob
|
||||||
```
|
```
|
||||||
|
|
||||||
The `<hex_tag>` is the first 16 hex chars of the SHA-256 of the config blob
|
The `<hex_tag>` is the first **12 hex chars** of the SHA-256 of the config blob
|
||||||
(= first 8 bytes).
|
(= first 6 bytes). The controller validates exactly 12 lowercase hex characters.
|
||||||
|
|
||||||
**Install config on Node A only:**
|
**Install config on Node A only:**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
TAG=$(sha256sum /path/to/your_config.bin | awk '{print $1}' | cut -c1-16)
|
TAG=$(sha256sum /path/to/your_config.bin | awk '{print $1}' | cut -c1-12)
|
||||||
echo "Config tag: $TAG"
|
echo "Config tag: $TAG"
|
||||||
|
|
||||||
CONF_DIR="/tmp/xce-a/ctrl-a/conf"
|
CONF_DIR="/tmp/xce-a/ctrl-a/conf"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue