Coder Social home page Coder Social logo

jolsenatx / heat-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stackedsax/heat-tutorial

0.0 2.0 0.0 690 KB

Tools, tips, and how-to's about using OpenStack Heat, Rackspace Fusion, and other neat Orchestration bits on Rackspace Cloud.

heat-tutorial's Introduction

Spinning Up Stacks Using Heat

TL;DR Remix

Author: Pablo [email protected]

This repo is not intended to be comprehensive documentation, though we do our best to make sure references to comprehensive documentation are provided along the way. An excellent overall reference is the OpenStack Developer Heat Template Guide.

This repo is intended to provide a growing list of hands-on tutorials that each can be completed in 20 minutes or less, which start as simple as possible and continually build on the knowledge gained in previous tutorials.

The directory structure mimics college course numbering:

  • 100-level Tutorials are the basic building blocks of a Heat Stack: compute instances, load balancers, cloud databases, DNS
  • 200-level Tutorials start building real infrastructure by "wiring up" the basic building blocks introduced in the 100-level Tutorials
  • 300-level Tutorials introduce concepts like Software Configuration Management (SCM) and Auto-Scaling

Feel free to start with the tutorial that scratches your itch. If you find you don't understand something, look for an earlier tutorial to fill in any knowledge gaps. If you don't find something you're looking for feel free to submit your ideas via email or, if you're so inclined, fork the repo and submit a Pull Request!

Most of all, have fun!


## Prep Work

There are some things you will need to have sorted before you dive in. Making sure you have everything listed below in working order should allow you to move smoothly through the tutorials.


### 1. Prerequisites

If you're using a Mac, homebrew is your friend.

2. This guide uses python-heatclient, so...

pip install python-heatclient

If you're not using a virtual environment, you may need to start the above incantation with sudo.

More about python-heat-client can be found in OpenStack's documentation.

3. >>Sanity Check<< Command Line Works

heat help

This should give you a long list of all the options available from the heat command

4. Environment Variables Make Things Easier

export OS_USERNAME="<your-rackspace-cloud-account-username>"
export OS_PASSWORD="<your-rackspace-cloud-account-password>"
export OS_TENANT_ID="<your-rackspace-cloud-account-tenant-id>"
export OS_AUTH_URL="https://identity.api.rackspacecloud.com/v2.0/"
export HEAT_URL="https://iad.orchestration.api.rackspacecloud.com/v1/${OS_TENANT_ID}"

Refer to your particular OS for details on how to setup environment variables. These can also be passed as a very long list of command line parameters if you're the type that enjoys things like pokes in the eye with sharp sticks.

5. >>Sanity Check<< Local Env

heat stack-list

This should return a list of all of your stacks. If this is your first time using Heat, it should be an empty list.

6. CONGRATULATIONS! You're Done!

If you're not sure where to go next, try the first tutorial.

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.