blob: 110d9ad384501dc778eeb953239432311d9ab350 [file] [log] [blame]
alexz5b795142018-02-13 15:59:28 +01001#cloud-config
2debug: True
3ssh_pwauth: True
4disable_root: false
5chpasswd:
6 list: |
7 root:ho5uo7Uome5d
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 sshd restart
azvyagintsev4053eb22018-03-29 16:21:51 +030014# 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
17 - echo 'nameserver 172.18.208.44' >> /etc/resolvconf/resolv.conf.d/base
18 - resolvconf -u