-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update license to do logic in teleport configure #51220
base: master
Are you sure you want to change the base?
Conversation
Thanks for adding this, I noticed that we've a few other options and more helpful tools, https://goteleport.com/docs/reference/cli/teleport/ such as Can you export the final tested output? If we add this logic, I would also add where the license files goes in the YAML config. For Reference, I've exported the current $ teleport configure
#
# A Sample Teleport configuration file.
#
# Things to update:
# 1. license.pem: Retrieve a license from your Teleport account https://teleport.sh
# if you are an Enterprise customer.
#
version: v3
teleport:
nodename: ip-10-0-0-252
data_dir: /var/lib/teleport
log:
output: stderr
severity: INFO
format:
output: text
ca_pin: ""
diag_addr: ""
auth_service:
enabled: "yes"
listen_addr: 0.0.0.0:3025
proxy_listener_mode: multiplex
ssh_service:
enabled: "yes"
proxy_service:
enabled: "yes"
https_keypairs: []
https_keypairs_reload_interval: 0s
acme: {}
WARNING: The data directory /var/lib/teleport is not empty and may contain existing cluster state. Running this configuration is likely a mistake. To join a new cluster, specify an alternate --data-dir or clear the /var/lib/teleport directory.
$ teleport configure --roles=node
#
# A Sample Teleport configuration file.
#
# Things to update:
# 1. license.pem: Retrieve a license from your Teleport account https://teleport.sh
# if you are an Enterprise customer.
#
version: v3
teleport:
nodename: ip-10-0-0-252
data_dir: /var/lib/teleport
log:
output: stderr
severity: INFO
format:
output: text
ca_pin: ""
diag_addr: ""
auth_service:
enabled: "no"
ssh_service:
enabled: "yes"
proxy_service:
enabled: "no"
https_keypairs: []
https_keypairs_reload_interval: 0s
acme: {}
WARNING: The data directory /var/lib/teleport is not empty and may contain existing cluster state. Running this configuration is likely a mistake. To join a new cluster, specify an alternate --data-dir or clear the /var/lib/teleport directory.
$ teleport node configure
#
# A Sample Teleport configuration file.
#
# Things to update:
# 1. license.pem: Retrieve a license from your Teleport account https://teleport.sh
# if you are an Enterprise customer.
#
version: v3
teleport:
nodename: ip-10-0-0-252
data_dir: /var/lib/teleport
join_params:
token_name: ""
method: token
log:
output: stderr
severity: INFO
format:
output: text
ca_pin: ""
diag_addr: ""
auth_service:
enabled: "no"
ssh_service:
enabled: "yes"
proxy_service:
enabled: "no"
https_keypairs: []
https_keypairs_reload_interval: 0s
acme: {}
WARNING: The data directory /var/lib/teleport is not empty and may contain existing cluster state. Running this configuration is likely a mistake. To join a new cluster, specify an alternate --data-dir or clear the /var/lib/teleport directory. |
A couple thoughts:
|
Updates
teleport configure
comments output for:This provides the following benefit:
An example would be if you do a
teleport configure --roles=node
it gives you a to do for the license when only SSH is enabled. This doesn't apply whether you are a ent customer or not.Updated outputs:
teleport configure
orteleport configure --roles=proxy,node,auth
in OSS:teleport configure --roles=node
in OSS and ent builds:License.pem recommended just in ent builds including the auth service on
teleport configure
: