Skip to content

Commit

Permalink
fix(teleport): load machine-id
Browse files Browse the repository at this point in the history
  • Loading branch information
abuisine committed Aug 24, 2023
1 parent 16536bc commit 7f6c46b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion create_teleport_sysext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ cat > "${SYSEXTNAME}/usr/lib/systemd/system/teleport.service" <<-'EOF'
[Unit]
Description=Teleport SSH Service
After=network.target
After=systemd-machine-id-commit.service
Requires=systemd-machine-id-commit.service
[Service]
Type=simple
Expand All @@ -43,7 +46,7 @@ Restart=on-failure
# want to run all three roles on a single host
# --roles='proxy,auth,node' is the default value
# if none is set
ExecStart=/usr/bin/teleport start --roles=node --config=/etc/teleport.yaml --pid-file=/run/teleport.pid --token=${MACHINE_ID}
ExecStart=/usr/bin/teleport start --roles=node --config=/etc/teleport.yaml --pid-file=/run/teleport.pid --token=$(cat /etc/machine-id)
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/run/teleport.pid
LimitNOFILE=524288
Expand Down

0 comments on commit 7f6c46b

Please sign in to comment.