diff --git a/src/install-torch.sh b/src/configure-torch.sh similarity index 54% rename from src/install-torch.sh rename to src/configure-torch.sh index 09ef8f5..aa8db44 100755 --- a/src/install-torch.sh +++ b/src/configure-torch.sh @@ -1,7 +1,6 @@ #!/bin/sh -e -apt-get -y install /boot/firmware/cloud-init/torch-agent_0.0.4-1_all.deb cp -r /boot/firmware/cloud-init/torch-config/* /etc/torch/ chown torch -R /etc/torch systemctl daemon-reload -systemctl enable torch-agent \ No newline at end of file +systemctl enable torch-agent diff --git a/src/torch-agent_0.0.4-1_all.deb b/src/torch-agent_0.0.4-1_all.deb deleted file mode 100644 index 7c9a311..0000000 Binary files a/src/torch-agent_0.0.4-1_all.deb and /dev/null differ diff --git a/src/user-data b/src/user-data index 6bf20eb..3f6e534 100644 --- a/src/user-data +++ b/src/user-data @@ -14,6 +14,32 @@ users: ssh_authorized_keys: - $SSH_PUBKEY +apt: + sources: + rudefox.list: + source: "deb https://repo.rudefox.io/repository/apt-release focal main" + key: | + -----BEGIN PGP PUBLIC KEY BLOCK----- + + mQENBF98c5oBCADb1LGtaxRg6pCHadJ72XVgkOkdrCBs7TElovYeX1y/pj1kUmSN + +RO0Ax0YlHxKpuicIEU3HzL8qJ0FbB9ShGnYXxVhxn4HuVSvVpqcExCK2Dkz2g2+ + 0HpmDsptcsHpvTr0JiPClr4GgbeJuoz5kBOwmE8uQ5NswUysvkOWnlht1ILZMGat + wimqQaJbZ57TI+q3GPCRaWc2bwRoFS/bVjQrZ18fkRcdUsWLcy0JuipoBklWbKSP + VT1kfwz+akhyjiNO8F9n+5JYDi6vbZIwucQMcsLkZyvhdhLPfd37jjdFFF7EIG4d + tsF50JzbpAEt4FfHDvyEgfOTE+CWU52CS5EBABEBAAG0H1RPUmNoLUFnZW50IDxi + amR3ZWNrQGdtYWlsLmNvbT6JAU4EEwEKADgWIQQU2IX2LS4EHRNbm77btWA5gL84 + gwUCX3xzmgIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRDbtWA5gL84g5pq + B/48M4WZLfoeLNuw39MEDXF7WSDglF5qle7I8AnB0OTxER1WZO8ZiZcHjZChINXY + qTglpfdj525cD2s7ClFkFMsvAUy+th/otguac41DZcbiJUQoNAHbu3rAdnEHERxU + 8at6us1kgou5Cd+zz9a6LbusUte4MCTGx/yAd0mNrZqkMO8v0Rb0VvKZhm658RXp + y8ExNfZYRLy1qH5K+ucL78dczAeIMyYlEUXJpFVvR7vgpMOQuIcSA7ez4gXNWmwp + rgzJtFxzVo1RGDujlcjqJxH02KXo52KRmkXxfF8gF3Rkt4pNuCgw9v9flvBg9dEb + fwqgmqM4gR+TXquJ7e9wnvly + =VE78 + -----END PGP PUBLIC KEY BLOCK----- + +packages: ['torch-agent'] + runcmd: # Disable optional PAM features for faster SSH login # - 'mv /etc/pam.d/sshd /etc/pam.d/sshd.bak' @@ -29,5 +55,5 @@ runcmd: # Run optional script for additoinal package setup - '/boot/firmware/cloud-init/initial-setup.sh' - - '/boot/firmware/cloud-init/install-torch.sh' - - 'reboot now' \ No newline at end of file + - '/boot/firmware/cloud-init/configure-torch.sh' + - 'reboot now'