blob: 4be7ab170006b8fbcc8695157fab797458fd1309 [file] [log] [blame]
azvyagintseve1b236a2018-07-13 16:59:49 +03001#cloud-config
2debug: True
3ssh_pwauth: True
4disable_root: false
5chpasswd:
6 list: |
7 root:r00tme
8# cloud-user:ho5uo7Uome5d
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 ssh 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
azvyagintseve1b236a2018-07-13 16:59:49 +030018 - resolvconf -u