| Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 1 | #cloud-config | 
|  | 2 | debug: True | 
|  | 3 | ssh_pwauth: True | 
|  | 4 | disable_root: false | 
|  | 5 | chpasswd: | 
|  | 6 | list: | | 
|  | 7 | root:r00tme | 
|  | 8 | expire: False | 
|  | 9 | output: {all: '| tee -a /var/log/cloud-init-output.log'} | 
|  | 10 | runcmd: | 
|  | 11 | - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config | 
|  | 12 | - service sshd restart | 
|  | 13 | # speed up resolving, and not stuck on timeouts. One-shot changes | 
|  | 14 | - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf | 
| Vladimir Khlyunev | 86ff1ce | 2022-03-10 16:43:10 +0400 | [diff] [blame] | 15 | - echo 'nameserver 172.18.176.6' >> /etc/resolvconf/resolv.conf.d/base | 
| Ivan Berezovskiy | c46e7c0 | 2018-10-29 18:22:09 +0400 | [diff] [blame] | 16 | - resolvconf -u |