Refactored scripts

This commit is contained in:
B.J. Dweck 2020-11-02 11:51:20 +02:00
parent 1d35e2beba
commit cce80e6fde
2 changed files with 13 additions and 21 deletions

View File

@ -41,19 +41,11 @@ apt:
packages: ['torch-agent']
runcmd:
# Disable optional PAM features for faster SSH login
# - 'mv /etc/pam.d/sshd /etc/pam.d/sshd.bak'
# - 'sed "s/^session[ \t]\+optional/#\0/" /etc/pam.d/sshd.bak > /etc/pam.d/sshd'
# Back up the SSH default config and activate the new config
# - 'mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak'
# - 'mv /etc/ssh/sshd_config.new /etc/ssh/sshd_config'
# - 'service ssh reload'
# Multi-arch support on aarch64
- 'dpkg --add-architecture armhf'
# Run optional script for additoinal package setup
# Run setup scripts
- '/boot/firmware/cloud-init/initial-setup.sh'
- '/boot/firmware/cloud-init/configure-torch.sh'
- 'reboot now'