mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-29 06:31:10 +01:00
Update docs on the init command
This commit is contained in:
parent
bd5fb7da11
commit
26ea86a100
@ -28,6 +28,11 @@ FEATURES:
|
|||||||
environment variable. See the [environment variable
|
environment variable. See the [environment variable
|
||||||
documentation](https://www.vaultproject.io/docs/commands/environment.html)
|
documentation](https://www.vaultproject.io/docs/commands/environment.html)
|
||||||
for more details. [GH-1594]
|
for more details. [GH-1594]
|
||||||
|
* **Service Discovery in `vault init`**: `-auto` option on `vault init`
|
||||||
|
will perform service discovery using Consul. When only one node is
|
||||||
|
discovered, an initialization attempt will be made and when more than
|
||||||
|
one node is discovered, they will be output. See `vault init --help`
|
||||||
|
for more details. [GH-1642]
|
||||||
* **MongoDB Secret Backend**: Generate dynamic unique MongoDB database
|
* **MongoDB Secret Backend**: Generate dynamic unique MongoDB database
|
||||||
credentials based on configured roles. Sponsored by
|
credentials based on configured roles. Sponsored by
|
||||||
[CommerceHub](http://www.commercehub.com/). [GH-1414]
|
[CommerceHub](http://www.commercehub.com/). [GH-1414]
|
||||||
@ -49,7 +54,6 @@ IMPROVEMENTS:
|
|||||||
fields [GH-1567]
|
fields [GH-1567]
|
||||||
* cli: `vault write -field` now allows selecting wrapped response fields
|
* cli: `vault write -field` now allows selecting wrapped response fields
|
||||||
[GH-1567]
|
[GH-1567]
|
||||||
* command/init: Added service discovery to `init` command [GH-1642]
|
|
||||||
* core: Response wrapping is now enabled for login endpoints [GH-1588]
|
* core: Response wrapping is now enabled for login endpoints [GH-1588]
|
||||||
* core: The duration of leadership is now exported via events through
|
* core: The duration of leadership is now exported via events through
|
||||||
telemetry [GH-1625]
|
telemetry [GH-1625]
|
||||||
|
|||||||
@ -303,27 +303,28 @@ Init Options:
|
|||||||
-recovery-pgp-keys If provided, behaves like "pgp-keys" but for the
|
-recovery-pgp-keys If provided, behaves like "pgp-keys" but for the
|
||||||
recovery key shares. This is not normally available.
|
recovery key shares. This is not normally available.
|
||||||
|
|
||||||
-auto If set, performs service discovery using the underlying
|
-auto If set, performs service discovery using Consul. When
|
||||||
Consul storage backend. When one or more Vault servers
|
all the nodes of a Vault cluster are registered with
|
||||||
are using Consul for data storage, setting this flag
|
Consul, setting this flag will trigger service discovery
|
||||||
will create a Consul client and discover nodes using
|
using the service name with which Vault nodes are
|
||||||
the service name under which Vault nodes are registered
|
registered. This option works well when each Vault
|
||||||
with Consul. The service name can be changed using
|
cluster is registered under a unique service name.
|
||||||
'consul-service' flag. This option works well when each
|
Note that, when Consul is serving as Vault's HA backend,
|
||||||
Vault cluster is registered under a unique service name.
|
Vault nodes are registered with Consul by default. The
|
||||||
|
service name can be changed using 'consul-service' flag.
|
||||||
Ensure that environment variables required to communicate
|
Ensure that environment variables required to communicate
|
||||||
with Consul, like (CONSUL_HTTP_ADDR, CONSUL_HTTP_TOKEN,
|
with Consul, like (CONSUL_HTTP_ADDR, CONSUL_HTTP_TOKEN,
|
||||||
CONSUL_HTTP_SSL, et al) are properly set. If only one
|
CONSUL_HTTP_SSL, et al) are properly set. When only one
|
||||||
Vault node is discovered, then an initialization attempt
|
Vault node is discovered, an initialization attempt will
|
||||||
will be made. If more than one Vault node is discovered,
|
be made. When more than one Vault node is discovered,
|
||||||
they will be output.
|
they will be output.
|
||||||
|
|
||||||
-consul-service Service name under which all the nodes of a Vault cluster
|
-consul-service Service name under which all the nodes of a Vault cluster
|
||||||
are registered with Consul. When Vault uses Consul as its
|
are registered with Consul. Note that, when Vault uses
|
||||||
storage backend, by default, it will register as a service
|
Consul as its HA backend, by default, Vault will register
|
||||||
with Consul by the name "vault". This name can be modified
|
itself as a service with Consul by the service name "vault".
|
||||||
in Vault's configuration file, using the "service" option
|
This name can be modified in Vault's configuration file,
|
||||||
for the Consul backend.
|
using the "service" option for the Consul backend.
|
||||||
`
|
`
|
||||||
return strings.TrimSpace(helpText)
|
return strings.TrimSpace(helpText)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user