blob: a4001a94b1f4842e02e9d4838c8999e11b5ef52c [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
8# root:ho5uo7Uome5d
9# cloud-user:r00tme
10 expire: False
11output: {all: '| tee -a /var/log/cloud-init-output.log'}
12runcmd:
13 - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
14 - service sshd restart
15# speed up resolving, and not stuck on timeouts. One-shot changes
16 - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf
17 - echo 'nameserver 172.18.208.44' >> /etc/resolvconf/resolv.conf.d/base
18 - resolvconf -u