def distribute_package(roles, cl_args):
Log.info("<STR_LIT>")<EOL>masters = roles[Role.MASTERS]<EOL>slaves = roles[Role.SLAVES]<EOL>tar_file = tempfile.NamedTemporaryFile(suffix="<STR_LIT>").name<EOL>Log.debug("<STR_LIT>" % (cl_args["<STR_LIT>"], tar_file))<EOL>make_tarfile(tar_file, cl_args["<STR_LIT>"])<EOL>dist_nodes = masters.union(slaves)<EOL>scp_package(tar_file, dist_nodes, cl_args)<EOL>
distribute Heron packages to all nodes