def write_paasta_config(
    srv,
    service_stanza,
    smartstack_stanza,
    monitoring_stanza,
    deploy_stanza,
    marathon_stanza,
    cluster_map,
):
    srv.io.write_file("service.yaml", _yamlize(service_stanza))
    srv.io.write_file("smartstack.yaml", _yamlize(smartstack_stanza))
    srv.io.write_file("monitoring.yaml", _yamlize(monitoring_stanza))
    srv.io.write_file("deploy.yaml", _yamlize(deploy_stanza))
    for (filename, marathon_config_stanza) in marathon_stanza:
        srv.io.write_file("marathon-%s.yaml" % filename, _yamlize(marathon_config_stanza))

    for (clustername, filename) in cluster_map.items():
        srv.io.symlink_file_relative("marathon-%s.yaml" % filename, "marathon-%s.yaml" % clustername)
dataset/ETHPy150Open Yelp/paasta/paasta_tools/cli/cmds/fsm.py/write_paasta_config/original