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