lib/web/scripts/node-join/README.md
This is an automated node join script for Teleport, which does the following:
nc, telnet or /dev/tcp if available - if none of these are available this step is skippedtar for tarball extraction if neededdpkg for .deb installsdnf, yum or rpm for .rpm installssystemd on Linuxlaunchctl on MacOSThings it doesn't do (yet):
Linux
.deb packagecentos6 tarball package to handle the lower glibc version..rpm package.tar.gz tarball packagemacOS
.tar.gz tarball packageRequired arguments:
| Flag | Description | Example value | Required |
|---|---|---|---|
-v | Teleport version | 4.3.5 | yes |
-h | Hostname for the Teleport Proxy Service | teleport.example.com | yes |
-j | A valid node join token | ool7ahpo4thohmeuS1gieY7laiwae7oo | yes |
-c | The CA pin hash of the cluster being joined | sha256:6abdd3a143a230fd31c9706d668bba3ee25a6e0eec54fcd69680c1ec0530fe9c | yes |
-p | Port connect to on the Teleport Proxy Service | 3080 | no |
If any of these arguments is not provided via CLI flags, they will be requested interactively at runtime.
Optional extra flags:
| Flag | Description | Example value | Required |
|---|---|---|---|
-q | Enable quiet mode | n/a | no |
-l | Write logs to file | /var/log/teleport-node-installer.log | no |
$ bash ./install.sh \
-j ool7ahpo4thohmeuS1gieY7laiwae7oo \
-c sha256:6abdd3a143a230fd31c9706d668bba3ee25a6e0eec54fcd69680c1ec0530fe9c \
-h teleport.example.com \
-p 3080 \
-v 4.3.5