| | # All the data below will be stored as a string object |
| #cloud-config, see http://cloudinit.readthedocs.io/en/latest/topics/examples.html |
| sudo: ALL=(ALL) NOPASSWD:ALL |
| {% for key in config.underlay.ssh_keys %} |
| - ssh-rsa {{ key['public'] }} |
| - sed -i -e '/^PermitRootLogin/s/^.*$/PermitRootLogin yes/' /etc/ssh/sshd_config |
| all: '| tee -a /var/log/cloud-init-output.log /dev/tty0' |
| - sudo echo "nameserver {gateway}" >> /etc/resolvconf/resolv.conf.d/base |
| # Prepare network connection |
| #- sudo route add default gw {gateway} {interface_name} |
| - fallocate -l 4G /swapfile |
| - echo "/swapfile none swap defaults 0 0" >> /etc/fstab |
| - path: /etc/network/interfaces |