You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/05/28 18:31:17 UTC

[GitHub] [cloudstack-documentation] onitake edited a comment on pull request #132: cloud-init and UserData service documentation cleanup

onitake edited a comment on pull request #132:
URL: https://github.com/apache/cloudstack-documentation/pull/132#issuecomment-635520373


   One more thing: Simply base64-ing the cloud-config and passing it to cloudmonkey is not enough. It needs to be a proper multi-part MIME message, such as this one:
   
   ```
   Content-Type: multipart/mixed; boundary="//"
   MIME-Version: 1.0
   
   --//
   Content-Type: text/cloud-config; charset="us-ascii"
   MIME-Version: 1.0
   Content-Transfer-Encoding: 7bit
   Content-Disposition: attachment; filename="cloud-config.txt"
   
   #cloud-config
   write_files:
   - path: /testfile    
     content: hello world
   ```
   
   I think I'm also going to add this to the example.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org