GithubHelp home page GithubHelp logo

ansible-packer's Introduction

Build Status

Ansible-packer

Introduction

Ansible role for installing packer.

Usage

Role variables

  • packer_pkg: Packer package file, this is the archive that will be fetched. Example: 0.7.1_linux_amd64.zip. Note: the base URL is always https://dl.bintray.com/mitchellh/packer/.

  • packer_version_str: This is the string that is searched in the output of packer version. If not found, packer_pkg will be fetched and installed. Example: "Packer v0.7.1".

  • packer_plugins: A dictionary of plugins to be installed. Example:

    packer_plugins: packer-builder-lxc: name: lxc type: builder url: https://s3.amazonaws.com/my-s3-bucket/packer-builder-lxc

    Where

    • name: the name of the plugin that can be used in a packer template.
    • type: either builder or provisioner.
    • url: URL to fetch the binary from.

    A packer configuration file at /etc/packer.conf will automatically created that contains any builder or provisioner installed via packer_plugins.

  • packer_plugins_force_install: Whether to force the installation of plugins, even if they exist. Useful for forcing an update. Example: false.

Example playbook

---
- hosts: all
  sudo: yes

  vars:
    packer_pkg: 0.7.1_linux_amd64.zip
    packer_version_str: "Packer v0.7.1"

  roles:
    - packer

ansible-packer's People

Contributors

ldx avatar

Watchers

James Cloos avatar Ahmed Nowshad Ibne Amin avatar  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.