Giter Site home page Giter Site logo

localega-deploy-terraform's Introduction

Deploy LocalEGA on Openstack using Terraform

Preliminaries

You need to prepare a file with your cloud credentials and source it.

Have a look at credentials.rc.sample and "fill in the blanks."

The file contains the Openstack configuration along with a few variable for Terraform.

Create a fake Central EGA

cd cega
./bootstrap.sh swe1 fin1   # List of space separated instances
terraform init
terraform apply

Create an instance of Local EGA

Move back to the main directory for Terraform (ie cd ..). The following creates one instance of Local EGA.

bootstrap/run.sh
terraform init
terraform apply

That's it. Wait for Terraform to contact your cloud and create the resources.

Services are started, and Volumes are mounted, using Systemd units.

Demo

asciicast

Local EGA VMs

Local EGA Network

Stopping

cd cega
terraform destroy
cd ..
terraform destroy

Type yes for confirmation (or use the --force flag)

Build the EGA-common, EGA-db and EGA-mq images

cd images/centos7
terraform init
terraform apply

The booted VMs use a CentOS7 Cloud image and are configured with cloud-init. Once configured, they are powered off.

You can then take a snapshot of them and call them 'EGA-common', 'EGA-db', 'EGA-mq' and 'EGA-cega'.

Troubleshooting

Comment out line 50 in case you have errors, to inspect them. In my case, I noticed the openssl version on my mac was old. So I use:

$ bootstrap/run.sh --openssl /usr/local/Cellar/openssl/1.0.2n/bin/openssl

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.