#cloud-config hostname: ${hostname} package_update: true package_upgrade: false packages: - atop users: - name: ${username} sudo: "ALL=(ALL) NOPASSWD:ALL" groups: "sudo" shell: /bin/bash ssh_authorized_keys: %{ if length(ssh_authorized_keys) > 0 ~} %{ for key in ssh_authorized_keys ~} - ${key} %{ endfor ~} %{ else ~} [] %{ endif ~}