Skip to content

This is a plugin of packer post-processor to run script after provioners on googlecompute or amazon.

Notifications You must be signed in to change notification settings

odg0318/packer-post-processor-shell-with-imageid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer-post-processor-shell-with-imageid

This is a plugin of packer post-processor to run script after provioners on googlecompute or amazon.

Usage

Example

template.json

"post-processors": [
  {
    "type": "shell-with-imageid",
    "script": "post-processor"
  }
]

post-processor

#!/bin/bash

# $1: builder [amazon-ebs, googlecompute], $2: image_id

if [ "$1" == "amazon-ebs" ]
then
        python scripts/add_launching_configuration.py $2
fi

if [ "$1" == "googlecompute" ]
then
        python scripts/add_instance_template.py $2
fi

About

This is a plugin of packer post-processor to run script after provioners on googlecompute or amazon.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published