blob: 6d5d8a5a2cb1e00bbe91f7795f210e43072b531d [file] [log] [blame]
azvyagintsev6d453852018-02-26 16:56:37 +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 '127.0.0.1 ubuntu' >> /etc/hosts
17 - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf
Richard Felkl47757902018-03-02 22:44:43 +010018 - echo 'nameserver 172.18.208.44' >> /etc/resolvconf/resolv.conf.d/base
19 - resolvconf -u