You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either mention the NOMAD_TOKEN env var or automatically export NOMAD_TOKEN as part of nomad acl bootstrap
$ nomad acl bootstrapAccessor ID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxSecret ID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxName = Bootstrap TokenType = managementGlobal = truePolicies = n/aCreate Time = 2021-03-31 17:08:45.468415 +0000 UTCCreate Index = 10Modify Index = 10Local envvar NOMAD_TOKEN has been set to Secret ID xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Or
$ nomad acl bootstrap...snipped...To continue using Nomad, runexport NOMAD_TOKEN=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Use-cases
This is a missed opportunity to teach the ACL system inline rather than relying on guides/docs.
The text was updated successfully, but these errors were encountered:
Modifying the current shell by exporting a variable is not possible, so printing the message would be way to go and it provides user two important information: what is the expected environment variable name and which value they should set.
#15894 discusses adding -json and -t to commands. When these flags are used the NOMAD_TOKEN message should not displayed. With a structure output option users will be able to modify their current shell session by doing something like:
Setting an environment variable is also OS specific, so instead of providing an exact command to run (which may not work for the user), the message should explain in broad terms that a NOMAD_TOKEN environment variable should be set.
Proposal
Either mention the
NOMAD_TOKEN
env var or automatically exportNOMAD_TOKEN
as part ofnomad acl bootstrap
Or
Use-cases
This is a missed opportunity to teach the ACL system inline rather than relying on guides/docs.
The text was updated successfully, but these errors were encountered: