PCextreme / packer-templates

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Other


Languages

Language:Shell 77.5%Language:Python 16.1%Language:Makefile 3.3%Language:Jinja 3.1%