docs: remove -namespace option from commands when not applicable

This commit is contained in:
Tim Gross 2020-11-19 13:02:48 -05:00
parent d67afa2e21
commit c1a3496a55
44 changed files with 78 additions and 43 deletions

View File

@ -20,7 +20,7 @@ The `acl bootstrap` command requires no arguments.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -21,7 +21,7 @@ to file. The policy can be read from stdin by setting the path to "-".
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Apply Options

View File

@ -20,7 +20,7 @@ The `acl policy delete` command requires the policy name as an argument.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -22,7 +22,7 @@ The `acl policy info` command requires the policy name.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -18,7 +18,7 @@ nomad acl policy list
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## List Options

View File

@ -20,7 +20,7 @@ The `acl token create` command requires no arguments.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Create Options

View File

@ -20,7 +20,7 @@ The `acl token delete` command requires an existing token's AccessorID.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -21,7 +21,7 @@ The `acl token info` command requires an existing token's AccessorID.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -18,7 +18,7 @@ nomad acl token list
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## List Options

View File

@ -20,7 +20,7 @@ nomad acl token self
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -20,7 +20,7 @@ The `acl token update` command requires an existing token's accessor ID.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Create Options

View File

@ -20,7 +20,7 @@ nomad agent-info [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Output

View File

@ -21,7 +21,7 @@ nomad license get [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -21,7 +21,7 @@ nomad license put
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Put Options

View File

@ -27,7 +27,7 @@ The monitor command also allows you to specify a single client node id to follow
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Monitor Options

View File

@ -24,7 +24,7 @@ or updated.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Apply Options

View File

@ -23,7 +23,7 @@ The `namespace delete` command requires the name of the namespace to be deleted.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -23,7 +23,7 @@ nomad namespace inspect [options] <namespace_name>
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Inspect Options

View File

@ -23,7 +23,7 @@ The `namespace list` command requires no arguments.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## List Options

View File

@ -23,7 +23,7 @@ nomad namespace status [options] <namespace_name>
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -23,7 +23,7 @@ description below for specific usage information and requirements.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Node Config Options

View File

@ -46,7 +46,7 @@ operation is desired.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Drain Options

View File

@ -42,7 +42,7 @@ operation is desired.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Eligibility Options

View File

@ -30,7 +30,7 @@ information will be displayed. If running the command on a Nomad Client, the
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Status Options

View File

@ -19,7 +19,7 @@ nomad operator autopilot get-config [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
The output looks like this:

View File

@ -19,7 +19,7 @@ nomad operator autopilot set-config [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Set Config Options

View File

@ -37,7 +37,7 @@ configured.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Debug Options

View File

@ -23,7 +23,7 @@ nomad operator raft list-peers [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## List Peers Options

View File

@ -29,7 +29,7 @@ nomad operator raft remove-peer [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Remove Peer Options

View File

@ -101,7 +101,7 @@ nomad operator snapshot agent [options] <config_file>
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Snapshot agent Options

View File

@ -33,6 +33,6 @@ nomad operator snapshot restore [options] <file>
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
[outage recovery]: https://learn.hashicorp.com/tutorials/nomad/outage-recovery

View File

@ -36,7 +36,7 @@ nomad operator snapshot save [options] <file>
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Snapshot Save Options

View File

@ -27,7 +27,7 @@ of the most useful status fields for each.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Status Options

View File

@ -27,7 +27,7 @@ file name.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Apply Options

View File

@ -23,7 +23,7 @@ The `sentinel delete` command requires a single argument, the policy name.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -24,7 +24,7 @@ The `sentinel list` command requires no arguments.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -23,7 +23,7 @@ The `sentinel read` command requires a single argument, the policy name.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Read Options

View File

@ -25,7 +25,7 @@ to enter the "left" state.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -27,7 +27,7 @@ be 1.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -21,7 +21,7 @@ nomad server members [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Server Members Options

View File

@ -19,7 +19,7 @@ nomad system gc [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -18,7 +18,7 @@ nomad system reconcile summaries [options]
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -24,7 +24,7 @@ details for that object. Supported identifiers are jobs, allocations and nodes.
## General Options
@include 'general_options.mdx'
@include 'general_options_no_namespace.mdx'
## Examples

View File

@ -0,0 +1,35 @@
- `-address=<addr>`: The address of the Nomad server. Overrides the `NOMAD_ADDR`
environment variable if set. Defaults to `http://127.0.0.1:4646`.
- `-region=<region>`: The region of the Nomad server to forward commands to.
Overrides the `NOMAD_REGION` environment variable if set. Defaults to the
Agent's local region.
- `-no-color`: Disables colored command output. Alternatively,
`NOMAD_CLI_NO_COLOR` may be set.
- `-ca-cert=<path>`: Path to a PEM encoded CA cert file to use to verify the
Nomad server SSL certificate. Overrides the `NOMAD_CACERT` environment
variable if set.
- `-ca-path=<path>`: Path to a directory of PEM encoded CA cert files to verify
the Nomad server SSL certificate. If both `-ca-cert` and `-ca-path` are
specified, `-ca-cert` is used. Overrides the `NOMAD_CAPATH` environment
variable if set.
- `-client-cert=<path>`: Path to a PEM encoded client certificate for TLS
authentication to the Nomad server. Must also specify `-client-key`. Overrides
the `NOMAD_CLIENT_CERT` environment variable if set.
- `-client-key=<path>`: Path to an unencrypted PEM encoded private key matching
the client certificate from `-client-cert`. Overrides the `NOMAD_CLIENT_KEY`
environment variable if set.
- `-tls-server-name=<value>`: The server name to use as the SNI host when connecting
via TLS. Overrides the `NOMAD_TLS_SERVER_NAME` environment variable if set.
- `-tls-skip-verify`: Do not verify TLS certificate. This is highly not
recommended. Verification will also be skipped if `NOMAD_SKIP_VERIFY` is set.
- `-token`: The SecretID of an ACL token to use to authenticate API requests with.
Overrides the `NOMAD_TOKEN` environment variable if set.