Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.
/ packer-vyos Public archive

Packer setup to build an Amazon Web Services EC2 AMI from a VyOS ISO image

License

Notifications You must be signed in to change notification settings

Luzifer/packer-vyos

Repository files navigation

Luzifer / packer-vyos

This repository contains a Packer setup to build an Amazon Web Services EC2 AMI from a VyOS ISO image.

How to use this?

If you really trust me not to mess with your router setup (hint: you shouldn't as I'm not part of the VyOS project) and want to create your EC2 in eu-west-1you can search for public images with Owner: 921304813343. You will find a Packer-VyOS-x.x.x image...

If you prefer to create your own image:

  • Install the latest version of Packer
  • Register an AWS account
  • Gather an AWS access key with its corresponding secret key
  • Get or create a public subnet within your VPC and note down vpc-id and subnet-id
  • Look up the version number of the latest VyOS release
  • Adjust the variables inside packer.json or expose the variables using environment variables
  • Execute make to build the AMI

If you want to create the image in another region you need to find the matching Ubuntu AMI (search for 16.04 ebs hvm)

How this works

The provisioning script used here is a compact version of the vyos/build-ami Ansible playbook. The Ubuntu AMI is booted with an extra EBS volume, the files are copied (and slightly modified) to that EBS and after finishing the file collection the EBS is bundled to an AMI.

About

Packer setup to build an Amazon Web Services EC2 AMI from a VyOS ISO image

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published