smarter way to write configs, provide structure and map to avail. resources (testboxe...
[tests.git] / system / config_1testbox32.py
1 #
2 from TestMapper import TestMapper
3
4 # using mapper to do the reallocation job
5
6 target = 'testbox32.one-lab.org'
7
8 def config (plcs, options):
9
10     mapper = {'plc': [ ('*' , {'hostname':target,
11                                'PLC_DB_HOST':target,
12                                'PLC_API_HOST':target,
13                                'PLC_BOOT_HOST':target,
14                                'PLC_WWW_HOST':target,
15                                'name':'%s32' } ) ],
16               'node': [ ('*' , {'host_box': target } ) ],
17               }
18     
19     return TestMapper(plcs,options).map(mapper)