raigax9 2bc511c69f Added orm_client codebase
Initial commit for orm_client by adding the codebase.

Change-Id: I24f17561e6a426e6af9dbbe04e4a66599344d265
2017-08-28 14:17:28 +00:00

42 lines
1.1 KiB
Plaintext

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 --regions region1,region2
The argument is a comma-separated list of regions with no internal whitespace.
Use of -h will produce the following help:
./regionator.py -h
usage: regionator [-h] [--flavor_dir FLAVOR_DIR] [--host HOST]
[--cli_command CLI_COMMAND] [--regions REGIONS]
batch add region to flavor
optional arguments:
-h, --help show this help message and exit
--flavor_dir FLAVOR_DIR
<JSON flavor directory, default: ./flavor_dir>
--host HOST <orm host ip>
--cli_command CLI_COMMAND
<path to cli command>
--regions REGIONS <comma-separated regions to add, e.g. region1,region2>