def _generate_snitch_text(cluster):
    """Generate the text for the PropertyFileSnitch file"""
    i=1
    contents = [
        "# Auto-generated topology snitch during cluster turn-up", "#",
        "# Cassandra node private IP=Datacenter:Rack", "#", ""
    ]
    for z in cluster.keys():
        contents.append("# Zone \"%s\" => ZONE%d" % (z, i))
        for node in cluster[z]:
            contents.append("%s=ZONE%d:RAC1" % (node['ip'], i))
        i+=1
        contents.append("")
    contents.append("# default for unknown hosts")
    contents.append("default=ZONE1:RAC1")
    contents.append("")
    return "\n".join(contents)