grant-bootstrap re-applies the granter and restarts failed policy units; setup treats a refused granting unit as not done
This commit is contained in:
parent
ae37c228b1
commit
c7d37ca455
1 changed files with 271 additions and 33 deletions
|
|
@ -116,7 +116,11 @@ It writes the `bao-bootstrap` policy, places a 24h grant token for
|
|||
`swarm-bao-granter-role` and restarts that unit. The token comes from the
|
||||
hidden prompt, or from stdin when stdin isn't a terminal; never from an
|
||||
argument or environment variable. If the granter exists already, it
|
||||
says so and does nothing. To do both steps in one go,
|
||||
runs the same steps again: this is also how a change to the granter's own
|
||||
policy or to `bao-bootstrap` reaches an existing store, because a deploy
|
||||
changes the text on the host and not in the store. Afterwards it resets and
|
||||
restarts every failed `swarm-bao-*-policy` unit, which otherwise stays down once
|
||||
it hits its start limit. To do both steps in one go,
|
||||
without re-typing the root token, run `swarmctl bao init --and-grant`
|
||||
instead (it needs the `pkcs11` seal, which unseals itself).
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue