title: Proper syntax of write_files directive in cloud config?
body: <p>I'm trying to get a cloud config script working properly with my DigitalOcean droplet, but I'm testing on local lxc containers in the interim.</p>
  
  <p>One consistent problem I have is that I can never get the <code>write_files</code> directive working properly for more than one file. <strong>It seems to behave in weird ways that I cannot understand</strong>.</p>
  
  <p>For example, this configuration is incorrect, and only outputs a single file (<code>.tarsnaprc</code>) in <code>/tmp</code>:</p>
  
  <pre><code>#cloud-config
  users:
    - name: julian
      shell: /bin/bash
      ssh_authorized_keys:
        - ssh-rsa myrsakeygoeshere julian@hostname
  write_files:
    - path: /tmp/.tarsnaprc
      permissions: "0644"
      content: |
        cachedir /home/julian/tarsnap-cache
        keyfile /home/julian/tarsnap.key
        nodump
        print-stats
        checkpoint-bytes 1G
      owner: julian:julian
    - path: /tmp/lxc
      content: |
        lxc.id_map = u 0 100000 65536
        lxc.id_map = g 0 100000 65536
        lxc.network.type = veth
        lxc.network.link = lxcbr0
      permissions: "0644"
  </code></pre>
  
  <p>However, if I swap the two items in the <code>write_files</code> array, it magically works, and creates both files, <code>.tarsnaprc</code> and <code>lxc</code>. What am I doing wrong, do I have a syntax error?</p>