Difference between revisions of "RMU build Gen-1.5: III. Maas - C. Share Services Via Teleport"
From Internet Computer Wiki
Katie.peters (talk | contribs) (Creating page) |
Katie.peters (talk | contribs) (Updating page) |
||
Line 4: | Line 4: | ||
== C. Share Services Via Teleport == | == C. Share Services Via Teleport == | ||
+ | Ref: <nowiki>https://www.youtube.com/watch?v=cvW4b96aPL0</nowiki> | ||
=== On the <code>teleport</code> server: === | === On the <code>teleport</code> server: === | ||
Line 25: | Line 26: | ||
#* Update the <code>ca_pin</code> resource with the file path to the token <code>/var/lib/teleport/ca_pin</code> | #* Update the <code>ca_pin</code> resource with the file path to the token <code>/var/lib/teleport/ca_pin</code> | ||
#* Add <code>labels:</code> section under <code>ssh_service:</code> | #* Add <code>labels:</code> section under <code>ssh_service:</code> | ||
+ | # Remove <code>commands:</code> section under <code>ssh_service:</code> | ||
+ | # Add <code>labels:</code> under <code>app_service: -> apps: -> <dc>-maas</code> service | ||
+ | # Sample <code>/etc/teleport.yaml</code> file | ||
+ | # Add Teleport to <code>/etc/hosts</code> | ||
+ | #* <code>sudo vi /etc/hosts</code> | ||
+ | #* add an entry of <code>10.10.100.22 <Domain name of your teleport server></code> Note: what you made [[RMU build Gen-1.5: I. Prerequisites#Domain Name|here]] | ||
+ | #* Save and quit the file | ||
+ | # Start the Teleport agent: | ||
+ | #* <code>sudo systemctl enable teleport</code> | ||
+ | #* <code>sudo systemctl start teleport</code> | ||
==Continue to next section: [[RMU build Gen-1.5: III. Maas - D. Initial Configuration of Maas Server|D. Initial Configuration of Maas Server]]== | ==Continue to next section: [[RMU build Gen-1.5: III. Maas - D. Initial Configuration of Maas Server|D. Initial Configuration of Maas Server]]== | ||
Go to the index of the [[RMU build Gen-1.5|Gen-1.5 RMU build runbook]]. | Go to the index of the [[RMU build Gen-1.5|Gen-1.5 RMU build runbook]]. |
Revision as of 19:16, 26 February 2024
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
token
andca_pin
values
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:
sudo teleport configure --output=file --proxy=<domain name>:443 --token=/var/lib/teleport/token --roles=app,node --app-name=<dc>-maas --app-uri=http://localhost:5240
- Save the token generated on the Teleport server:
sudo vi /var/lib/teleport/token
- Save the ca_pin generated on the Teleport server:
sudo vi /var/lib/teleport/ca_pin
- Edit the
/etc/teleport.yaml
to update theca_pin
resource:sudo vi /etc/teleport.yaml
- Update the
ca_pin
resource with the file path to the token/var/lib/teleport/ca_pin
- Add
labels:
section underssh_service:
- Remove
commands:
section underssh_service:
- Add
labels:
underapp_service: -> apps: -> <dc>-maas
service - Sample
/etc/teleport.yaml
file - Add Teleport to
/etc/hosts
sudo vi /etc/hosts
- add an entry of
10.10.100.22 <Domain name of your teleport server>
Note: what you made here - Save and quit the file
- Start the Teleport agent:
sudo systemctl enable teleport
sudo 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.