Git Product home page Git Product logo

guidance-guarantee-programme.packer-post-processor-ovftool's Introduction

Packer ovftool post-processor

Exposes VMware's OVF Tool as a Packer post-processor, enabling VMware builds to produce OVA/OVF artifacts.

For the sake of simplicity, only a few of ovftool's options are currently exposed, but adding more would be a simple task. Contributions are welcome.

Usage

Add the post-processor to your packer template:

{
    "post-processors": [{
        "type": "ovftool",
        "only": ["vmware"],
        "format": "ova"
    }]
}

Available configuration options:

  • target: The path where the artifact should be created, without the file extension. This is a configuration template. Defaults to packer_{{.BuildName}}_{{.Provider}}.
  • format: The target type to create, either "ova" or "ovf". Defaults to "ovf" if not specified.
  • compression: The compression level to use when creating the artifact. A number from 1-9. Default value is 0, meaning no compression.

Installation

Run:

$ go get github.com/iancmcc/packer-post-processor-ovftool
$ go install github.com/iancmcc/packer-post-processor-ovftool

Add the post-processor to ~/.packerconfig:

{
  "post-processors": {
    "ovftool": "packer-post-processor-ovftool"
  }
}

Packer API differences

If you want to use the plugin with Packer v0.4, you'll need to build for API version 1. Perform installation as above (you can skip the "go install" step), then:

$ cd $GOPATH/src/github.com/iancmcc/packer-post-processor-ovftool && git checkout v0.4.1
$ cd $GOPATH/src/github.com/mitchellh/packer && git checkout v0.4.1
$ go install github.com/iancmcc/packer-post-processor-ovftool

guidance-guarantee-programme.packer-post-processor-ovftool's People

Contributors

iancmcc avatar krobertson 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.