blob: 639b0c38017e685994452abb99372c96ee8d3e6e [file] [log] [blame]
Jiri Broulik4ea221c2018-04-10 13:48:06 +02001#cloud-config
2debug: True
3ssh_pwauth: True
4disable_root: false
5chpasswd:
6 list: |
7 root:r00tme
Jiri Broulik4ea221c2018-04-10 13:48:06 +02008# 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 'options timeout:1 attempts:4' >> /etc/resolv.conf
16 - echo 'nameserver 172.18.208.44' >> /etc/resolvconf/resolv.conf.d/base
17 - resolvconf -u