blob: afa3c70f107888d2b5c7f211695f0d3b9c4c37ea [file] [log] [blame]
azvyagintsev9a1737f2019-03-11 15:44:54 +02001#cloud-config
2debug: True
3ssh_pwauth: True
4disable_root: false
5chpasswd:
6 list: |
7 root:r00tme
8# cloud-user:r00tme
9 expire: False
10output: {all: '| tee -a /var/log/cloud-init-output.log'}
11runcmd:
12 - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
13 - service sshd restart
14# speed up resolving, and not stuck on timeouts. One-shot changes
15 - echo '127.0.0.1 ubuntu' >> /etc/hosts
16 - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf
Vladimir Khlyunev86ff1ce2022-03-10 16:43:10 +040017 - echo 'nameserver 172.18.176.6' >> /etc/resolvconf/resolv.conf.d/base
azvyagintsev9a1737f2019-03-11 15:44:54 +020018 - resolvconf -u