Skip to content
This repository has been archived by the owner on May 14, 2019. It is now read-only.

StorminStanley/openstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Openstack Integration Pack

This repo has moved! Please go to StackStorm-Exchange/stackstorm-openstack.

StackStorm pack for OpenStack integration.

Configuration

Pack configuration requires to URLs and of the openstack APIs and an authetication mechanism. There are two way to supply this information :

Token based

Supply an already acquired token and a URL pointing to the service API. Both of these would have to be acquired from the service catalog.

To acquire a token -

curl -s -X POST $OS_AUTH_URL/tokens -H "Content-Type: application/json" -d '{"auth": {"tenantName": "'"$OS_TENANT_NAME"'", "passwordCredentials": {"username": "'"$OS_USERNAME"'", "password": "'"$OS_PASSWORD"'"}}}' | python -m json.tool

See the OpenStack manual for more information on above command.

---
token:
    OS_TOKEN: "xxxxxxxxxxxxxxxxxxxx"
    OS_URL: "http://{API_IP}:{API_PORT}/v2/{TENANT_ID}"

Password based

Tokens are ephemeral and typical expiry is short; in those cases it might be preferred to use the password based approach.

---
password:
    OS_AUTH_URL: # authentication url
    OS_TENANT_ID: # id of the tenant
    OS_TENANT_NAME: # name of the tenant
    OS_USERNAME: # username
    OS_PASSWORD: # password

Actions

Autogenerating actions

All(?) actions in this pack are autogenerated. The is a custom autogen that is used for this purpose.

usage: autogen.py [-h] [--ns NAMESPACE] [--path BASE_PATH] [--debug]

optional arguments:
  -h, --help            show this help message and exit
  --ns NAMESPACE, -n NAMESPACE
  --path BASE_PATH, -p BASE_PATH
  --debug, -d

NAMESPACE - namespace of the command to generate e.g. 'server' or 'server create' BASE_PATH - the location where to write the action metadata debug - will spit out extra debug information

Sensors

No sensors in this pack.

About

StackStorm OpenStack pack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages