RMU build Gen-1.5: III. Maas - C. Share Services Via Teleport
From Internet Computer Wiki
This page is part of the Gen-1.5 RMU build runbook.
Go back to the previous section: B. Install Maas Software via APT
Ref: https://www.youtube.com/watch?v=cvW4b96aPL0
On the teleport server:
- Create a short lived token to “invite” the MaaS application
tctl tokens add --type=app,node --app-name=<dc>-maas --app-uri=http://localhost:5240- Take note of the
tokenandca_pinvalues
On the maas server:
- Install the Teleport agent:
sudo curl https://goteleport.com/static/install.sh | bash -s <teleport version>
- create the Teleport application config:
- Save the token generated on the Teleport server:
- Save the ca_pin generated on the Teleport server:
- Edit the
/etc/teleport.yamlto update theca_pinresource:sudo vi /etc/teleport.yaml- Update the
ca_pinresource with the file path to the token/var/lib/teleport/ca_pin - Add
labels:section underssh_service:labels: dc: "<dc>" login: "<admin user login>"
- Remove
commands:section underssh_service:commands: - name: hostname command: [hostname] period: 1m0s
- Add
labels:underapp_service: -> apps: -> <dc>-maasservice- name: <dc>-maas uri: http://localhost:5240 public_addr: "" insecure_skip_verify: false labels: dc: "<dc>" type: "maas"
- Sample
/etc/teleport.yamlfileversion: v3 teleport: nodename: maas data_dir: /var/lib/teleport join_params: token_name: /var/lib/teleport/token method: token proxy_server: teleport.<domain>:443 log: output: stderr severity: INFO format: output: text ca_pin: /var/lib/teleport/ca_pin diag_addr: "" auth_service: enabled: "no" ssh_service: enabled: "yes" labels: dc: "<dc>" login: "maas" proxy_service: enabled: "no" https_keypairs: [] https_keypairs_reload_interval: 0s acme: {} app_service: enabled: "yes" debug_app: false apps: - name: bo1-maas uri: http://localhost:5240 public_addr: "" insecure_skip_verify: false labels: dc: "<dc>" type: "maas"
- Add Teleport to
/etc/hostssudo vi /etc/hosts- add an entry of
10.10.100.22 <Domain name of your teleport server>(what you made here) 
- Save and quit the file
- Start the Teleport agent:
sudo systemctl enable teleportsudo systemctl start teleport
Continue to next section: D. Initial Configuration of Maas Server
Go to the index of the Gen-1.5 RMU build runbook.