| Jiri Broulik | 4ea221c | 2018-04-10 13:48:06 +0200 | [diff] [blame] | 1 | #cloud-config | 
|  | 2 | debug: True | 
|  | 3 | ssh_pwauth: True | 
|  | 4 | disable_root: false | 
|  | 5 | chpasswd: | 
|  | 6 | list: | | 
|  | 7 | root:r00tme | 
| Jiri Broulik | 4ea221c | 2018-04-10 13:48:06 +0200 | [diff] [blame] | 8 | #    cloud-user:r00tme | 
|  | 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 | 
|  | 14 | # speed up resolving, and not stuck on timeouts. One-shot changes | 
|  | 15 | - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf | 
| Vladimir Khlyunev | 86ff1ce | 2022-03-10 16:43:10 +0400 | [diff] [blame] | 16 | - echo 'nameserver 172.18.176.6' >> /etc/resolvconf/resolv.conf.d/base | 
| Jiri Broulik | 4ea221c | 2018-04-10 13:48:06 +0200 | [diff] [blame] | 17 | - resolvconf -u |