Skip to main content

A cloud deployment, automation, and orchestration platform for everyone.

Project description

Build Status

The canonical Python client and cli for the stackd.io API

Overview

This is a small set of tools for internal use of stackd.io. After cloning this repo, you should be able to quickly get up and running with your own stacks.

Advanced usage like creating custom blueprints or writing your own formulas is beyond the scope of this.

Installation

We recommend using virtualenv via virtualenvwrapper to install this in a virtualenv. If you consider yourself a knowledgeable Pythonista, feel free to install this however you’d like, but this document will assume that you are using virtualenvwrapper. See the full virtualenvwrapper docs for details, but in short you can install it on most systems like:

pip install virtualenvwrapper

Once you’ve got it, installing this tool goes something like:

mkvirtualenv stackdio-client

pip install stackdio

You’ll see a few things scrolling by, but should be set after this. To use this later, you’ll need to re-activate the virtualenv like:

workon stackdio-client

Whenever it’s activated, stackdio-cli should be on your path.

First Use

The first time that you fire up stackdio-cli, you’ll need to run the configure command. This will prompt you for your LDAP username and password, and store them securely in your OS keychain for later use. It will import some standard formula, and create a few commonly used blueprints.

$ stackdio-cli
None @ None
> configure
# YOU WILL BE WALKED THROUGH A SIMPLE SET OF QUESTIONS

Stack Operations

All of the following assume that you have run initial_setup successfully. To launch the cli, simply type:

$ stackdio-cli

You can run help at any point to see available commands. For details on a specific command you can run help COMMAND, e.g. help stacks. The rest of these commands assume you have the cli running.

Launching Stacks

Stacks are launched from blueprints. To launch the 3 node HBase stack that’s included with this you do:

> stacks launch cdh450-ipa-3 MYSTACKNAME

Deleting Stacks

When you are done with a stack you can delete it. This is destructive and cannot be recovered from, so think carefully before deleting your stack!

> stacks delete STACK_NAME

Alternatively you can terminate a stack which will terminate all instances, but leave the stack definition in place.

Provisioning Stacks

Occassionally something will go wrong when launching your stack, e.g. network connections may flake out causing some package installations to fail. If this happens you can manually provision your stack, causing everything to be brought back up to date:

> stacks provision STACK_NAME

Stack Info

Once you have launched a stack, you can then monitor the status of it like:

> stacks history STACK_NAME

This displays the top level information for a stack. You can supply additional arguments to pull back additional info about a stack. For example, to get a list of FQDNs (aka hostnames) for a stack:

> stacks hostnames STACK_NAME

There are various logs available that you can access with the stacks logs command.

What’s Next?

For anything not covered by this tool, you’ll need to use the stackdio-server web UI or API directly. For more information on that, check out http://docs.stackd.io.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stackdio-0.8.0b2.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stackdio-0.8.0b2-py2.py3-none-any.whl (34.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stackdio-0.8.0b2.tar.gz.

File metadata

  • Download URL: stackdio-0.8.0b2.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stackdio-0.8.0b2.tar.gz
Algorithm Hash digest
SHA256 f936f4cd81901633de1365be9a9d7bea6635b9c45aaf87f86645cdb5dcda1254
MD5 a00dc845f7b8ffa73ceae468f5d2aeff
BLAKE2b-256 616981179ae4b90eff82196328860835d6ecd7713e49818f210cb585c8514307

See more details on using hashes here.

File details

Details for the file stackdio-0.8.0b2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for stackdio-0.8.0b2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 094b6945a541a0e6548441dc050ff81f551230018358afda71574e4c9df9bcd6
MD5 5efccbc5d35bd79891a1525d365f39e7
BLAKE2b-256 17f697df37e4248571c8ea54476ee76ef0534f83181fdd2ad8dfaf77db121b9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page