Git Product home page Git Product logo

packer-ubuntu's Introduction

Packer templates for Ubuntu (revisited by Quarkslab)

See original repo here: https://github.com/boxcutter/ubuntu.

  1. Boxes informations
    1. Ubuntu Server 16.10 AMD64
    2. Ubuntu Server 16.04 AMD64
  2. Generate Boxes
  3. Security
  4. Future improvements

Boxes informations

See https://atlas.hashicorp.com/quarkslab/boxes.

Ubuntu Server 16.10 AMD64

See https://atlas.hashicorp.com/quarkslab/boxes/ubuntu-16.10-server-amd64.

Test it:

    $ vagrant init quarkslab/ubuntu-16.10-server-amd64
    $ vagrant up --provider vmware_workstation
Provider Version Atlas link SHA256
virtualbox 20161201 link 316debc8adfa0155efa5ac7e9fc16b30658a3f72ef80f666b6cd238b284d1eb4
vmware_desktop 20161130 link f60835c1e7b5ffa89050421da439f896e9ff26f034c8e65a487881c788f661eb
libvirt 20170215 link 9d55491270b317452d9dbc7939309cefcb81d3c5c2f61f3e5cb83c5cc60bb7b6

Ubuntu Server 16.04 AMD64

See https://atlas.hashicorp.com/quarkslab/boxes/ubuntu-16.04-amd64.

Test it:

    $ vagrant init quarkslab/ubuntu-16.04-amd64
    $ vagrant up --provider vmware_workstation
Provider Version Atlas box link Signature SHA256
VMware_desktop 20160916 link link f40ac77251c62509c68265e9457a1ab8244d6df6fcc57361a829355bd5a2afe1

Generate Boxes

Don't forget to download in the directory the ISO file listed in the ubuntu-XX.XX-amd64.json file.

If you want to automatically upload the Vagrant box you’ve created to the Atlas platform, check the ubuntu.atlas.json.

Example:

    $ export ATLAS_TOKEN=<your-atlas-token> # See https://atlas.hashicorp.com/help/user-accounts/authentication
    $ packer-io build -only=vmware-iso -var-file=ubuntu1610.json -var 'atlas_username=quarkslab' -var 'atlas_box_name=ubuntu-16.10-server-amd64' ubuntu.atlas.json

Modify the README and sign it:

    $ gpg --output README.md.sig --detach-sig README.md

Security

Using metadata catalog

A simple way to stay up-to-date of new boxes is to use our metadata files (located in medatada/ directory).

Example, for your Vagrantfile:

    […]
    config.vm.box = "quarkslab/ubuntu-16.10-server-amd64"
    config.vm.box_url = "https://cdn.rawgit.com/quarkslab/packer-ubuntu/master/metadata/ubuntu-16.10-server-amd64.json"
    […]

For the moment, we are using the RawGit service. So there is a need to check that informations return by this service (especially checksums but box urls too) are the same as in this README file.

Using direct link to the box

First, verify the authenticity of the README.md file using PGP.

    $ gpg --recv-keys FCC3ED6D
    $ gpg --verify README.md.sig README.md

Now, you can take advantage of the config.vm.box_download_checksum Vagrantfile option.

Example, for your Vagrantfile:

    […]
    config.vm.box_url = "https://atlas.hashicorp.com/quarkslab/boxes/ubuntu-16.04-amd64/versions/20160916/providers/vmware_desktop.box"
    config.vm.box_download_checksum = "f40ac77251c62509c68265e9457a1ab8244d6df6fcc57361a829355bd5a2afe1"
    config.vm.box_download_checksum_type = "sha256"
    […]

Future improvements

[ ] Instead of using RawGit service, host the file on our own servers (via https)

packer-ubuntu's People

Contributors

annawake avatar misheska avatar rasa avatar humboldtux avatar joaocc avatar dol avatar rickard-von-essen avatar stefanscherer avatar harrisony avatar frntn avatar flandr avatar client9 avatar voidus avatar vincecima avatar dusek avatar conorsch avatar bodepd avatar lordbaco avatar howardroark avatar oinume avatar lvillani avatar lv-develer avatar bountin avatar beelzeburt avatar legal90 avatar tas50 avatar gajdaw avatar acandidmind avatar

Stargazers

Märt Reose avatar Val V avatar Wumpus avatar Michael Lawler avatar Chris McKee avatar Igor Balobanov avatar

Watchers

Guillaume avatar James Cloos avatar Igor Balobanov avatar Adrien Guinet avatar  avatar Fernand Lone Sang avatar  avatar g33k Superstar avatar Wumpus 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.