-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Feature] Upload isos via terraform #193
Comments
@4censord thanks for the feature request. Creating isos already seems to be supported by the XOA api used by the terraform provider, so this shouldn't be too difficult to implement. I'll look into this in the coming weeks. |
It seems to now be properly supported by xoa, vatesfr/xen-orchestra#6182 (comment). I would also like to extend that to importing vm images from remote locations, like upstream cloudinit images, and creating VMS with those |
My earlier comment was about the |
I'm not planning to support fetching files from remote locations in the initial support. Terraform doesn't support having scratch filesystem space for providers (hashicorp/terraform#21308) and while the go-getter client would provide the downloading functionality, I want to avoid solving problems that can be addressed another way. The terraform http provider has a PR for downloading binary files (hashicorp/terraform-provider-http#158). I'd prefer to wait until that is merged and then provide examples on how to leverage the official providers to accomplish the remote location. If that doesn't get merged, then I'm open to reconsidering implementing this in the XO provider, but for now I think combining official providers to support remote files is the best option (once available). |
Once this is released it's possible some users may run into vatesfr/xen-orchestra#6590. The XO team will be providing updates on that issue. |
Does the terraform HTTP provider keep its result in memory? Or even things like cloud-ready images, that might be bigger than 20Gib |
This was automatically closed by merging that PR, but supporting remote file locations is still outstanding.
It seems like that is the case (source). I still would like to see where that PR goes. If it is merged, doing the streaming inside the provider would be essentially the same work as doing it in the http provider (using the go-getter client, which is maintained by hashicorp as is the http provider). The latter would be a better investment since it would help a larger number of users while helping out the XO use case. |
I followed up with my PR regarding the http provider today (hashicorp/terraform-provider-http#214 (comment)). |
The Terraform team got back to me and while they were evaluating this functionality prior, they are not looking to make this change now. They are concerned about the stability of the provider given it has a large user base. I'm evaluating maintaining whether to maintain a fork of the http provider and publish it to the terraform registry or to build this functionality into the xenorchestra provider. I have a slight preference for the former, since the Terraform team will eventually revisit this and in the meantime those that need this functionality can use the fork. |
I would like to be able to upload iso via terraform.
I was thinking something like this:
I dont currently have time to build this myself, but may look into it in a few months time.
The text was updated successfully, but these errors were encountered: