Giter VIP home page Giter VIP logo

packer-post-processor-ovftool's Introduction

Packer shell post-processor

Run shell scripts for post-process images

Usage

Add the post-processor to your packer template:

{
    "post-processors": [
      {
        "type": "ovftool",
        "host": "esxi01.local",
        "password": "top secret",
        "vm_name": "test"
      }
    ]
}

Available configuration options:

  • ovftool_path Path to ovftool binary.

  • output_dir where to store OVF template files.

  • host Address of ESXi server. Should be accessable by ssh and by vi://

  • port Port for SSH access.

  • username Username for login by ssh and by vi://

  • pasword Password for login by ssh and by vi://

  • vm_name VM name. Template file names relate from this option.

Installation

Run:

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

Add the post-processor to ~/.packerconfig:

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

packer-post-processor-ovftool's People

Contributors

0xbf avatar

Watchers

 avatar

Forkers

chirauki

packer-post-processor-ovftool's Issues

Installation issue

When I run:

go get github.com/0xBF/packer-post-processor-ovftool

it errors out with:

go get github.com/0xBF/packer-post-processor-ovftool
# github.com/0xBF/packer-post-processor-ovftool/ovftool
src/github.com/0xBF/packer-post-processor-ovftool/ovftool/ssh.go:32: cannot use "github.com/mitchellh/packer/communicator/ssh".PasswordKeyboardInteractive(p.cfg.Password) (type "github.com/mitchellh/packer/vendor/golang.org/x/crypto/ssh".KeyboardInteractiveChallenge) as type "golang.org/x/crypto/ssh".KeyboardInteractiveChallenge in argument to "golang.org/x/crypto/ssh".KeyboardInteractive
src/github.com/0xBF/packer-post-processor-ovftool/ovftool/ssh.go:41: cannot use "golang.org/x/crypto/ssh".ClientConfig literal (type *"golang.org/x/crypto/ssh".ClientConfig) as type *"github.com/mitchellh/packer/vendor/golang.org/x/crypto/ssh".ClientConfig in field value

Sorry, I'm not a Go dev so it may be something simple that I'm overlooking?

Thanks!

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.