
This is a pretty direct port of osbash to Python. The entry point is st.py; use ./st.py --help for help. osbash.sh should work as before. Implements: blueprint labs-python-port Change-Id: Ifcccc420d58cbe907ce29542e4200803fa39e134
17 lines
440 B
Python
17 lines
440 B
Python
import stacktrain.config.general as conf
|
|
import stacktrain.core.autostart as autostart
|
|
import stacktrain.batch_for_windows as wbatch
|
|
|
|
|
|
def build_nodes(cluster_cfg):
|
|
config_name = "{}_{}".format(conf.distro, cluster_cfg)
|
|
|
|
if conf.wbatch:
|
|
wbatch.wbatch_begin_node(config_name)
|
|
|
|
autostart.autostart_reset()
|
|
autostart.autostart_from_config("scripts." + config_name)
|
|
|
|
if conf.wbatch:
|
|
wbatch.wbatch_end_file()
|