Skip to content
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

[docs]: jinja content-type header #6027

Open
Tearix opened this issue Feb 17, 2025 · 2 comments
Open

[docs]: jinja content-type header #6027

Tearix opened this issue Feb 17, 2025 · 2 comments
Labels
documentation This Pull Request changes documentation incomplete Action required by submitter

Comments

@Tearix
Copy link

Tearix commented Feb 17, 2025

Documentation request

Seems there is wrong content-type for Jinja at https://cloudinit.readthedocs.io/en/latest/explanation/format.html#headers-and-content-types

Using text/jinja got "unknown content-type" or something like this.

Probably from:

@Tearix Tearix added documentation This Pull Request changes documentation new An issue that still needs triage labels Feb 17, 2025
@holmanb
Copy link
Member

holmanb commented Feb 17, 2025

Documentation request

Seems there is wrong content-type for Jinja at https://cloudinit.readthedocs.io/en/latest/explanation/format.html#headers-and-content-types

Using text/jinja got "unknown content-type" or something like this.

Please provide enough information to completely reproduce your issue. This sounds like a likely user error.

@holmanb holmanb added incomplete Action required by submitter and removed new An issue that still needs triage labels Feb 17, 2025
@Tearix
Copy link
Author

Tearix commented Feb 18, 2025

I'm using HashiCorp cloud-init provider.
text/jinja2 solves the problem for me.
It's a bit hard to gather logs.
I'll try to reproduce it on occasion.

data "cloudinit_config" "test" {

  part {
    filename     = "cloud-config.yaml"
    content_type = "text/jinja2"
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This Pull Request changes documentation incomplete Action required by submitter
Projects
None yet
Development

No branches or pull requests

2 participants