blob: c021882643e471f672a343fd1b9a2fe22134a62e [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
azvyagintsev6d453852018-02-26 16:56:37 +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
azvyagintsev045d9e52018-12-05 14:24:36 +020015 - echo '127.0.0.1 ubuntu apt01' >> /etc/hosts
azvyagintsev6d453852018-02-26 16:56:37 +020016 - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf
Richard Felkl47757902018-03-02 22:44:43 +010017 - echo 'nameserver 172.18.208.44' >> /etc/resolvconf/resolv.conf.d/base
18 - resolvconf -u