Refactored scripts
This commit is contained in:
parent
1d35e2beba
commit
cce80e6fde
|
@ -41,19 +41,11 @@ apt:
|
||||||
packages: ['torch-agent']
|
packages: ['torch-agent']
|
||||||
|
|
||||||
runcmd:
|
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
|
# Multi-arch support on aarch64
|
||||||
- 'dpkg --add-architecture armhf'
|
- '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/initial-setup.sh'
|
||||||
- '/boot/firmware/cloud-init/configure-torch.sh'
|
- '/boot/firmware/cloud-init/configure-torch.sh'
|
||||||
- 'reboot now'
|
- 'reboot now'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user