-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudinit Multipart Configuration Resource #4095
Conversation
Hmm interesting... do you think this could just be a general multipart MIME encoder? It sure looks close at first glance... I'd be tempted to name it |
@apparentlymart sort of. It does have some additional behaviour that currently stops it being a generic multipart encoder, though I'm not opposed necessarily to the idea of generalising it:
|
@jen20 I've found an issue. I'll submit a PR against this branch |
Also see #4189 - this requires using a fork of the |
@jen20 is there any chance of getting this merged for the next release? |
LGTM |
This adds a new resource to template to generate multipart cloudinit configurations to be used with other providers/resources. The resource has the ability gzip and base64 encode the parts.
This is necessitated by new resources being added to the template provider.
The original implmentation was missing headers to denote mime version & content transfer encoding, this caused issues with EC2. Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
Signed-off-by: Simon Thulbourn <simon+github@thulbourn.com>
f1cdb67
to
a4568c5
Compare
New resource: Cloudinit Multipart Configuration
Thanks everyone. :) |
@sthulb This should be in 0.6.9, which is due imminently! |
@jen20 🎉 |
Thanks for your help @jen20 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This pull request is for a new resource in the
template
provider namedtemplate_cloudinit_config
which renders multi-part cloudinit config templates from source files.It has previously been worked on in #3416 (by me) and #4061 (by @sthulb), but prior to merging it would be good for someone else on the Terraform core team to review it.
Example
Output: