Files
training-labs/labs/stacktrain/core/node_builder.py
Roger Luethi 075bee7f11 Python port of osbash
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
2016-12-18 11:47:44 +00:00

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()