Add license inspect command documentation and changelog (#10351)

Also reformatted another changelog entry.
This commit is contained in:
Matt Keeler 2021-06-04 14:33:13 -04:00 committed by GitHub
parent 1766aa8a84
commit 42007d4a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 68 additions and 4 deletions

View File

@ -1,2 +1,3 @@
```release-note:improvement ```release-note:improvement
licensing: **(Enterprise Only)** Consul Enterprise has gained the ability update its license via a configuration reload. The same environment variables and configurations will be used to determine the new license.``` licensing: **(Enterprise Only)** Consul Enterprise has gained the ability update its license via a configuration reload. The same environment variables and configurations will be used to determine the new license.
```

3
.changelog/_938.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:improvement
licensing: **(Enterprise Only)** Consul Enterprise has gained the `consul license inspect` CLI command for inspecting a license without applying it..
```

View File

@ -45,6 +45,10 @@ Usage: consul license <subcommand> [options] [args]
$ consul license get $ consul license get
Inspect a license:
$ consul license inspect "<path to license file>"
Reset the current license: Reset the current license:
$ consul license reset $ consul license reset
@ -52,11 +56,67 @@ Usage: consul license <subcommand> [options] [args]
For more examples, ask for subcommand help or view the documentation. For more examples, ask for subcommand help or view the documentation.
Subcommands: Subcommands:
get Get the current license get Get the active license
inspect Inspect a signed license
put Puts a new license in the datacenter put Puts a new license in the datacenter
reset Resets the license in the datacenter reset Resets the license in the datacenter
``` ```
## inspect
This command inspects and validates a license. Just like a Consul agent it
can load the license from a file on disk or from the `CONSUL_LICENSE` and
`CONSUL_LICENSE_PATH` environment variables.
Usage: `consul license inspect [<options>] [<license file>]`
Inspect a license contained in a file:
```
$ consul license inspect consul.hclic
```
Inspect a license loaded from the environment:
```
$ consul license inspect
```
This will look at the CONSUL_LICENSE environment variable first
and if not present then we will look for the file specified
by the CONSUL_LICENSE_PATH environment variable.
The output looks like this:
```
Source: /consul/config/consul.hclic (path from the CONSUL_LICENSE_PATH environment variable)
Product: consul
License ID: 6089174b-a713-74cf-4c8d-856b86f1ce50
Customer ID: 7c020610-60a2-7ccb-c210-20d899e5f3b4
Installation ID: *
Issue Time: 2020-09-14 19:45:56.212195875 +0000 UTC
Start Time: 2020-09-14 00:00:00 +0000 UTC
Expiration Time: 2021-09-14 23:59:59.999 +0000 UTC
Termination Time: 2021-09-14 23:59:59.999 +0000 UTC
Modules:
Global Visibility, Routing and Scale
Governance and Policy
Features:
Automated Backups
Automated Upgrades
Enhanced Read Scalability
Network Segments
Redundancy Zone
Advanced Network Federation
Namespaces
SSO
Audit Logging
Admin Partitions
License is valid
```
## put ## put
-> **Deprecated** The ability to manage the cluster's license via the CLI -> **Deprecated** The ability to manage the cluster's license via the CLI