Project

packerman

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby DSL for Packer(www.packer.io)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.10
~> 10.0
>= 0

Runtime

 Project Readme

Code Climate Test Coverage

packerman

Ruby DSL for Packer by HashiCorp.

Usage

Packerman is converter ruby DSL to Packer template.
Currently, Packerman is supporting these template structures.

Builders (contains full communicator support)

  • amazon-ebs
  • amazon-instance
  • amazon-chroot
  • docker
  • googlecompute
  • null
  • virtualbox-iso

Provisioners

  • shell
  • chef-solo

Variables

  • variables are also supported

DSL

Here is DSL sample.

Builders type: "docker" do
  image "centos"
  export_path "image.tar"
end

Provisioners type: "shell" do
  inline ['echo Hello Packerman']
end

then, use this command to convert DSL.

$ bundle exec packerman <filename>
{
  "builders": [
    {
      "type": "docker",
      "export_path": "image.tar",
      "image": "centos"
    }
  ],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "echo Hello Packerman"
      ]
    }
  ]
}

Installation

add this line to your Gemfile

gem 'packerman'

then

$ bundle install

Contributing

  1. Fork it ( https://github.com/the40san/packerman/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Welcome :)