alexz | 5b79514 | 2018-02-13 15:59:28 +0100 | [diff] [blame] | 1 | #cloud-config |
| 2 | debug: True |
| 3 | ssh_pwauth: True |
| 4 | disable_root: false |
| 5 | chpasswd: |
| 6 | list: | |
| 7 | root:ho5uo7Uome5d |
| 8 | # cloud-user:ho5uo7Uome5d |
| 9 | expire: False |
| 10 | output: {all: '| tee -a /var/log/cloud-init-output.log'} |
| 11 | runcmd: |
| 12 | - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config |
| 13 | - service sshd restart |
azvyagintsev | 4053eb2 | 2018-03-29 16:21:51 +0300 | [diff] [blame] | 14 | # 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 |