Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PCextreme/packer-templates
The packer templates we use to create our Virtual Machine templates for AuroraCompute
https://github.com/PCextreme/packer-templates
Last synced: 28 days ago
JSON representation
The packer templates we use to create our Virtual Machine templates for AuroraCompute
- Host: GitHub
- URL: https://github.com/PCextreme/packer-templates
- Owner: PCextreme
- License: other
- Created: 2014-09-30T20:35:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T07:10:06.000Z (over 2 years ago)
- Last Synced: 2024-04-17T07:21:52.652Z (9 months ago)
- Language: Shell
- Size: 495 KB
- Stars: 31
- Watchers: 10
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cloudstack - Instance Templates Packer by PCextreme
README
[![github-readme_header](https://cldin.eu/img/cldin-logo.png)](https://cldin.eu)
# 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:```bash
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.
```json
[
{
"name": "mymanager",
"endpoint": "https://cloud/api",
"key": "abc",
"secret": "xyz"
}
]
```
```bash
% jq '.' profiles.json | base64 -w 0
WwogIHsKICAgICJuYW1lIjogIm15bWFuYWdlciIsCiAgICAiZW5kcG9pbnQiOiAiaHR0cHM6Ly9jbG91ZC9hcGkiLAogICAgImtleSI6ICJhYmMiLAogICAgInNlY3JldCI6ICJ4eXoiCiAgfQpdCg==
```The config can be generated using [generate-cloudstack](bin/generate-cloudstack), which will append every entry to an ini file that will be used by the [register](bin/register) script.
```ini
[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](LICENSE) for the full license text.