GithubHelp home page GithubHelp logo

rowanjacobs / terraform-provider-vsphereovf Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.1 MB

Terraform provider (DRAFT) allowing OVF uploads to vSphere.

License: Apache License 2.0

Shell 1.28% Go 98.72%
terraform terraform-provider vsphere ovf ova

terraform-provider-vsphereovf's Introduction

Terraform vSphere OVF Provider

This is a draft (not yet working!) Terraform provider that will allow users to upload OVF and OVA files to vCenter. It is not ready for use yet!

Note:

So far, the provider can successfully upload and delete templates. However, it cannot be used to feed the newly created template into the Terraform vSphere provider.

This will probably never actually work properly, barring some very unlikely changes to the vSphere provider or the Terraform lifecycle. Here's why:

The vsphere_virtual_machine resource has a CustomizeDiff step that, when cloning a template, explicitly checks that template exists as part of validation. Without having some way to short-circuit this step, a user cannot upload a vSphere template and clone that template in the same terraform apply.

Given that all the prospective users I have talked to have selected other means of paving vSphere environments (either by abandoning Terraform entirely or abandoning it in vSphere specifically), and given the (entirely reasonable) resistance of the Terraform maintainers for supporting this use case, I do not have very much external motivation to keep working on this project. Short of discovering a way to short-circuit clone validation, this may be my last commit to this repo.

What's done

  • upload an OVF or OVA template to vCenter
  • mark the resulting VM as a template or virtual machine
  • set network mappings on the template
  • export template UUID or name to be used by the vSphere provider
  • destroy the template

What's left to do

  • figure out what's with the 4 minute gap between "creating template resource" and "importing template as vApp"
  • find a way to bypass clone validation
  • update the template
  • otherwise customize the template
  • documentation

terraform-provider-vsphereovf's People

Contributors

cwlbraa avatar pivotaljohn avatar rowanjacobs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.