#cloud-config ssh_pwauth: True user: ${user} password: ${password} chpasswd: expire: False ssh_authorized_keys: %{ for sk in ssh_keys ~} - ${sk} %{ endfor ~} %{ if write_files ~} write_files: %{ for fl in write_files ~} - path: ${fl.path} owner: ${fl.owner}:${fl.group} permissions: 0o${fl.permissions} defer: true content: ${fl.content} %{ endfor ~} %{if runcmd ~} # Work around network interface down after boot runcmd: %{ for cmd in runcmd ~} - ${cmd} %{ endfor ~} %{ endif ~}