Giter Club home page Giter Club logo

ukhomeoffice.vcloud_packer_images's Introduction

vcloud_packer_images

Helps you generates an image from an iso ( currently tested using ubuntu 14.04 but should be pretty portable) which we can upload as a skyscape template.

Intended use

General form

Build a new template: ./createimage [-p,-u,-o,-t] [build|upload] <template name>

The createimage script will upload the template to Skyscape or a vCenter compatible provider.

** Required Fields for upload**

  • -d distro
  • -u username
  • -o org
  • -c catalog

The upload options will build an ovftool command and the ovftool will in turn prompt you for a password. For the sake of security specifying the password for image uploading is not allowed.

Examples

git clone [email protected]:UKHomeOffice/vcloud_packer_images.git
cd vcloud_packer_images
./createimage -p p4ssw0rd build centos-66-x64 #_for Centos 66_
./createimage -p p4ssw0rd build ubuntu-1404-x64 #_for Ubuntu 14.04_
./createimage -u 123.456.789 -o 1234-456-223a -t centos -c CentOS  upload centos-66-x64
./createimage build #_you will be prompted for options (distro, vm type, password) during the build run

Skyscape translation

To get API details for skyscape you need to login to the (portal)[https://portal.skyscapecloud.com] and click on your username and then (API)[https://portal.skyscapecloud.com/user/api] . This will give you the API details requried to run the createimage tool. Note however that the username as specified by Skyscape is actually your username and the organisation seperated by an @ symbol.

TODO

  • Add to the build command so it runs a fix on any json configs before proceeding.
  • Figure out how to run this without infecting host system. (If you have vagrant running with something else other than virtualbox, you should be able to vagrant up)
  • Double check ruby dependancies are correct.
  • Integrate with local or remote vagrant store to upload vagrant images
  • Move puppet scripts to a share directory used by all images
  • Make the packer build files an ERB template
  • Add PACKER_CACHE_DIR env variable to keep centralised iso cache, if not already.

Requirements

The following is what you'll need on a fairly recent debian / ubuntu system.

Ubuntu

Mac os X

  • Use brew to install the dependencies above i.e. ruby etc.
  • Brew's version of packer isn't updated enough and doesn't understand the hardware version for the vmware-iso
  • wget -O packer.zip https://dl.bintray.com/mitchellh/packer/packer_0.7.5_darwin_amd64.zip && unzip packer.zip && rm packer.zip && sudo cp packer* /usr/local/bin
  • Download VMWARE Fusion for MAC

You'll also need ovftool if it isn't insalled with vmware-workstation / vmware fusion (MAC). Currently, this is only available on the vmware website after you signup. ovftool can be downloaded from: VMWare

You'll need to do some work if you want to run this on another type of host.

Would be nice

ukhomeoffice.vcloud_packer_images's People

Contributors

alex-williams avatar allandegnan avatar ggeldenhuis avatar jon-shanks avatar lewismarshall 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.