-
Notifications
You must be signed in to change notification settings - Fork 0
Bootstrap provisioner
mvgijssel edited this page May 26, 2023
·
3 revisions
-
Add SSH - Provisioner Ed25519 SSH Key to 1Password and store in private Vault.
-
Install Raspberry Pi Imager https://www.raspberrypi.com/software/
-
Select Ubuntu Server 22.10 64-bit and flash to sd card.
-
Use the Raspberry Pi Imager to set parts of the configuration already including public key SSH - Provisioner Ed25519
-
Flash the sd card and put into Raspberry Pi
-
Update hostname and ip using Unifi:
- ip: 192.168.1.31
- hostname: provisioner
-
Create
tmp/1password-service-account-token-prod
using itemService Account Auth Token: vgijssel-prod
fromvgijssel-prod
1Password Vault. -
Run provision
SETUP_ENV=prod bazel run //provisioner:provision
- SSH into the provisioner
ssh [email protected]
- Create the
teleport-admin
usersudo tctl users add teleport-admin --roles=editor,access --logins=ubuntu
- Setup password and MFA following the prompt
- Login to the provisioner
tsh ssh ubuntu@provisioner
- Create buildbuddy teleport user
tctl users add --roles access buildbuddy
- Setup password and MFA following the prompt
- Create identity file expiring after 90 days
tctl auth sign -o identity --user buildbuddy --format file --ttl 2160h
- Copy the content of the
identity
file - Remove the
identity
file - Navigate to https://app.buildbuddy.io/settings/org/secrets and create
TELEPORT_BUILDBUDDY_IDENTITY
with the file content