Simple systemd service that checks /etc/teleport.yaml for the proxy URL, checks the teleport version of the proxy, and attempts to upgrade and apt-mark hold the teleport package. timer unit kicks it off once a day.
dependencies include curl
and yq
apt-get update && apt-get -y install curl
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq && chmod +x /usr/local/bin/yq
sudo cp auto-update-teleport /usr/sbin/auto-update-teleport
sudo chmod a+x /usr/sbin/auto-update-teleport
sudo cp auto-update-teleport.service auto-update-teleport.timer /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable auto-update-teleport.timer
sudo systemctl start auto-update-teleport.timer
sudo systemctl start auto-update-teleport.service