Giter Site home page Giter Site logo

atlasloewenherz / packer-templates-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pcextreme/packer-templates

0.0 0.0 0.0 507 KB

The packer templates we use to create our Virtual Machine templates for AuroraCompute

License: Other

Shell 77.50% Python 16.07% Makefile 3.35% Jinja 3.09%

packer-templates-1's Introduction

github-readme_header

Compute Templates

Packer template source for public templates available on the CLDIN cloud.

Requirements

To build these templates make sure you have the following tools installed:

  • packer (>= 1.6.0)
  • make

Building

An example to build the Ubuntu 18.04 template:

make build NAME=ubuntu-18.04

Gitlab CI

CLDIN uses Gitlab CI to build these templates. The .gitlab-ci.yml file can be found in this directory.

Result / Downloads

Succesful builds of the master branch are uploaded to the S3 storage of CLDIN into a public bucket.

The resulting QCOW2 files can be found here: https://compute.o.auroraobjects.eu/

Cloudstack profiles

Uploading to Cloudstack is done with the help of an python CLI wrappen around the API, a profile is needed for this to work. To keep this (secret) information out of Git while also making it possible to add multiple Cloudstack clusters, this info is fetched from an environment variable: CLOUDMONKEY_PROFILES.

This variable should contain the following json encoded as base64, with at least 1 entry.

[
  {
    "name": "mymanager",
    "endpoint": "https://cloud/api",
    "key": "abc",
    "secret": "xyz"
  }
]
% jq '.' profiles.json | base64 -w 0
WwogIHsKICAgICJuYW1lIjogIm15bWFuYWdlciIsCiAgICAiZW5kcG9pbnQiOiAiaHR0cHM6Ly9jbG91ZC9hcGkiLAogICAgImtleSI6ICJhYmMiLAogICAgInNlY3JldCI6ICJ4eXoiCiAgfQpdCg==

The config can be generated using generate-cloudstack, which will append every entry to an ini file that will be used by the register script.

[mymanager]
endpoint = https://cloud/api
key = abc
secret = xyz

ISO files and checksums

All the ISO files are stored on the S3 platform of CLDIN. This is to ensure URLs are stable and future-proof.

They all point to sub-paths of http://compute.o.auroraobjects.eu/iso/ where URL stability is ensured.

Checksums of ISO files are hardcoded in the JSON files of the templates to make sure that data corruption or MITM during transfer of the ISO is safeguarded.

Licensing

The CLDIN Packer Templates are licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

packer-templates-1's People

Contributors

aicop avatar bebbet avatar kevindierkx avatar loekg avatar rpdiep avatar teulaert avatar vdvm avatar wido 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.