blob: afa3c70f107888d2b5c7f211695f0d3b9c4c37ea [file] [log] [blame]
#cloud-config
debug: True
ssh_pwauth: True
disable_root: false
chpasswd:
list: |
root:r00tme
# cloud-user:r00tme
expire: False
output: {all: '| tee -a /var/log/cloud-init-output.log'}
runcmd:
- sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
- service sshd restart
# speed up resolving, and not stuck on timeouts. One-shot changes
- echo '127.0.0.1 ubuntu' >> /etc/hosts
- echo 'options timeout:1 attempts:4' >> /etc/resolv.conf
- echo 'nameserver 172.18.176.6' >> /etc/resolvconf/resolv.conf.d/base
- resolvconf -u