mwhahaha / dotstack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a quick hack that produces dot output from a Heat stack.

Usage

usage: dotstack.py [-h] [--os-username OS_USERNAME]
                   [--os-password OS_PASSWORD]
                   [--os-tenant-name OS_TENANT_NAME]
                   [--os-project-name OS_PROJECT_NAME]
                   [--os-user-domain-name OS_USER_DOMAIN_NAME]
                   [--os-project-domain-name OS_PROJECT_DOMAIN_NAME]
                   [--os-region-name OS_REGION_NAME]
                   [--os-auth-url OS_AUTH_URL] [--verbose | --debug]
                   [--colors] [--detailed] [--kelly] [--recursive]
                   stack

positional arguments:
  stack                 name or id of heat stack

optional arguments:
  -h, --help            show this help message and exit
  --verbose, -v         enable verbose logging
  --debug               enable debug logging
  --recursive, -r       descend into nested stacks

Authentication options:
  --os-username OS_USERNAME
  --os-password OS_PASSWORD
  --os-tenant-name OS_TENANT_NAME
  --os-project-name OS_PROJECT_NAME
  --os-user-domain-name OS_USER_DOMAIN_NAME
  --os-project-domain-name OS_PROJECT_DOMAIN_NAME
  --os-region-name OS_REGION_NAME
  --os-auth-url OS_AUTH_URL

Output options:
  --colors, -C          colorize graph nodes
  --detailed, -D        produce detailed nodes in graph
  --kelly, -K           Use Kenneth Kelly's high contrast color palette

Example

Running:

python dotstack.py --recursive --color mystack > mystack.dot

Produces dot output like this and results in a graph like this.

Running:

python dotstack.py --recursive --detailed mystack > mystack.dot

Produces dot output like this and results in a graph like this. You will need to process the dot output with the dot tool from graphviz:

dot -Tsvg -o mystack.svg mystack.dot

You can generate output in a variety of other formats if svg just isn't your bag, baby.

License

dotstack.py -- visualization of Heat stacks. Copyright (C) 2014 Lars Kellogg-Stedman lars@oddbit.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

License:GNU General Public License v3.0


Languages

Language:Python 97.9%Language:Makefile 2.1%