def master_template_filename(plan_name):
    """Generates the filename of a deployment plan's master template when
    it is written out as a Heat template.

    :type plan_name: str
    :rtype: str
    """
    return '%s-%s' % (plan_name, 'template.yaml')
