ranger/orm/orm_client/flavorgen
Nicholas Jones dac751d04b Merge diverged code
Change-Id: I7a88d9bec69371bec1004572a4fa87cdfbbf1f28
2018-05-08 11:50:06 -05:00
..
flavor_dir/Large Added orm_client codebase 2017-08-28 14:17:28 +00:00
flavorator.py Merge diverged code 2018-05-08 11:50:06 -05:00
make_flav.py Added orm_client codebase 2017-08-28 14:17:28 +00:00
make_flavor.py Added orm_client codebase 2017-08-28 14:17:28 +00:00
README Merge diverged code 2018-05-08 11:50:06 -05:00
regionator.py Merge diverged code 2018-05-08 11:50:06 -05:00

Flavorgen Usage

To install:

1. Download attached file flavorgen.tgz
2. Copy flavorgen.tgz to <orm_host>:/opt/app/orm/ormcli
3. cd /opt/app/orm/ormcli
4. tar xvzf flavorgen.tgz

All the predefined flavors are defined in flavor_dir. Edit if necessary.

To generate these flavors:

5. cd /opt/app/orm/ormcli/flavorgen
6. ./flavorator.py

You should normally create the list of flavors once.

Then when you want to add regions to all the flavors, use:

7. ./regionator.py region1,region2 series1,series2

The argument is a comma-separated list of regions and series
with no internal whitespace.


Use of -h will produce the following help:

./regionator.py -h
usage: regionator [-h] regions [series]

batch add region to flavor

positional arguments:
  regions     <comma-separated regions to add, e.g. region1,region2>
  series      <comma-separated flavor series to add, e.g. nd,gv>

optional arguments:
  -h, --help  show this help message and exit