Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Concourse CI resource to build machine images with Packer, with Ansible provisioner support.

Notifications You must be signed in to change notification settings

gaahrdner/packer-ansible-resource

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer Build Resource

A Concourse CI resource to build new Amazon Machine Images (AMI) via Packer

Note: This fork includes ansible for use as a provisioner.

Original by jdub!

Source Configuration

  • aws_access_key_id: Your AWS access key ID.

  • aws_secret_access_key: Your AWS secret access key.

  • region: Required. The AWS region to search for AMIs.

If aws_access_key_id and aws_secret_access_key are not provided packer will use credentials provided by the worker's IAM profile, if it has one.

Behaviour

out: Build a new AMI

Parameters

All other parameters will be passed through to packer as variables.

Example

resource_types:
- name: packer
  type: docker-image
  source:
    repository: gaahrdner/packer-ansible-resource

resources:
- name: build-ami
  type: packer
  source:
    aws_access_key_id: "..."
    aws_secret_access_key: "..."
    region: ap-southeast-2

jobs:
- name: my-ami
  plan:
  - put: build-ami
    params:
      template: packer_template.json
      var_file:
         - secrets.json
         - foo.json

About

Concourse CI resource to build machine images with Packer, with Ansible provisioner support.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%