SDI4Apps / cloud-platform

cloud-init description for newly launched VMs
Apache License 2.0
2 stars 1 forks source link

cloud-platform

cloud-init description for newly launched VMs

This repository contains config file for cloud-init that converts plain Ubuntu LTS to SDI4Apps platform.

See the following sections to see how to launch it on various clouds:

Amazon AWS

In the Step 3 of Launch Wizard, when launching Ubuntu 16.04, click on Advanced Details, then in the section User Data click As file and upload the file user-data-xenial.yaml.

CERIT-SC OpenNebula

Log into OpenNebula web interface. Instantiate the template 3717 "SDI4Apps platform 16.04 Xenial".

It can be also submitted from command line. Download the files user-data-xenial.yaml, authenticate, then run launch_on_ceritsc.sh.

Setup for CERIT-SC OpenNebula Command Line

Install package opennebula-tools from repository. On a Ubuntu 14.04 box, do the following:

sudo su -
wget -q -O- http://downloads.opennebula.org/repo/Ubuntu/repo.key | apt-key add -
echo "deb http://downloads.opennebula.org/repo/4.14/Ubuntu/14.04/ stable opennebula" > /etc/apt/sources.list.d/opennebula.list
apt-get update
apt-get install opennebula-tools
/usr/share/one/install_gems
exit

Then you have to set up authentication. You will need an X509 digital certificate from an IGTF-approved certification authority imported in your browser for that.

Google Computing Engine

Must be submitted from command line.

Download the files user-data-xenial.yaml and launch_on_google_ce.sh, run the script.

Setup for Google Computing Engine

Install Google Cloud tools from repository. On a Ubuntu 14.04 box, do the following:

sudo su -
export CLOUD_SDK_REPO=cloud-sdk-`lsb_release -c -s`
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list
apt-get update 
apt-get install google-cloud-sdk
exit
gcloud init

Set up authentication by running the following command:

gcloud auth login