def set_simulation(config, components, exclude):
    """Choose which components to simulate, and which parts to exclude."""
    sim_config = """
simulation:
    components: [{components}]
    exclude: [{exclude}]
""".format(components=", ".join(components),
           exclude=", ".join(exclude))
    return config + sim_config[1:]