granter role unit: no-op when the granter login works, delete the token after success
This commit is contained in:
parent
0c6e8fc5a2
commit
3db835fb57
1 changed files with 42 additions and 3 deletions
|
|
@ -37,13 +37,13 @@ systemctl restart swarm-bao-granter-role
|
|||
|
||||
Check `systemctl status swarm-bao-granter-role` logs
|
||||
`Uploaded policy: bao-granter`, then restart the granting units that
|
||||
failed while they waited, and remove the token:
|
||||
failed while they waited. The granter unit deletes the token itself after a
|
||||
successful run:
|
||||
|
||||
```bash
|
||||
systemctl reset-failed 'swarm-bao-*-policy.service' swarm-bao-agent-pki.service
|
||||
systemctl restart 'swarm-bao-*-policy.service' swarm-bao-agent-pki.service
|
||||
systemctl status swarm-bao-controller-policy # Uploaded policy, Data written to: auth/cert/certs/swarm-controller
|
||||
rm /var/lib/swarm-bao-bootstrap/grant.token
|
||||
```
|
||||
|
||||
⏱️ A first attempt right after a rebuild may fail with `local node not
|
||||
|
|
|
|||
Loading…
Reference in a new issue