blob: f00c7374c5303b37160f74544d4c4e737a9950a5 [file] [log] [blame]
Jiri Broulik4ea221c2018-04-10 13:48:06 +02001#cloud-config
2debug: True
3ssh_pwauth: True
4disable_root: false
5chpasswd:
6 list: |
7 root:r00tme
Jiri Broulik4ea221c2018-04-10 13:48:06 +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
15 - echo 'options timeout:1 attempts:4' >> /etc/resolv.conf
Vladimir Khlyunev86ff1ce2022-03-10 16:43:10 +040016 - echo 'nameserver 172.18.176.6' >> /etc/resolvconf/resolv.conf.d/base
Jiri Broulik4ea221c2018-04-10 13:48:06 +020017 - resolvconf -u