savex | 4448e13 | 2018-04-25 15:51:14 +0200 | [diff] [blame] | 1 | """Constants that is not to be changed and used in all other files |
| 2 | """ |
| 3 | |
| 4 | from __future__ import print_function, absolute_import |
| 5 | |
| 6 | import itertools |
| 7 | |
| 8 | _cnt = itertools.count() |
| 9 | NODE_DOWN = next(_cnt) |
| 10 | NODE_UP = next(_cnt) |
| 11 | |
| 12 | del _cnt |
| 13 | |
| 14 | all_roles_map = { |
| 15 | "apt": "repository", |
| 16 | "bmk": "validation", |
| 17 | "cfg": "master", |
| 18 | "cid": "cicd", |
| 19 | "cmn": "storage_monitor", |
| 20 | "cmp": "compute", |
| 21 | "ctl": "openstack_controller", |
| 22 | "dbs": "database", |
| 23 | "gtw": "openstack_gateway", |
| 24 | "kvm": "foundation", |
| 25 | "log": "stacklight_logger", |
| 26 | "mon": "monitoring", |
| 27 | "msg": "messaging", |
| 28 | "mtr": "stacklight_metering", |
| 29 | "osd": "storage_node", |
| 30 | "prx": "proxy", |
| 31 | "rgw": "storage_rados" |
| 32 | } |