blob: aa6ba9c5ae81bc516517ce57f08c02b7beac0d73 [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
15 - echo 'nameserver 172.18.208.44' >> /etc/resolvconf/resolv.conf.d/base
16 - resolvconf -u